Administrator
2024-02-05 276f2b4575ce23ea5a8271e10e34ad87af03372f
trade/huaxin/huaxin_trade_order_processor.py
@@ -12,6 +12,7 @@
from log_module.log import logger_trade, hx_logger_trade_debug
from trade import trade_manager, trade_record_log_util
from trade.huaxin.huaxin_trade_record_manager import TradeOrderIdManager
from trade.trade_manager import AutoCancelSellModeManager
from utils import huaxin_util, tool
import concurrent.futures
@@ -181,6 +182,10 @@
        # 下单时间在9:30以后的如果2s没成交就撤单
        if tool.trade_time_sub(order.insertTime, "09:30:00") >= 0 and str(
                order.orderStatus) == huaxin_util.TORA_TSTP_OST_Accepted:
            sell_mode = AutoCancelSellModeManager().get_mode()
            if sell_mode == AutoCancelSellModeManager.MODE_CANCEL_MECHINE and order.orderRef < 90000:
                # 只撤机器的单
                return False
            return True
        return False