UniversalGoldmine
Junior member
- Messages
- 26
- Likes
- 0
Hi,
I have a question about the Historica data limitation when requesting bars at Interactive Brokers.
On this link, it is said that it is possible to request 1-min bars 2 days back.
http://www.interactivebrokers.com/php/apiUsersGuide/apiguide/api/historical_data_limitations.htm
What I wonder for a real account (and not the demoaccount) is what will happen if you try to request 3 Days like this:
Tws1.reqHistoricalData(1, "MSFT", "STK", "", 0, "", "", "smart", "usd", 0, "", "3 D", "1 min", "MIDPOINT", 1, 1);
Since different exchanges/symbols has a different amount of minutebars within 2 Days, this will be important to know.
Will the function just ignore this and request up to the maxium wich is 2 Days automatically or will it be an error in my application.
I dont have a real account yet so I am not able to test this. The demo account let you download 1 week of minutdata wich is outside of the limitation also wich I wonder why it is possible.
I will be pleased to know if the API works in that way, that the API will return the maxium amount of bars wich is 2 Days if trying to request more than the limit wich is 2 Days. Much coding logic will depend on how the API react on this request on the real opened account.
Thank you
I have a question about the Historica data limitation when requesting bars at Interactive Brokers.
On this link, it is said that it is possible to request 1-min bars 2 days back.
http://www.interactivebrokers.com/php/apiUsersGuide/apiguide/api/historical_data_limitations.htm
What I wonder for a real account (and not the demoaccount) is what will happen if you try to request 3 Days like this:
Tws1.reqHistoricalData(1, "MSFT", "STK", "", 0, "", "", "smart", "usd", 0, "", "3 D", "1 min", "MIDPOINT", 1, 1);
Since different exchanges/symbols has a different amount of minutebars within 2 Days, this will be important to know.
Will the function just ignore this and request up to the maxium wich is 2 Days automatically or will it be an error in my application.
I dont have a real account yet so I am not able to test this. The demo account let you download 1 week of minutdata wich is outside of the limitation also wich I wonder why it is possible.
I will be pleased to know if the API works in that way, that the API will return the maxium amount of bars wich is 2 Days if trying to request more than the limit wich is 2 Days. Much coding logic will depend on how the API react on this request on the real opened account.
Thank you