| | |
| | | # price_type: 0-价格笼子 1-跌停价 2-涨停价 3-现价 4-买5价 |
| | | async_log_util.info(logger_trade, f"API卖: 接收数据-{data}") |
| | | current_price = PositionCodeDataManager.get_l1_current_price(code) |
| | | if current_price is None: |
| | | if current_price is None or current_price <= 0.0: |
| | | results = history_k_data_util.HistoryKDatasUtils.get_gp_current_info([code]) |
| | | if results: |
| | | current_price = results[0]["price"] |
| | |
| | | delegate_sell_orders = DelegateSellOrderManager.get_delegate_sell_orders(code) |
| | | if delegate_sell_orders: |
| | | for d in delegate_sell_orders: |
| | | # [(orderSysID, securityID, insertTime, limitPrice)] |
| | | if int(d[2].replace(":", "")) >= int("093000"): |
| | | continue |
| | | if round(d[3], 2) > price: |