A free explorer that shows, historically, what only Wickra computes — footprint, order-book heatmap, liquidation map and funding/OI divergence.
▶ Live demo: all 514 indicators over real Binance market data, computed live in your browser — live.wickra.org · zero backend, powered by
wickra-wasm.
Part of the Wickra ecosystem: the same data-driven core and ten-language binding surface also power wickra-exchange, wickra-backtest, wickra-terminal, wickra-screener, wickra-xray, wickra-radar, wickra-copilot and wickra-shazam.
Wickra X-Ray is one data-driven core, xray-core: a serde
XraySpec is folded over a recorded dataset — trades, order-book diffs, funding
and open interest — into render data-models (XrayFrame), never renderer
commands. The frames carry the four microstructure panels; a front-end just
draws them. The parallel (rayon) and sequential (the WASM fallback) builds are
byte-for-byte identical.
Because the frame is data, not code, the exact same output crosses the C ABI
and WASM unchanged. The core is exposed as a JSON-over-C-ABI data API
(Xray::command) in Rust, Python, Node.js, WASM, C, C++, C#, Go, Java and R,
and a web front-end (Vue + Canvas) renders the frames in the browser.
- Footprint — traded volume per price bin, split by aggressor side.
- Order-book heatmap — resting liquidity over a time × price grid.
- Liquidation map — liquidation events clustered by price bin.
- Funding / OI divergence — funding, open interest and price on one time axis.
Pre-release — functionally complete, CI-verified, not yet published. The core, the CLI, all ten language bindings, the web renderer, the byte-exact golden corpus, property + fuzz tests, benchmarks and one runnable example per language are in place and green across the full CI matrix (10 languages × 3 OS). Not yet released to any registry — track progress in ROADMAP.md.
- Architecture — the core, the data-driven boundary, the binding surface.
- Panel & spec reference and per-binding quickstarts under
docs/; one runnable example per language underexamples/. - ROADMAP.md · BENCHMARKS.md · THREAT_MODEL.md · SECURITY.md.
# Build a frame from a spec + a recorded dataset, raw XrayFrame JSON
# (the same bytes every binding returns):
cargo run -p wickra-xray -- --spec golden/specs/footprint.json --stdin --format json < golden/data.json
# Human-readable summary of the frame:
cargo run -p wickra-xray -- --spec golden/specs/multi_panel.json --stdin < golden/data.jsonThe --spec file is an XraySpec; the dataset is read from --stdin (a JSON
Dataset) or from a --data file.
A spec is a JSON (or TOML) document: a symbol, an optional time window
(from_ts / to_ts), and a list of panels. Each panel names a kind and its
parameters; the frame returns one PanelData per spec panel, in order.
{
"dataset_ref": "gold",
"symbol": "GOLD",
"panels": [
{ "kind": "footprint", "price_bin": 1.0, "bucket_ms": 60000 },
{ "kind": "book_heatmap", "price_bin": 0.5, "bucket_ms": 2000, "depth_levels": 8 },
{ "kind": "liquidation_map", "price_bin": 1.0 },
{ "kind": "funding_oi_divergence", "bucket_ms": 2000 }
]
}- Panels (
kind):footprint,book_heatmap,liquidation_map,funding_oi_divergence. - Frame —
XrayFrame { symbol, cursor_ts, panels }; eachPanelDatais a render data-model (price bins, intensity matrices, event lists), never a draw command.
The frame is addressable in time. frame builds the full window; frame_at(ts)
folds only up to a cursor — the scrubber path a front-end drives as the user
drags through history. frame_at(to_ts) reproduces frame byte-for-byte, and
every panel's arrays stay length-aligned and monotonic on their axis.
The same Xray handle — construct from a JSON spec, drive with
command(json) -> json, read version — is reachable from every binding:
from wickra_xray import Xray
x = Xray('{"dataset_ref":"m","symbol":"AAA","panels":['
'{"kind":"footprint","price_bin":1.0,"bucket_ms":60000}]}')
x.command('{"cmd":"load","dataset":{"trades":[...]}}')
frame = x.command('{"cmd":"frame"}') # JSON XrayFrameThe C ABI hub (bindings/c) backs C, C++, C#, Go, Java and R; Rust, Python,
Node.js and WASM are native. See each bindings/<lang>/README.md and the runnable
examples/.
crates/xray-core the data-driven core (XraySpec, Dataset, panels, build_frame, command_json)
crates/xray-cli the CLI (bin: wickra-xray)
crates/xray-bench criterion benchmarks
bindings/{python,node,wasm,c,go,csharp,java,r} the ten-language surface
web/ the Vue + Canvas browser renderer (over the WASM binding)
golden/ a deterministic dataset, specs, and byte-exact expected frames
fuzz/ cargo-fuzz targets (spec_parse, dataset_parse, build_frame, book_fold)
examples/ one runnable "build a frame" example per language
cargo build --workspace
cargo test --workspace --all-features
cargo test --workspace --no-default-features # sequential build path
cargo clippy --workspace --all-targets --all-features -- -D warnings
cargo run -p wickra-xray -- --spec golden/specs/footprint.json --stdin --format json < golden/data.json- Rust ≥ 1.86 (workspace MSRV; the Node binding needs ≥ 1.88).
- Binding toolchains as needed: Node ≥ 22, Python ≥ 3.9, a C toolchain, .NET 8,
JDK 22+, Go 1.23, R — see each
bindings/<lang>/README.md.
crates/xray-bench measures build_frame scaling by event count and panel
count, parallel vs sequential. See BENCHMARKS.md.
Part of the Wickra family — each one a data-driven core with a CLI and the same ten-language binding surface:
- wickra — the core library: 514 O(1) streaming indicators across ten languages
- wickra-exchange — unified market-data + execution across ten crypto exchanges
- wickra-backtest — event-driven backtester over the Wickra core
- wickra-terminal — the trading terminal: a TUI and a browser renderer over the stack
- wickra-screener — parallel multi-symbol screening over 514 streaming indicators
- wickra-xray — market-microstructure explorer: footprint, order-book heatmap, liquidation map, funding/OI divergence
- wickra-radar — perp-universe alert radar: OI delta, funding flip, book imbalance, liquidation clusters, OI/price divergence
- wickra-copilot — local market copilot grounded in real order-book, liquidation and funding microstructure
- wickra-shazam — match an asset's current microstructure fingerprint against its entire history
Docs at docs.wickra.org; the marketing site and in-browser demo at wickra.org.
See CONTRIBUTING.md and CODE_OF_CONDUCT.md.
Commits are signed and in English; open a PR against main.
See SECURITY.md and THREAT_MODEL.md. Report vulnerabilities privately — never in a public issue.
Dual-licensed under either MIT or Apache-2.0, at your option.
Wickra X-Ray is analysis software: it computes microstructure views over historical and live market data. It is provided "as is", without warranty of any kind, and is not financial advice — it places no orders. Trading carries risk of loss; review the code and use at your own discretion.
