Institutional-Grade Exchange Health & Market Quality Intelligence Platform
VenueWatch normalizes, measures, and statistically validates real-time order book liquidity, execution slippage, and infrastructure reliability across Binance, Coinbase, Kraken, and OKX.
- Project Scope
- System Architecture
- Key Features
- Quantitative Benchmarks
- Research Documentation
- Setup & Installation
VenueWatch is an infrastructure intelligence tool, strictly designed for quantitative research, not live trading. It does not perform order routing.
It evaluates venue quality through the lens of:
- Canonical Schema Isolation: Public Exchange JSON payloads are strictly bounded and transformed into normalized
Parquetstructs at the adapter layer. - Robust Anomaly Detection: A lightning-fast 2-Tier Statistical Framework (Deterministic Rule Engine → Median Absolute Deviation (MAD)) natively integrated into the hot-path asynchronous loop.
- Institutional Realism: Built-in
NetworkRTTMonitorandCausalImpactAnalyzeraccurately separate true matching-engine latency from internet routing delays, and calculate empirical market-impact execution profiles without synthetic data bias.
The pipeline is completely asynchronous and mathematically optimized to process millions of ticks per second on a single thread.
graph TD
subgraph Exchanges ["Market Venues (WebSocket API)"]
B[Binance]
C[Coinbase]
K[Kraken]
O[OKX]
end
subgraph Ingestion ["Adapter Layer"]
B --> BA[Binance Adapter]
C --> CA[Coinbase Adapter]
K --> KA[Kraken Adapter]
O --> OA[OKX Adapter]
end
subgraph Normalization ["Canonical Event Stream"]
BA --> CE(Canonical Trade/L2 Event)
CA --> CE
KA --> CE
OA --> CE
end
subgraph Storage ["Fast Persistence"]
CE --> PQ[(Parquet Storage with ZSTD)]
end
subgraph Pipeline ["Async Analysis Engine"]
CE --> AD[Anomaly Detector]
CE --> HM[Feed Health & RTT Monitor]
CE --> MQ[Market Quality Engine]
CE --> CI[Causal Impact Analyzer]
end
subgraph Output ["Scoring & UI"]
AD --> VS[Min-Max Venue Scorer]
HM --> VS
MQ --> VS
CI --> VS
VS --> DB((Streamlit Dashboard))
end
- Synthetic Fault Injection: Benchmarks system resilience by natively injecting packet delays, missing events, and duplicate sequences directly into the canonical stream.
- Order-Size Sensitivity: Generates dynamic execution quality curves ($10K to $1M), proving that venue rankings shift wildly based on order size depth requirements.
- Min-Max Score Normalization: Replaces naive ordinal rankings with mathematically rigorous Min-Max interval scaling to preserve the actual spread and latency magnitude differences.
- Weight Sensitivity Analysis: Evaluates rank stability across thousands of randomized Dirichlet weight perturbations to calculate the exact probability of venue dominance.
The following metrics were calculated deterministically by processing 100,000 real historical ticks (BTCUSDT) and live Order Book fixtures through the core AsyncEventPipeline:
| Subsystem | Throughput / Capacity | Implementation Detail |
|---|---|---|
| Parsing & Validation | > 134,300 events/sec |
Pydantic strict bounds checking |
| Analysis Pipeline | > 3.40 Million events/sec |
Health and Market Quality routing |
| MAD Anomaly Engine | ~ 19,800 events/sec |
Rolling absolute median dev array traversal |
| Storage IO (Parquet) | ~ 125,000 events/sec |
pyarrow batch writing with ZSTD compression |
| Baseline Latency | ~ 0.29 µs / event |
Subtracted active TCP handshake RTT from processing time |
Note
All benchmarks were conducted using real market data and strict chronological sequencing. Zero synthetic execution data is used for ranking.
For the comprehensive systems analysis, statistical validation, and definitive venue ranking conclusions, please consult the authoritative reports generated by the quantitative auditing agents:
- 🏆 Final Benchmark & Research Report — The definitive quantitative output detailing ranking distributions, causal slippage impacts, and bootstrapped 95% Confidence Intervals.
- 🔬 Current Implementation Audit — Technical analysis of the current state of architectural boundaries and structural integrity.
- 📉 Data Integrity Audit — Verification of the exact schema integrity and volume constraints applied to the 100K live event dataset.
- ⚙️ Scoring Engine Defect Post-Mortem — The technical post-mortem on resolving the fatal zero-variance fixture loop and Min-Max scaling logic.
- 🛡️ Source of Truth Compliance Checklist — The formal mapping of the codebase directly back to the original client project specifications.
Prerequisites: Python 3.12+
# 1. Clone the repository
git clone https://github.com/Akgithub2028/VenueWatch.git
cd venuewatch
# 2. Set up virtual environment
python3.12 -m venv .venv
source .venv/bin/activate
# 3. Install in editable mode
pip install -e .
# 4. Run the Pytest Verification Suite
pytest tests/
# 5. Launch the Intelligence Dashboard
streamlit run src/venuewatch/dashboard/app.py