Hi all,
I wrote two stores for two different brokers, but I want to use data feed from one and broker from another. It works fine, but notify_store works only from the store that I subscribe the data. Store Notifications are not coming from the store that I add as a broker instance. My guess is that data store gets registered first as its the first thing that gets initialised.
My question is it possible to get store notifications from both stores ? Following is the code that I use for both data and broker. Any help is highly appreciated.
cerebro = bt.Cerebro(quicknotify=True)
abstore = AngelStore(api_key= data['api_key'], access_token = data['Token'], angel_instruments_json=dir +'instruments.json')
zbstore = ZerodhaStore(api_key = user_data['api_key'], token = user_data['token'], zb_instruments_csv=dir + 'zb_inst.csv')
cerebro.broker = abstore.getbroker()
data0 = zbstore.getdata(dataname='STK-NSE-IDEA',
timeframe=bt.TimeFrame.Ticks,
sessionstart=datetime.time(9, 15),
sessionend=datetime.time(15, 30)
)