IB Charts Not Displayed Correctly or Contain Incorrect Data

What Happened?

AgenaTrader displays a warning popup indicating:

  • Charts are partially incorrect or contain faulty data.

  • Historical data is missing, and charts are not updating (ticking).

What Does This Mean?

βœ… IB API Limitations on Historical Data Requests

  • The maximum number of simultaneous historical data requests via the IB API is 50.

  • You should ensure that you have fewer simultaneous requests to avoid issues.

βœ… Pacing Violations for Small Bars (≀ 30 Seconds)

  • A pacing violation occurs if you exceed one of the following limits:

    • Identical historical data request within 15 seconds.

    • Six or more historical data requests for the same contract, exchange, and tick type within two seconds.

    • More than 60 requests within 10 minutes.

⚠ Warning: If too many historical data requests are made, you may be disconnected from the IB API. ➑ For more details on IB pacing violations for small bars, refer to this IB article.


Important Notes

πŸ“Œ 1 instrument across 3 time frames = 3 historical requests πŸ“Œ 1 Analyzer Escort column = 1 historical request πŸ“Œ Watchlists, backtest lists, indicators, and alerts also require historical data.


Possible Solutions

βœ… Reduce the number of instruments and historical requests sent to the IB server.

  • Monitor the green connection bar in the lower left corner of AgenaTrader.

βœ… Wait 10 minutes before requesting additional historical data.

  • Be cautious: Reloading data may cause another historical overflow.

βœ… Consider an external data feed (often paid services).

  • Check the data feed overview here.

πŸ“Œ This also applies to CapTrader, Banx, Lynx, and other brokers using the TWS API connection.

Last updated