TradeRule
Real-time trade capture, rule compliance checks, and performance tracking for fast-paced day trading.
Current build direction
- Primary trade ingestion: Webull API.
- Persistence: local SQLite file for fast journaling and recovery.
- Realtime objective: warn on rule breaches while trades are still active.
- Expansion path: add broker integrations after Webull is stable.
Operator workflow
- Open Connections and save local Webull app settings.
- Authorize Webull through the built-in connect flow.
- Use Trade History to load and import a selected day.
- Review imported rows and summary metrics in Journal.
Supported platforms
| Platform | Stage | Primary ingestion | Notes |
|---|---|---|---|
| Webull | Current | BrokerApi | Use Webull APIs for orders, positions, and market data as the primary real-time trade source. |
| Tradier | Planned | BrokerApi | Candidate broker API integration to evaluate after the Webull flow is stable. |
| Interactive Brokers | Research | BrokerApi | Research candidate for broader multi-broker support once the Webull flow is stable. |
Realtime rule checks
- Max daily loss: Alert once realized PnL drops below the trader's daily stop.
- Allowed setups only: Flag trades whose strategy tag does not match the approved playbook.
- Size discipline: Warn when position size exceeds the risk budget for the selected setup.
- No revenge trades: Detect rapid re-entry after a rule breach or stop-out.