def on_bar_min1(self, tiny_quote):
        """每一分钟触发一次回调"""
        """收盘前五分钟，调用"""
        data = tiny_quote
        symbol = data.symbol
        price = data.open
        #print(price)

        now = datetime.datetime.now()
        work_time = now.replace(hour=15, minute=55, second=0)

        if now >= work_time:
            ma_20 = self.get_sma(20, symbol)
            ma_60 = self.get_sma(60, symbol)
            if ma_20 >= ma_60 and self.flag==0:
                #金叉买入
                self.do_trade(symbol, price, "buy")
                self.flag = 1
            elif ma_20 < ma_60 and self.flag==1:
                #死叉卖出
                self.do_trade(symbol, price, "sell")
                self.flag = 0
每一分钟触发一次回调