For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
IBKR not getting live data
-
Hi,
I have been unable to get LIVE data from IBKR. Am trading ES futures.
I can get historical data. That all works fine, but once i try to get LIVE data the feed is stuck on DELAYED, and I'm not getting any data at all.
I have looked in earlier topics and I did see the issue come up, but I didn't see a solution that worked for me. Any ideas would be greatly appreciated.
The main part of my code
cerebro = bt.Cerebro(stdstats=True, tradehistory=True) store = bt.stores.IBStore(host="127.0.0.1", port=7497, clientId=35) cerebro.broker = store.getbroker() stockkwargs = dict( timeframe = bt.TimeFrame.Ticks, useRTH = False, rtBar = False, #backfill_start=False, #backfill=False #historical = True, # only historical download #fromdate = fromdate, # get data from.. #todate = todate, ) data = store.getdata(dataname='ES-FUT-GLOBEX-USD-202212-50', **stockkwargs) cerebro.resampledata(data, timeframe=bt.TimeFrame.Seconds, compression=10) cerebro.addwriter(bt.WriterFile, csv=True, out='output.csv'.format('ES')) cerebro.addstrategy(Levels) cerebro.addobserver(bt.obs.Trades) cerebro.addanalyzer(trade_list, _name="trade_list") result = cerebro.run()
-
Not sure how to edit. But I forgot to add that the above I'm running on my paper account. I do however have a funded account and market data subscriptions, so I do get live futures data on the paper account in TWS.