| | |
| | | return False, "已经超过生效时间" |
| | | # 计算已经成交的数量 |
| | | total_deal_num = 0 |
| | | for i in range(order_position.buy_single_index, trade_index ): |
| | | for i in range(order_position.buy_single_index, trade_index): |
| | | data = total_datas[i] |
| | | val = data["val"] |
| | | if not L2DataUtil.is_limit_up_price_buy(val): |
| | |
| | | if str(total_datas[trade_index]["val"]["orderNo"]) == str(dealing_info[0]): |
| | | total_deal_num += (total_datas[trade_index]["val"]["num"] - dealing_info[1] // 100) |
| | | limit_up_price = gpcode_manager.get_limit_up_price(code) |
| | | deal_money = int(total_deal_num * float(limit_up_price) *100) |
| | | if deal_money >= order_position.sell_info[1] * 2: |
| | | deal_money = int(total_deal_num * float(limit_up_price) * 100) |
| | | if deal_money >= order_position.sell_info[1] * 2: |
| | | return True, f"成交金额:{deal_money}/{order_position.sell_info[1] * 2}" |
| | | return False, "成交金额不满足" |
| | | except Exception as e: |
| | | l2_log.f_cancel_debug(code, "计算出错:{}",str(e)) |
| | | l2_log.f_cancel_debug(code, "计算出错:{}", str(e)) |
| | | return False, "计算出错" |
| | | |
| | | |
| | | |
| | | # ---------------------------------G撤------------------------------- |