Closed MilindRCodes closed 5 months ago
bars = ib.reqHistoricalData(
contract, endDateTime='', durationStr='1 D',
barSizeSetting='1 min', whatToShow='MIDPOINT', useRTH=True, keepUpToDate=True)
订阅缺少了参数 keepUpToDate=True;没有这个参数的话,设置回调事件也没用
Not sure what the problem can be, but nothing has changed really.
Hi,
I am trying to extract streaming Historical bars using event handler. However, I am not getting any response in form of bars updated every 'x' time interval.
I am running this .py script in pycharm with python 3.9
Earlier, this same logic was working perfectly fine. Now, it is not giving any response. Do I have to change: 1) the event handler? 2) is there any new method to extract streaming bars?
`
`