Administrator
2024-03-06 dde40bed2653bacfdaebc576ec739d3a322867a1
huaxin_client/trade_client.py
@@ -20,8 +20,6 @@
from log_module.log import logger_local_huaxin_trade_debug, logger_system, logger_trade
from utils import tool
########B类########
UserID = '388000013349'
# 登陆密码
@@ -208,9 +206,11 @@
                # 影子订单撤单
                # 撤掉影子单
                shadow_cancel_order_ref = shadow_order_ref + 1
                # 深证停留50ms上证停留200ms
                delay_s = 0.05 if code.find("00") == 0 else 0.2
                self.cancel_buy(code, f"s_c_{shadow_order_ref}", order_sys_id=None,
                                order_ref=shadow_order_ref,
                                order_action_ref=None, delay_s=0.05)
                                order_action_ref=None, delay_s=delay_s)
        return ret
@@ -756,7 +756,8 @@
                                   pRspInfoField: "CTORATstpRspInfoField", nRequestID: "int",
                                   bIsLast: "bool") -> "void":
        if bIsLast != 1:
            logger_local_huaxin_trade_debug.info('OnRspQryShareholderAccount[%d]: InvestorID[%s] ExchangeID[%s] ShareholderID[%s]'
            logger_local_huaxin_trade_debug.info(
                'OnRspQryShareholderAccount[%d]: InvestorID[%s] ExchangeID[%s] ShareholderID[%s]'
                        % (nRequestID, pShareholderAccountField.InvestorID, pShareholderAccountField.ExchangeID,
                           pShareholderAccountField.ShareholderID))
        else: