¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: how long does historical pull take?


Nick
 
Edited

I'm pretty sure I remember a sentence in the docs that says it's possible to exceed the stated bar limits but that the request may count as more than one for the purpose of pacing.

I suppose the only way to find out is experiment with it, but I've reached my limit of trying to document an undocumented and randomly changing api. I just use the old limits since I don't have a need to squeeze performance out of historical downloads.

On 11/20/2015 10:27 AM, Dmitry Shevkoplyas shevkoplyas@... [TWSAPI] wrote:

?
Hi Richard,
?
I seems missed "the limits have been increased" event and so far using the limits which circulated the group years ago. This is the table I use (and documented in faq):

I'm most interested in 1sec historical bars.
The table above suggests the limit for 1sec historical bars is 2000 bars (which is only about 33 minutes).
Could you point me to some doc which describes the latest changed limits please?
?
I checked "IB API - Guides" -> "Printable Reference Guide" and under "Valid Duration and Bar Size Settings for Historical Data Requests" they have old table, which says max duration for 1sec bars is 1800 (30 minutes) - same as last couple years.. and it is 3.(3) minutes shorter than actual max limit of 2000bars which is somehow not documented in official sources.
?
It would be awesome to see increase in number of bars because we allowed to send only so many reqests per minute (I allow next historical data request after 10.1 seconds after previous was sent per each connected TWS account).
?
thank you,
Dmitry
?

On Fri, Nov 20, 2015 at 6:12 AM, 'Richard L King' rlking@... [TWSAPI] <TWSAPI@...> wrote:
?

No, the limits have been increased. You can get up to 10 days of 1-minute bars now, at least with recent TWS versions.

But I think you¡¯re right that the OP is asking for a lot of data, and the Excel DDE is probably rather (very?) slow at processing it.

From: TWSAPI@... [mailto:TWSAPI@...]
Sent: 20 November 2015 10:59
To: TWSAPI@...
Subject: [TWS API] Re: how long does historical pull take?

You are probably asking for too much data in a single request. I believe that you can only get 2 days of data when requesting 1 minute bars.

There's a table of duration vs bar size limits somewhere in the documentation.

[Non-text portions of this message have been removed]



?
--
§ã §é.§Ô§Ý.§å§Ó.,
§¥§Ú§Þ§Ñ §º.

?

Join [email protected] to automatically receive all group messages.