L3 Depth of Market (DOM) Ladder & Sub-Pixel Tape
Real-Time Depth Matrix
Microstructure Math Formulation
Continuous Depth & Iceberg SDE
$$\text{Depth}(p, t) = \sum_{i \in \mathcal{O}(p, t)} Q_i, \quad \text{Iceberg Detector: } V_{\text{exec}}(p, \Delta t) > Q_{\text{posted}}(p)$$
Layman Intuition: On the left is the institutional Depth of Market (DOM) Ladder showing real limit orders stacked at every tick. Cyan/Green bars indicate buyer interest, and Red bars indicate seller resistance. On the right, the Sub-Pixel Tape traces the exact historical Best Bid and Best Ask paths. When a massive market order executes without moving the price level, the Iceberg Detector triggers—flagging hidden institutional accumulation.
L3 Order Book Ladder
🚨 ICEBERG ABSORPTION DETECTED
Best Bid (Inside)
Best Ask (Inside)
Mid-Price
💡 Click any DOM row to place limit order
Avellaneda-Stoikov Dynamic Market Making
Columbia / Optiver Quoting Engine
Optimal Quoting SDE
Closed-Form Solution (2008)
$$r(s, q, t) = s - q \gamma \sigma^2 (T - t), \quad \delta^a + \delta^b = \frac{2}{\gamma}\ln\left(1 + \frac{\gamma}{\kappa}\right)$$
Layman Intuition: Market makers earn money by pocketing the bid-ask spread. But if they buy too much stock ($q > 0$), they risk getting crushed if prices plummet. Avellaneda-Stoikov calculates a Reservation Price $r$: when holding long inventory, the bot automatically lowers its prices to attract buyers and dump inventory, while widening its bids to stop buying. This prevents toxic accumulation.
Reservation Price $r$
₹1,287.50
Optimal Half-Spread
₹0.50 (3.9 bps)
Optimal Bid Quote
₹1,287.25
Optimal Ask Quote
₹1,287.75
Short (-50)
0 Contracts
Long (+50)
Spread Capture
+₹1,420.50
Adverse Selection
-₹380.00
Net Realized PnL
+₹995.30
Stoikov Micro-Price & VPIN Toxicity Radar
Lead-Lag Alpha Signal
Micro-Price & Toxicity Equations
Stoikov (2018) & Easley-O'Hara (2012)
$$P^{\text{micro}} = P^{\text{mid}} + \left(\frac{Q^b - Q^a}{Q^b + Q^a}\right) \frac{S}{2}, \quad \text{VPIN} = \frac{\sum_{\tau=1}^N |V_\tau^B - V_\tau^S|}{N \times V}$$
Layman Intuition: The regular "Mid Price" assumes buyers and sellers are equal. But if there are 10,000 shares waiting to buy and only 500 shares waiting to sell, the price is obviously about to tick UP! The Stoikov Micro-Price adjusts the price based on this imbalance, letting HFT algorithms predict the next tick before slow traders react. VPIN measures "toxic flow"—when predatory institutional sweeps arrive, VPIN spikes red, warning you to pull bids before getting steamrolled.
Stoikov Micro-Price
₹1,287.58
▲ +₹0.08 vs Mid
High buy-side queue pressure leading spot higher
Next-Tick Direction
62.4% UP
OFI Vector: +0.240
Multi-level order flow imbalance indicates upward drift
VPIN Toxic Flow Hazard
22.0%
Normal (0% - 40%)
NORMAL ORDER FLOW
Flash Crash Risk (> 65%)
FIFO Queue Position & RAW FIX 4.4 Terminal
Price-Time Priority Engine
Price-Time Priority & Kyle's Lambda
Market Microstructure
$$\Delta P = \lambda \cdot Q_{\text{market}} + \epsilon, \quad (p_1, t_1) \succ (p_2, t_2) \iff p_1 > p_2 \lor (p_1 = p_2 \land t_1 < t_2)$$
Layman Intuition: In electronic markets, orders are filled on a First-In, First-Out (FIFO) basis. If you join the bid 5 microseconds too late, 50 orders are in line ahead of you. The FIX Protocol is the universal computer language used by Wall Street and Dalal Street to transmit trades. Below you can watch real, color-coded FIX packets fly across the wire and trace your exact place in the queue!
Status
IDLE
Queue Priority
No active order
Time to Match
--
RAW FIX 4.4 Packet Capture (ITCH 5.0 Bridge)
FEED LIVE (100ms)
[10:00:00] [Logon] 8=FIX.4.4|9=72|35=A|34=1|49=RISKOS_PRO|56=NSE_COLOC|108=30|10=084
[10:00:01] [LogonConfirm] 8=FIX.4.4|9=72|35=A|34=1|49=NSE_COLOC|56=RISKOS_PRO|108=30|10=084
Time & Sales Tape & CVD Absorption Footprint
Microsecond Tick Resolution
Cumulative Volume Delta & Absorption
Tick Direction Attribution
$$\text{CVD}_T = \sum_{t=1}^T \left( V_{t, \text{aggr\_buy}} - V_{t, \text{aggr\_sell}} \right), \quad \text{Absorption Ratio} = \frac{|\Delta \text{CVD}|}{\Delta P \times \text{ADV}}$$
Layman Intuition: Every transaction requires one aggressive party (crossing the spread) and one passive party (resting on the DOM). If huge market sell orders hit the tape but the price does not move down, an institutional buyer is "absorbing" the dumping via hidden iceberg orders. Rising CVD with stagnant price flags passive seller absorption (distribution).
Cumulative Volume Delta
+4,850 Shs
Aggressive Buy %
58.4%
Absorption State
PASSIVE BUY ABSORPTION
| TIMESTAMP (µs) | TICKER | SIDE | PRICE | QTY | VENUE | TYPE |
|---|
Microsecond Latency Arbitrage & Co-Location Simulator
Speed-of-Light in Silicon
Propagation Delay & Race-to-Book
Refractive Index Physics
$$\tau_{\text{prop}} = \frac{2 \cdot d}{c / n_{\text{medium}}} + \tau_{\text{FPGA\_tick-to-trade}}, \quad P(\text{Arb Win}) = \Phi\left(\frac{\Delta \tau_{\text{advantage}}}{\sigma_{\text{jitter}}}\right)$$
Layman Intuition: Light travels through air (microwave) 31% faster than through glass fiber cables. When a price shock hits the primary exchange (e.g. CME in Chicago), microwave towers beam the signal to NJ in 7.8 ms while fiber takes 11.5 ms. The microwave firm arrives first, snatches the stale quotes on the book, and pockets arbitrage profit before retail can even see the price change.
Microwave / Laser
TIER-1 HFT
7.87 ms
Light in air (v = 299,700 km/s) + 450ns FPGA tick-to-trade
Direct Hollow Fiber
INSTITUTIONAL
11.56 ms
Light in silica core (v = 204,000 km/s) + 1.2µs switch hop
Public Retail Internet
RETAIL WEB
48.20 ms
ISP routing, TCP handshake, OS network stack & bufferbloat
Stale Quote Discrepancy: ₹2.50 / $0.15 per Share
Algorithmic Execution Slicer & Implementation Shortfall
Almgren-Chriss Slicing Engine
Implementation Shortfall & Impact SDE
Arrival Price Benchmark
$$\text{IS} = \sum_{k=1}^N \left( \bar{P}_k - P_0 \right) q_k + \text{Fees}, \quad \text{Impact}(v) = \gamma \frac{Q}{\text{ADV}} + \eta \left(\frac{v}{\text{ADV}}\right)^\alpha$$
Layman Intuition: Dumping 50,000 shares in one go sweeps the book, driving price against you. Algorithmic slicers break the monster order into tiny bites. TWAP slices evenly across time; VWAP executes heavily at market open/close when volume is deepest; POV matches a steady percentage (e.g. 15%) of every tape print.
Execution Progress: 0 / 10,000 Shs
Arrival Price $P_0$: --
Average Fill: --
Shortfall: 0.0 bps
| SLICE # | TIMESTAMP | ALGO | QTY | FILL PRICE | SLIPPAGE (bps) | STATUS |
|---|---|---|---|---|---|---|
| Configure parameters above and click "▶ Start Real-Time Execution Slicer" to begin algorithmic child-order execution. | ||||||
C++20 & WebAssembly (WASM) L3 Matching Engine & Nanosecond Benchmark Core
Compiled Kernel • Price-Time FIFO
Cache-Aligned L3 Matching Engine SDE
Price-Time Priority (FIFO) & Asymptotic Complexity
$$\text{Complexity: } \mathcal{O}(\log M + 1) \text{ amortized}, \quad \text{Aggressive Crossing: } P_{\text{taker}}^{\text{buy}} \ge P_{\text{maker}}^{\text{ask}} \implies Q_{\text{fill}} = \min(Q_{\text{taker}}, Q_{\text{maker}})$$
Layman Intuition: Modern high-frequency trading matching engines (Nasdaq INET, CME Globex, Eurex T7) are engineered in optimized C++20 and deployed into low-latency machine binaries or WebAssembly (WASM). By using pre-allocated, 64-byte cache-aligned memory pools, this kernel eliminates dynamic garbage-collection pauses. It inserts, cancels, and crosses limit and market orders in strict Price-Time priority at over 350,000 orders/sec with sub-microsecond latency.
Execution Kernel
WASM ACTIVE
204 bytes
Throughput Speed
354,616/s
Orders / sec benchmark
Avg Tick-to-Trade
2.82 µs
2,820 nanoseconds
P99 Tail Latency
5.00 µs
99th percentile
BUY BIDS (Price-Time FIFO)
Best Bid: --
| PRICE | QTY | ORDERS |
|---|---|---|
| No resting bids | ||
SELL ASKS (Price-Time FIFO)
Best Ask: --
| PRICE | QTY | ORDERS |
|---|---|---|
| No resting asks | ||
Live WASM Trade Executions (Sub-Microsecond Matches)
Ready. Place orders or run benchmark above to observe real-time matching.
Cross-Exchange Basis & Perpetual Funding Rate Arbitrage Radar
Cash & Carry • Delta-Neutral Yield
Arbitrage & Forward Pricing Mathematics
Cost of Carry & Perpetual Funding Yield
$$F_t = S_t \, e^{(r - q + c)(T - t)}, \quad \text{APR}_{\text{basis}} = \frac{F_t - S_t}{S_t} \cdot \frac{365}{\text{DTE}} \times 100\%, \quad \text{APY}_{\text{funding}} = (1 + F_{8\text{h}})^{1095} - 1$$
Layman Intuition: In normal bull markets, futures trade at a premium to spot because holding spot ties up capital. Quants exploit this through Cash-and-Carry Arbitrage: buy the cheaper spot asset and short the expensive futures contract. At expiry, futures prices converge exactly to spot, locking in a guaranteed risk-free annualized yield ($\text{APR}_{\text{basis}}$). On perpetual swaps, an 8-hour Funding Rate is paid between longs and shorts. By holding spot and shorting a 1x perpetual future, you collect continuous cash flow with zero directional market risk!
Cash & Carry Basis (Annualized APR)
+15.21%
CONTANGO (Normal Forward Curve)
Perpetual 8h Funding Rate
+0.0150%
Compounded APY: +17.85%
Cross-Venue Triangular Net Spread
+106 bps
ARBITRAGE OPPORTUNITY DETECTED
Multi-Venue Liquidity Matrix (Real-Time Spread Scanner)
| VENUE | CONTRACT TYPE | LIVE PRICE | TAKER FEE (bps) | SPREAD vs SPOT | ARBITRAGE ROLE |
|---|
Delta-Neutral Position Parameters
Safety & PnL Projections
Spot Leg Value:
$66,666.67
Short Futures Margin:
$33,333.33
Liquidation Threshold:
$95,200.00
Liquidation Safety:
+46.9% Safety Buffer
Projected 30D Profit:
+$1,733.33
Net Annualized APR:
21.09% APR
Ready. Zero directional delta risk (Δ ≈ 0). Pure basis and funding cash flow capture.
Hawkes Self-Exciting Point Process & Flash-Crash Cascade Radar
Endogenous Liquidation Cascades
Self-Exciting Point Process SDE
Branching Ratio & Endogenous Cluster Math
$$\lambda(t) = \mu + \sum_{t_i < t} \alpha \, e^{-\beta (t - t_i)}, \quad n = \frac{\alpha}{\beta} \quad \left( n < 1 \iff \text{Stationary}, \quad n \ge 1 \iff \text{Flash Crash Cascade} \right)$$
Layman Intuition: In calm markets, trades arrive randomly from external news ($\mu$). But during an institutional panic or flash crash, one large sell sweep triggers stop-losses, margin liquidations, and bot selling—creating a self-feeding explosion of volume. The Hawkes Process measures this endogenous feedback loop via the Branching Ratio $n = \frac{\alpha}{\beta}$. When $n < 0.8$, order flow is calm. When $n \to 1.0$ or higher, every single trade generates more trades, causing bids to evaporate and prices to collapse in milliseconds.
Branching Ratio ($n = \alpha / \beta$)
0.800
ELEVATED CLUSTERING (NEAR CRITICAL)
Instantaneous Intensity $\lambda(t)$
18.40/s
Trade arrival rate
Endogenous Trade Volume
68.5%
Self-excited feedback flow
Baseline Arrival $\mu$
1.20/s
Exogenous news baseline
REAL-TIME HAWKES POINT PROCESS INTENSITY $\lambda(t)$ TIMELINE
Normal liquidity flow • Sub-critical
Institutional Order Flow Footprint Chart & Stacked Imbalances
Bid x Ask Micro-Volume • Diagonal Imbalance > 300%
Footprint Diagonal Imbalance & POC Mathematics
Microstructure Order Flow Profiling
$$\mathcal{I}_{\text{buy}}(p) = \frac{V_{\text{ask}}(p)}{V_{\text{bid}}(p - \text{tick})} \ge 3.0, \quad \text{POC} = \arg\max_{p} \left( V_{\text{bid}}(p) + V_{\text{ask}}(p) \right), \quad \Delta_{\text{candle}} = \sum V_{\text{ask}} - \sum V_{\text{bid}}$$
Layman Intuition: Standard candlestick charts only show high, low, open, and close. An institutional Footprint Chart peers directly inside every candle to show the exact war between aggressive market buyers and passive limit sellers at every price tick: Bid Volume $\times$ Ask Volume. When aggressive buyers overwhelm sellers on the diagonal by over 300%, a Diagonal Buy Imbalance lights up green. If 3 or more levels stack consecutively, a Stacked Imbalance flags an institutional sweep taking control before the price moves!
Legend: Bid Vol × Ask Vol • Amber Box: Point of Control (POC) • Green Highlight: >300% Diagonal Buy Imbalance • Red Highlight: >300% Sell Imbalance
Live Aggregated Footprint Flow • 60 FPS Canvas
Proprietary In-House Quant Algorithms & Latency Evolution
Proofs #31–#34 • C++20 / Rust / SIMD / WebAssembly • Sub-50ns Execution Kernels
4 ORIGINAL ALGORITHMS
HS-JAMM Quoter
EQUILIBRIUM
Reservation Price
₹1,287.48
Optimal Bid / Ask
₹1286.95 / ₹1288.02
Hawkes Buy Jump Intensity (\(\eta_b\)): 0.85
Hawkes Sell Jump Intensity (\(\eta_a\)): 0.20
SE-MicroPrice Filter
BID CONCENTRATION
SE-MicroPrice
₹1,287.62
Drift / Prob UP
+0.93 bps / 62.4%
Bid Entropy: 0.642
Ask Entropy: 0.914
Queue Entropy Sensitivity (\(\omega\)): 0.15
F-Shrink Covariance
FROBENIUS OPTIMAL
Optimal Shrinkage (\(\delta^*\))
0.284
Condition Improvement
-61.4% (3.2x)
Factor Prior Ratio: 72%
Status: Positive Definite \(\boldsymbol{\Sigma}^* \succ 0\)
DK-Shield Drawdown
ACTIVE SHIELD
Shielded Leverage
0.812x Kelly
Buffer to \(D_{\max}\)
+7.0% (3.4σ)
Current Portfolio Drawdown (\(D_t\)): 8.0%
Non-Breach Guarantee: \(\mathbb{P}(\sup D_t \ge 15\%) = 0.000\)
Generational Latency Evolution & BenchmarkJS Matrix
Hardware: AMD EPYC / Apple M3 Max / AVX-512 SIMD
| GENERATION / ARCHITECTURE | TECH STACK | HS-JAMM | SE-MICROPRICE | F-SHRINK | DK-SHIELD | SPEEDUP |
|---|---|---|---|---|---|---|
| Gen 1: Interpreted Baseline | Python 3.11 / Pandas | 1,850 μs | 1,420 μs | 4,890 μs | 820 μs | 1.0x (Baseline) |
| Gen 2: Vectorized JIT | NumPy / V8 JIT / Numba | 24.5 μs | 18.2 μs | 84.0 μs | 9.4 μs | ~75x Faster |
| Gen 3: WebAssembly Native | Rust / WASM SIMD | 148 ns | 112 ns | 480 ns | 62 ns | ~12,500x |
| Gen 4: Bare-Metal C++20 / Rust | AVX-512 / Zero-Copy ITCH | 42 ns | 38 ns | 180 ns | 18 ns | 37,000x • SUB-50ns |