Docs Download
Home / Docs / Kline / Market Data / Refresh Rates / What happens if API rate limits are exceeded?

What happens if API rate limits are exceeded?

Exceeding an exchange’s API rate limits can disrupt MagicTradeBot’s operation and may have serious consequences for trading performance.


⚙️ Potential Effects

  1. Temporary request bans

    • The exchange may block further API requests for a short period.
    • During this time, the bot cannot fetch market data or place trades.
  2. Missed market data

    • Candle updates, tick data, and signals may be delayed or lost.
    • Can cause the bot to react late to market movements.
  3. Delayed or skipped trades

    • Entry or exit orders might not be executed on time.
    • May result in missed opportunities or increased losses.

⚖️ Why It Matters

  • Trading decisions rely on timely and accurate data.
  • Hitting rate limits breaks the real-time flow, impacting all strategies.
  • Can reduce the effectiveness of scalping, volatility, and auto-trading strategies.

🚀 How to Prevent

  • Configure maxRequestsPerSecond below exchange limits.
  • Use a safeBuffer to reserve part of your API quota.
  • Avoid aggressive polling of low-liquidity symbols.
  • Monitor API usage metrics regularly.

Summary

Exceeding API rate limits can lead to:

  • Temporary bans
  • Delayed or lost market data
  • Skipped or late trades

Proper configuration of request limits and buffers ensures stable, reliable trading.

Ready to trade? Download MagicTradeBot free and test in paper mode before going live.