Administrator
2024-02-05 21bed5f52c163da2b4d43cd312acb43ab80157c6
L撤快速成交触发撤单修改
1个文件已修改
5 ■■■■■ 已修改文件
trade/huaxin/huaxin_trade_order_processor.py 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
trade/huaxin/huaxin_trade_order_processor.py
@@ -12,7 +12,6 @@
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
@@ -182,8 +181,8 @@
        # 下单时间在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:
            sell_mode = trade_manager.AutoCancelSellModeManager().get_mode()
            if sell_mode == trade_manager.AutoCancelSellModeManager.MODE_CANCEL_MECHINE and order.orderRef < 90000:
                # 只撤机器的单
                return False
            return True