API Support Forum
OEC API > API Support > Limited days with the new API version
Author Topic: Limited days with the new API version
(7 messages, Page 1 of 1)
Moderators: VPfau
SierraChart
Posts: 111
Joined: Jul 17, 2007


Posted: Dec 10, 2007 @ 06:17 PM             Msg. 1 of 7
It seems as though you are giving us only 1.5-4 days of historical minute data with the current API, and this is relative to our starting date. If we ask for data beginning at 12/1, we will get from that date until 12/3 for example. This behavior did not exist before, and is causing gaps in charts.
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Dec 11, 2007 @ 08:45 AM             Msg. 2 of 7
1 minute bar data range is limited to 10 calendar days (240 hours or 14400 minutes)
SierraChart
Posts: 111
Joined: Jul 17, 2007


Posted: Dec 11, 2007 @ 02:44 PM             Msg. 3 of 7
What are the limits for historical daily data and historical tick data?
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Dec 11, 2007 @ 02:52 PM             Msg. 4 of 7
daily data limit is 92 calendar days (3 months)
intraday data is 14400 bars max (10 calendar days for minute bars).
tick data limit is 65535 ticks or 3 days.

current limits are subject to change.
SierraChart
Posts: 111
Joined: Jul 17, 2007


Posted: Dec 11, 2007 @ 07:29 PM             Msg. 5 of 7
I was just testing historical intraday (minute) bars, and it appears that I'm only getting a maximum of 1440 bars.

And for daily data, I'm only getting 29 days.

I also noticed with daily data, it now uses the OnBarsReceived callback instead of the OnHistoryReceived callback. I had to make changes for that. Will the OnHistoryReceived callback not be used any more?
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Dec 12, 2007 @ 08:36 AM             Msg. 6 of 7
1. 1440 bars is a limit per single packet (event).

2. what server and what contract you used for daily data test?

3. Sorry, there's a bug in backward compatibility of OnHistoryReceived event. SubscribeHistory now calls SubscribeBars with 24h interval, but event OnHistoryReceived wasn't raised propertly.

We plan to use SubscribeHistory/OnHistoryReceived for compatibility only.
SierraChart
Posts: 111
Joined: Jul 17, 2007


Posted: Dec 12, 2007 @ 01:11 PM             Msg. 7 of 7
1. Thank you, I'm getting all the data now.

2. I was using the API server. I tested historical daily data on the sim server just now, and I get the 92 days there.

3. I changed my code to use RequestBars/OnBarsReceived for historical daily data now.