| | |
| | | import copy |
| | | import logging |
| | | import threading |
| | | import time |
| | | import time as t |
| | | |
| | | from cancel_strategy.s_l_h_cancel_strategy import HourCancelBigNumComputer, LCancelRateManager |
| | |
| | | |
| | | @classmethod |
| | | def __recompute_real_order_index(cls, code, pre_real_order_index, order_info, compute_type): |
| | | # 因为数据慢的问题重新计算 |
| | | real_order_index = huaxin_delegate_postion_manager.recompute_for_slow_time(code, order_info, |
| | | pre_real_order_index, compute_type) |
| | | if real_order_index: |
| | | # 1s之后重新计算 |
| | | time.sleep(1) |
| | | real_order_index = huaxin_delegate_postion_manager.RealDelegateOrderPositionManager().recompute_l2_place_order_position(code, order_info, pre_real_order_index, compute_type) |
| | | if real_order_index and pre_real_order_index!=real_order_index: |
| | | try: |
| | | exec_index = order_info[6] |
| | | order_begin_pos = cls.__get_order_begin_pos( |
| | |
| | | return False, None, "距离上次统计大单时间过去60s", set() |
| | | |
| | | if lack_money == 0: |
| | | min_num = int(5000 / limit_up_price) |
| | | if not tool.is_sh_code(code): |
| | | # 非上证的票看50w |
| | | min_num = int(5000 / limit_up_price) |
| | | # 需要监听的大单 |
| | | watch_indexes = set() |
| | | # 总委托大单金额 |