I found a way to check if data is available for a given date.
data = self.getdatabyname(ticker) current_date = self.data.datetime.datetime().date() if date == bt.num2date(data.datetime[0]).date(): print(f'data is available for {ticker}')For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/