Paper Trading
fyers-store does not place real orders when the environment is not LIVE. This makes PAPER mode safe for dry runs with live data.
How It Works
- Set
FYERS_ENVIRONMENT=PAPER. - Keep
allow_live_ordersfalse. - Any order submission raises a TradingSafetyError.
Example
$env:FYERS_ENVIRONMENT="PAPER"
python examples/backtest_to_live.py --symbol NSE:SBIN-EQ --resolution D --days 120 --go-live
What NOT To Do
- Do not set
ALLOW_LIVE_ORDERS=truein paper runs. - Do not assume PAPER mode simulates fills; it only blocks orders.
Scenario Example
Scenario: You want to observe your strategy signals without trading. - Run in PAPER mode. - Log order intents instead of submitting them.