In the IB API to get historical data we use reqHistoricalData
then the historicalData function is called to receive the bars/candles.
if I requested 100 bars of data, is historicalData called 100 times?
Also, if I have update turned on, historicalDataUpdate is called, perhaps 100 times...
I’m about to start trading with IB through the python API. It will check on prices every half hour and possibly trade, depending on situations.
should I open a connection to TWS once and close at end of the day, or should I open and close as needed, likely every 1/2 hour?
thanks