def on_bar_min1(self, tiny_bar):
        """每一分钟触发一次回调"""
        bar = tiny_bar
        symbol = bar.symbol
        price = bar.open

        up, down = self.track(symbol)
        now = datetime.datetime.now()
        work_time = now.replace(hour=9, minute=30, second=0)
        if now == work_time:
            self.before_minute_price = price
            return
        if self.before_minute_price == 0:
            self.before_minute_price = price
            return
        if self.before_minute_price < up and price > up:
            self.do_trade(symbol, price, "buy")
        elif self.before_minute_price > down and price < down:
            self.do_trade(symbol, price, "sell")
        self.before_minute_price = price
每一分钟触发一次回调