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. After that, how is the next bar/candle delivered or maintained?
The manual says...
Otherwise updates of the most recent partial five-second bar will continue to be returned in real time to IBApi::EWrapper::historicalDataUpdate
But I don’t understand that sentence. I did not see a reference to a five second bar above the sentence. I guess I’m wondering whether historicalDataUpdate is called one more time when a bar or candle is complete or if the pending candle is continually updated til closed.
Thanks
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. After that, how is the next bar/candle delivered or maintained?
The manual says...
Otherwise updates of the most recent partial five-second bar will continue to be returned in real time to IBApi::EWrapper::historicalDataUpdate
But I don’t understand that sentence. I did not see a reference to a five second bar above the sentence. I guess I’m wondering whether historicalDataUpdate is called one more time when a bar or candle is complete or if the pending candle is continually updated til closed.
Thanks