Historical Data Limitations

Historical data requests are subject to the following limitations:

·          Historical data requests can go back one full calendar year.

·          Each request is restricted to duration and bar size values that return no more than 2000 bars (2000 bars per request).

All of the API technologies support historical data requests. However, requesting the same historical data in a short period of time can cause extra load on the backend and subsequently cause pacing violations. The error code and message that indicates a pacing violation is:

162 - Historical Market Data Service error message: Historical data request pacing violation

The following conditions can cause a pacing violation:

·          Making identical historical data requests within 15 seconds;

·          Making six or more historical data requests for the same Contract, Exchange and Tick Type within two seconds.

Also, observe the following limitation when requesting historical data:

·          Do not make more than 60 historical data requests in any ten-minute period.

For more information about historical data requests, see Viewing Historical Data in the DDE for Excel chapter, reqHistoricalDataEx() in the ActiveX chapter, reqHistoricalData() in the C++ chapter, and reqHistoricalData() in the Java chapter.

Valid Duration and Bar Size Settings for Historical Data Requests

The following table lists valid duration and bar size settings for API historical data requests. Please note that these are only guidelines.

Duration

Bar Size

1 Y

1 day

6 M

1 day

3 M

1 day

1 M

1 day,  1 hour

1 W

1 day,  1 hour,  30 mins, 15 mins

2 D

1 hour,  30 mins,  15 mins,  3 mins,  2 mins, 1 min

1 D

1 hour,  30 mins,  15 mins, 5 mins  3 mins,  2 mins, 1 min, 30 secs

14400 S (4 hrs)

1 hour,  30 mins,  15 mins, 5 mins  3 mins,  2 mins, 1 min, 30 secs, 15 secs

7200 S (2 hrs)

1 hour,  30 mins,  15 mins, 5mins  3 mins,  2 mins, 1 min, 30 secs, 15 secs, 5 secs

3600 S (1 hr)

15 mins, 5 mins  3 mins,  2 mins, 1 min, 30 secs, 15 secs, 5 secs,

1800 S (30 mins)

15 mins, 5 mins  3 mins,  2 mins, 1 min, 30 secs, 15 secs, 5 secs, 1 secs

960 S (15 mins.)

5 mins 3 mins, 2 mins, 1 min, 30 secs, 15 secs 5 secs 1 secs

300 S (5 mins)

3 mins, 2 mins, 1 min, 30 secs, 15 secs, 5 secs, 1 secs

60 S ( 1 min)

30 secs, 15 secs, 5 secs, 1 secs