| | |
| | | if not watch_indexes: |
| | | return False, None, "无大单监听" |
| | | total_datas = local_today_datas.get(code) |
| | | if tool.trade_time_sub(total_datas[start_index]["val"]["time"] ,total_datas[list(watch_indexes)[0]]["val"]["time"]) > 60: |
| | | if tool.trade_time_sub(total_datas[start_index]["val"]["time"], |
| | | total_datas[list(watch_indexes)[0]]["val"]["time"]) > 60: |
| | | return False, None, "只有前60s生效" |
| | | |
| | | cancel_indexes = set() |
| | |
| | | if total_left_money < 1e8: |
| | | if total_left_count <= 1 or ( |
| | | total_left_count <= THRESHOLD_COUNT and limit_up_price and total_left_num * float( |
| | | limit_up_price) < THRESHOLD_MONEY_W * 100): |
| | | limit_up_price) < THRESHOLD_MONEY_W * 100): |
| | | return True, f"剩余笔数({total_left_count})/金额({round(total_left_num * float(limit_up_price) * 100)})不足,成交进度:{trade_index},真实下单位置:{real_order_index} 阈值:({THRESHOLD_MONEY_W},{THRESHOLD_COUNT}) " |
| | | return False, f"不满足撤单条件: 成交进度-{trade_index} 真实下单位置-{real_order_index} total_left_count-{total_left_count} total_left_num-{total_left_num}" |
| | | |