Skip to content

Commit 120ec27

Browse files
committed
feat: enhance L3 estimator with EAQD/DWF and add microstructure metrics
- Refactor L3 split order logic to use Execution-Aware Queue Dynamics (EAQD) and Deep Depth Fragmentation (DWF). - Fix seniority decay: Fills now consume FIFO, deep cancellations use LIFO, and partial fills retain their queue position. - Integrate Binance `@trade` stream to capture maker sizes at `bookTicker`, filtering out internal `X: NA` placeholders. - Introduce Microstructure Metrics panel with dedicated UI toggle. - Implement Order-to-Trade Ratio (OTR) and Cancellation-to-Trade Ratio (CTR) tracking for Top-1 and Top-20 levels. - Split CTR/OTR metrics by bid/ask and render using a dual Y-axis over a rolling 200s window. - Overhaul depth heatmap rendering: limit to top 50 levels, use true black background for empty levels, and map largest orders to brightest red/blue. - Add UI controls to the heatmap for Z-score standardization (slider and reset button). - Fix liquidity chart rendering bugs and enable right-click drag-to-zoom on the Sweep / Liquidity-Cost window.
1 parent 351dec3 commit 120ec27

2 files changed

Lines changed: 1019 additions & 149 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ rust_decimal = { version = "1.37.2", features = ["macros"] }
2828
egui_plot = "0.33.0"
2929
rand = "0.9.1"
3030
once_cell = "1.21.3"
31+
rust_decimal_macros = "1.40.0"

0 commit comments

Comments
 (0)