| | |
| | | # 已经下单的需要统计F撤 |
| | | try: |
| | | for d in datas: |
| | | if FCancelBigNumComputer().need_cancel(d)[0] and not DCancelBigNumComputer().has_auto_cancel_rules(code): |
| | | if FCancelBigNumComputer().need_cancel(d)[ |
| | | 0] and not DCancelBigNumComputer().has_auto_cancel_rules(code): |
| | | L2TradeDataProcessor.cancel_buy(code, f"F撤撤单:{d}") |
| | | order_begin_pos = None |
| | | break |
| | |
| | | if order_begin_pos and order_begin_pos.buy_exec_index and order_begin_pos.buy_exec_index > -1: |
| | | HourCancelBigNumComputer().set_transaction_index(code, order_begin_pos.buy_single_index, |
| | | buy_progress_index) |
| | | cresult = FCancelBigNumComputer().need_cancel_for_deal_fast(code,buy_progress_index) |
| | | # cresult = FCancelBigNumComputer().need_cancel_for_deal_fast(code, buy_progress_index) |
| | | # if cresult[0] and not DCancelBigNumComputer().has_auto_cancel_rules(code): |
| | | # L2TradeDataProcessor.cancel_buy(code, f"下单30s内排单不足:{cresult[1]}") |
| | | |
| | | cresult = FCancelBigNumComputer().need_cancel_for_deal_fast_with_total_sell(code, buy_progress_index, order_begin_pos) |
| | | if cresult[0] and not DCancelBigNumComputer().has_auto_cancel_rules(code): |
| | | L2TradeDataProcessor.cancel_buy(code, f"下单5分钟内排单不足:{cresult[1]}") |
| | | L2TradeDataProcessor.cancel_buy(code, f"3s内成交太多:{cresult[1]}") |
| | | |
| | | # ---------------------------------判断板块是否跟上来了------------------------------- |
| | | try: |
| | | pass |