Skip to content

Live Trading

This page covers live trading wiring and safety rules.

Required Conditions

  • FYERS_ENVIRONMENT=LIVE
  • ALLOW_LIVE_ORDERS=true or allow_live_orders: true in config/broker.yaml
  • Valid state.yaml with correct account_id

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.