Administrator
2024-02-01 a0b392779fab69eee750497fd55ca2e7ddade96a
trade/huaxin/huaxin_trade_order_processor.py
@@ -170,13 +170,20 @@
        except Exception as e:
            async_log_util.exception(hx_logger_trade_debug, e)
    # 返回是否要监控撤单
    @classmethod
    def process_sell_order(cls, order: HuaxinOrderEntity):
        # 处理卖单
        if order.direction != str(huaxin_util.TORA_TSTP_D_Sell):
            return
            return False
        cls.order_ref_dict[order.orderRef] = order
        # 下单时间在9:30以后的如果2s没成交就撤单
        if tool.trade_time_sub(order.insertTime, "09:30:00") >= 0 and str(
                order.orderStatus) == huaxin_util.TORA_TSTP_OST_Accepted:
            return True
        return False
    @classmethod
    def get_huaxin_order_by_order_ref(cls, order_ref) -> HuaxinOrderEntity:
        return cls.order_ref_dict.get(order_ref)