How suryapranav2k5/intraday-trading-intelligence-platform works
This is a real-time intraday trading intelligence and trade-supervision platform for Indian equities. Its principal workflow streams market data, maintains candle state, computes features and entry probabilities, manages trade exits, and sends live telemetry to a dashboard. The README also documents standalone order-book collection and model-training capabilities. Several links are explicit in the README or sampled source; unsampled frontend wiring and some subsystem connections are not asserted.
Main entry points: app.py Trading backend · inference.py Entry inference · Index.tsx Trading dashboard · realtime_data_hub.py Realtime data hub
Components 19
Market ingestion
- SmartAPI client
SmartApi/smartapi_client.py - Symbol mapping
SmartApi/symbol_utils.py - Realtime data hub
SmartApi/realtime_data_hub.py - Orderflow harvester
orderflow_harvester.py
Trading intelligence
- Feature engineering
feature_engineering.py - Entry inference
inference.py - Entry ensemble
entry_inference.py - Live exit manager
live_exit_engine.py - Exit transformer
exit_transformer.py
Live service
- Candle cache
app.py - Trading backend
app.py
Supervision dashboard
- Trading data hook
Web/src/hooks/useTradingData.ts - Supervision hook
Web/src/hooks/useTradeSupervision.ts - Trading dashboard
Web/src/pages/Index.tsx - Phase 2 panel
Web/src/components/Phase2SupervisionPanel.tsx
Model development
- Entry model training
train_universal.py - Exit model training
exit_transformer.py
Other components
- Trading operator
- Angel One SmartAPI
Connections 20
- Trading operator → Trading dashboard: views telemetry
- Angel One SmartAPI → SmartAPI client: streams market data
- SmartAPI client → Realtime data hub: provides stream
SmartApi/realtime_data_hub.py - Symbol mapping → Realtime data hub: maps symbols
SmartApi/realtime_data_hub.py - Realtime data hub → Trading backend: supplies market data
app.py - Angel One SmartAPI → Orderflow harvester: provides depth feed
- Orderflow harvester → Angel One SmartAPI: subscribes to feed
- Trading backend → Candle cache: updates candles
app.py - Trading backend → Entry inference: runs inference
app.py - Entry inference → Feature engineering: computes features
- Entry inference → Live exit manager: provides trade context
inference.py - Live exit manager → Exit transformer: uses model
live_exit_engine.py - Trading backend → Live exit manager: requests exit decision
app.py - Trading backend → Trading dashboard: emits telemetry
- Trading dashboard → Trading data hook: reads trading state
- Trading dashboard → Phase 2 panel: renders supervision
Web/src/pages/Index.tsx - Phase 2 panel → Supervision hook: uses supervision state
- Entry ensemble → Feature engineering: consumes features
- Entry model training → Entry inference: trains entry models
- Exit model training → Exit transformer: trains exit model
exit_transformer.py