trade/huaxin/huaxin_trade_api.py | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
trade/huaxin/huaxin_trade_data_update.py | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
trade/huaxin/huaxin_trade_api.py
@@ -73,9 +73,9 @@ is_shadow_order = False # 获取涨停价 limit_up_price = gpcode_manager.get_limit_up_price(code) if limit_up_price and volume == huaxin_client_constant.SHADOW_ORDER_VOLUME and abs( float(limitPrice) - float(limit_up_price)) < 0.01: if limit_up_price and volume == huaxin_client_constant.SHADOW_ORDER_VOLUME: shadow_price = tool.get_buy_min_price(float(limit_up_price)) if abs(float(limitPrice) - float(shadow_price)) < 0.01: is_shadow_order = True order = HuaxinOrderEntity(code, orderStatus, orderRef, accountID, orderSysID, trade/huaxin/huaxin_trade_data_update.py
@@ -13,7 +13,7 @@ from trade import trade_manager from trade.huaxin import huaxin_trade_api, huaxin_trade_record_manager from trade.huaxin.huaxin_trade_order_processor import HuaxinOrderEntity, TradeResultProcessor from utils import huaxin_util from utils import huaxin_util, tool trade_data_request_queue = queue.Queue() @@ -55,8 +55,9 @@ # 获取涨停价 is_shadow_order = False limit_up_price = gpcode_manager.get_limit_up_price_cache(code) if limit_up_price and volume == huaxin_client_constant.SHADOW_ORDER_VOLUME and abs( float(limitPrice) - float(limit_up_price)) < 0.01: if limit_up_price and volume == huaxin_client_constant.SHADOW_ORDER_VOLUME: shadow_price = tool.get_buy_min_price(float(limit_up_price)) if abs(float(limitPrice) - float(shadow_price)) < 0.01: is_shadow_order = True if is_shadow_order: continue