AB Trade-X Visual Relationship Map

A diagram-first view of live signal routing, validation gates, broker branches, state loops, admin controls, and the archived TypeScript path.

Static visual doc | no live bot controls changed
Live Signal Intake + Decision Core
Broker Execution Branches
Persistence + Reporting
Operator Controls
Archived TypeScript
TradingView Pine Alerts MES/MNQ/BTC/ETH scripts emit JSON with action, strategy, price, TP/SL, script_id, source_symbol. src/pine/*
ngrok + FastAPI Public tunnel reaches local FastAPI lane on the Mac Mini. src/main.py
Webhook Payload Pydantic validates fields and aliases. Bad shape never reaches broker logic. src/webhook/parser.py
Fast Safety Gates Secret, strategy, symbol, source_symbol, script_id, allowlist, lane, exit profile. src/webhook/router.py
Strategy + Account Router REGISTRY guard, session window, fire count, lane scope, runtime disable, allowed_symbols, fanout. src/strategies/* + router.py
Tradovate Branch Lucid/Abe REST path. One OSO call creates market entry, TP limit, SL stop. src/brokers/tradovate/orders.py
OSOrunnerquote guard
Rithmic Branch Bulenox WebSocket/protobuf path. Quote guard then three naked orders: entry, SL, TP. src/brokers/rithmic/orders.py
reader loop313 ACK352 fills
Kraken / Breakout Branch Crypto path. Qty sized from dollar risk. Routes to Breakout UI executor or REST fallback. src/brokers/kraken/orders.py
UI executorOCAkill switch
Tradovate Broker REST auth token, placeOSO, child verification, active trade registration.
Rithmic Gateway Lazy session, heartbeat, market data quote session, exchange notifications.
Breakout / Kraken UI Chrome CDP order ticket automation or REST endpoints where scope permits.
State Files Active/pending positions and runtime gates survive process churn where needed. data/rithmic_state.json
data/kraken_state.json
data/runtime_disabled*.json
Trade Log + Reports Order attempts, blocks, outcomes, script attribution, platform inference. data/trades.jsonl
scripts/build_*report*.py
Daily Journal Output Email/report HTML, journal summaries, platform breakdowns. reports/trading-journal/*
Operator Controls Pause, resume, disable accounts, clear state, close Kraken, flatten all. /status
/accounts/status
/webhooks/pause
/flatten-all
Old TS Server Express + one Tradovate account. Kept as archive/reference, not live runtime. archive/src/index.ts
archive/src/webhook/server.ts
Signal / Tradovate path
Validation / gates
Kraken / Breakout path
Operator control path