Collect
Snapshot and delta streams of Binance and Bybit, spot and USDT perpetual, for BTCUSDT and ETHUSDT. Public data only.
a marketmaker.cc project
Arbitrage is decided by the depth you can fill, not by the last price on the screen.
A price gap is a number on two screens. It becomes a trade only when the book on each side can absorb our size.
01 / depth walk
Two venues, two books. We match the ask on one venue against the bid on the other, level by level, and charge fees on both legs. The size that still fills after costs is the signal.
Synthetic books for illustration, not market data. Fee assumed at 5 bps per leg. Real fees, funding and closing cost are set in the config.
02 / pipeline
Snapshot and delta streams of Binance and Bybit, spot and USDT perpetual, for BTCUSDT and ETHUSDT. Public data only.
A book is tradable only after its sequence checks pass. Gaps, resets, malformed levels and stale books invalidate it until it resyncs.
Match asks on one venue with bids on the other, level by level, after fees, funding and closing cost. The size that still fills is the signal.
Every ordered event goes into a checksummed archive. Replay runs the same engine over the same events, with no exchange connection.
03 / status
The collector and the replay run today. Order adapters, testnet reconciliation and an out-of-sample L2 backtest are not finished, and no profitability result has been validated.
04 / run it locally
Collect records public books, archive-check verifies every segment, replay recomputes the signals from the archive. The example config has zero balances, so it records books and emits no trade signals.
# record public books into a new archive cargo run --release -p vector-arb -- collect \ --config config.example.json \ --archive-dir ./archives/session-001 # verify every segment cargo run --release -p vector-arb -- archive-check \ --archive-dir ./archives/session-001 # recompute signals from the archive cargo run --release -p vector-arb -- replay \ --config config.example.json \ --archive-dir ./archives/session-001
05 / limits
Replay does not model queue position, order acknowledgments or partial fills.
Network and order latency are not simulated yet.
Funding settlement and balance changes are not simulated.
There is no validated out-of-sample P&L. Repeated signals are observations, not realized profit.