| | |
| | | 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: |
| | | is_shadow_order = True |
| | | 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, |
| | | insertTime=insertTime, acceptTime=acceptTime, |
| | |
| | | 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() |
| | | |
| | |
| | | # 获取涨停价 |
| | | 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: |
| | | is_shadow_order = True |
| | | 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 |
| | | |