
Hey, I followed this post to upload my data (https://algogene.com/community/post/26). How can I query my custom instrument for backtest?
def on_bulkdatafeed(self, isSync, bd, ab): contract = {"instrument": 'XXX'} res = self.evt.getHistoricalBar(contract, 100, 'D') for t in res: timestamp = t lastprice = res[t]['c'] # do something ...