PROJECT WORLD / 08
QUANT / FINTECH / ENGINEERING
CRYPTO PLATFORM
Market state should be modeled once, across scales — the authoritative engine owns state, risk and execution, and clients consume its contracts rather than their own calculations.
Core engine, risk governor, web workstation and Android client implemented and tested in CI. Live exchange execution is intentionally disabled — real capital is pinned to $0.00.
SIGNATURE / STATE PIPELINE
ILLUSTRATIVE — SYSTEM SHAPE, NOT A MEASUREMENT
OVERVIEW
An institutional-grade autonomous cryptocurrency trading platform: a single Python 3.12 backend models market structure across a continuous 7-timeframe ladder and five overlapping observation sets, freezes research under a SHA-256 contract, enforces fail-closed risk governance, and serves identical state contracts to an institutional web workstation and a native Android client over REST and WebSocket.
AUTONOMOUS DIGITAL-ASSET TRADING & RESEARCH PLATFORM (PYTHON)
ARCHITECTURE
SELECT A COMPONENT
COMPONENT
INGESTION
Binance public feeds, timestamp-verified
- Tick validation against UTC
- 7-timeframe candle engine
CONNECTED IN THIS RECORD
- EVIDENCE9,608 / 9,608 tick-invariant replay confirmed on every CI run
- TESTFull pytest suite — unit, integration and invariant regression — runs in GitHub Actions alongside secret scanning
DATA FLOW — ARCHITECTURE DIAGRAM, NOT A MEASUREMENT
- 01
INGESTION
Binance public feeds, timestamp-verified
- Tick validation against UTC
- 7-timeframe candle engine
- 02
STATE ENGINE
Swings, breaks, zones and phase
- CHOCH / BOS · FVG · order blocks
- 5 overlapping observation sets
- 03
DECISION ENGINE
Frozen contract, confidence gating
- Contract SHA-256 8fbc923a…
- Confidence ≥ 0.50 to proceed
- 04
RISK GOVERNOR
Pre-trade capital controls
- ≥ 4.0R destination floor
- ≤ 1.0% trade · ≤ 3.0% heat
- 05
CAPITAL GATE
Fail-closed live authorization
- Real capital $0.00
- Live order submission disabled
- 06
SERVER & CLIENTS
One state contract, two clients
- 21 REST endpoints · WebSocket
- Web workstation · Android
CASE STUDY
THE PROBLEM
Strategies developed in notebooks are rewritten for execution in another language, introducing unmodeled latency and divergence between research behavior and live behavior.
Single-timeframe strategies ignore macro structural trend and higher-timeframe liquidity pools, which surfaces as false breakouts.
Client-computed state lets two views of the same market disagree about risk.
THE APPROACH
- Keep 100% of market state generation, risk validation and execution logic in one authoritative Python engine; the web workstation and Android client are stateless projections over shared REST and WebSocket contracts.
- Model structure once on a continuous closed-bar 7-timeframe ladder and observe it through five overlapping three-timeframe sets — state updates only on closed candles, entries execute at next bar open.
- Freeze alpha models and risk boundaries under a SHA-256 research contract, validate every candidate against a ≥ 4.0R destination floor with ≤ 1.0% per-trade risk and ≤ 3.0% portfolio heat, and pin real capital to $0.00 behind a fail-closed gate.
RESULTS — WITH PROVENANCE
9,608
CANDIDATE RECORDS
HISTORICAL RESEARCH — PHASE Q.2 BASELINE
+0.8885R
EXPECTANCY · CONF ≥ 0.60
BACKTEST SIMULATION — NOT LIVE PERFORMANCE
4.918
PROFIT FACTOR · CONF ≥ 0.60
BACKTEST SIMULATION — NOT LIVE PERFORMANCE
CI passes 300/300 Python tests with 9,608/9,608 tick-invariant replay confirmed on every run.
Historical research baseline over 9,608 mapped candidate records across BTC, ETH, SOL and BNB (July 2020 onward): the confidence ≥ 0.60 cohort reports +0.8885R expectancy and 4.918 profit factor as backtested figures.
The published Phase Q.2 analysis reports the model pruning 80.18% of baseline losses (3,907 of 4,873).
Paper simulation is operational with 10 bps taker fees, 4 bps slippage and adverse-first intrabar stop collision.
LIMITATIONS
- All expectancy, profit-factor and win-rate figures are historical backtest simulations; live exchange execution is intentionally disabled and real capital is pinned to $0.00.
- Evaluations cover high-liquidity assets (BTC, ETH, SOL, BNB) — other pairs may behave differently, and modeled slippage can be exceeded in liquidity gaps.
- Cloud staging is configured but not provisioned; the Android release APK builds with R8 but is debug-signed, so store distribution is incomplete.
EVIDENCE
- The full pytest suite — unit, integration and invariant regression — runs in GitHub Actions alongside repository secret scanning.
- python cli.py verify-contract re-checks the frozen research contract digest (8fbc923a…) on demand.
- Restart recovery exercises idempotent order reconciliation against SQLite WAL and dual JSON checkpoints.
DOCUMENTATION
- MIT-licensed repository: Python engine, aiohttp server, web workstation, native Android client, docs and research reports.
- CI workflows for Python tests, Android debug/staging/release builds and secret scanning.
- Append-only decision ledger with SHA-256 event lineage and frozen research contracts.