Live Trading
This page covers live trading wiring and safety rules.
Required Conditions
FYERS_ENVIRONMENT=LIVEALLOW_LIVE_ORDERS=trueorallow_live_orders: trueinconfig/broker.yaml- Valid
state.yamlwith correctaccount_id
Recommended Startup
Start with the quick live script so you can validate connectivity before placing real orders:
examples/quick_scripts/quick_live_trading.py
What NOT To Do
- Do not start live trading without a paper run.
- Do not disable reconciliation without an ops plan.
- Do not retry place_order on timeouts.
Scenario Example
Scenario: You want to go live after a backtest.
- Run examples/quick_scripts/quick_backtest_to_live.py.
- Ensure environment is LIVE and allow_live_orders is true.
- Watch order WS updates for the first order before scaling up.