Mid (USD)
—
Effective spread (bps)
—
Inventory
—
Realised PnL
—
Inventory PnL
—
Fill rate
—
Adverse selection
—
Sharpe-ish
—
Mid + quotes
PnL trajectory
Order ladder (live)
Recent fills
| tick | side | px | qty | edge (bps) |
|---|
Strategies in this repo
constant_spread live
filesrc/strategies/constant_spread.py
handlesvol regimes? no
handlesinventory skew? no
good forliquid pairs, calm regimes
adaptive_spread live
filesrc/strategies/adaptive_spread.py
handlesvol regimes? yes
handlesinventory skew? yes
good forRWA, long-tail, thin books
compliance_gated roadmap
trackedsee issue #11 (RWA tokenomics)
depends onkcolbchain/rwa-toolkit
geo_priced roadmap
trackedsee issue #5 (jurisdiction transfer module)
Simulation model (open)
A simplified single-asset book runs in the browser. Each tick the mid takes a Brownian step (vol slider). The agent posts a bid + ask using the selected strategy. Each side has a per-tick fill probability; the toxic-flow share assumes the post-trade mid moves against the maker that fraction of the time, modelling adverse selection. Inventory PnL marks the current position to mid.
This is a teaching toy — the production agent in this repo runs a richer book replay against historical RWA prints. See src/backtest/engine.py.