¿ªÔÆÌåÓý

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

Re: How to get longer historical data?


 

Hi,Dmitry,

It works,I got 706 times reqHistoricalData() from now till 2007/07 3K bars data and get 162 errorCode to reversal append together,save it and plot it.
I am so surprised that IB provide so much data.I need 28 pairs of FX total historical data to backtest.It need 2 hours to get 1 pair total data.

Is IB API able to run two api concurrently to trade in paper account while getting data in the same paper account?I read the document that is possible to have different socket port number and client ID.But I didn't find any posts or goole about how to do it in practice.Is it to add two port 7497,7498 in the TWS API configuration and use different client id in API as app.connect('127.0.0.1',7497,0) and?? app.connect('127.0.0.1',7498,1) to concurrent 2 API run?So I can test my strategies in one API and get data from another API.

Thanks for your great help.
Cheers,
--
------
Forex trader
David Liao

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