Why am I seeing "API Throttled"?
When the bot is in an active trade, it shifts into High-Frequency Latency Bypass Mode. It aggressively polls the broker every 2.5 seconds to mathematically un-blind the Elastic Profit Guard from WebSocket lag. If you restart the bot while a trade is active, it performs a massive "Startup Sync" (downloading accounts, contracts, orders, and positions) and immediately slams right back into 2.5s High-Frequency Polling.
Doing this multiple times triggers the broker's DDOS & Rate-Limit protection (Cloudflare / Broker WAF). The broker will slap your IP address with a 1-hour to 4-hour API ban (429 Too Many Requests).
How to avoid and fix it:
- NEVER restart the bot constantly while in an active trade. Let the bot do its job.
- If you see terminal warnings saying "API Throttled; returning null to preserve known context", DO NOT PANIC. The bot is successfully blocking its own requests for 15 seconds to dodge a ban. It will heal itself.
- If you are hard-banned (it's been over an hour and the bot still can't connect), you must stop the bot completely (Ctrl+C) and wait 60 minutes for the broker's firewall to clear your IP address before turning it back on.