| | |
| | | def __new__(cls, *args, **kwargs): |
| | | if not cls.__instance: |
| | | cls.__instance = super(L2BigNumForMProcessor, cls).__new__(cls, *args, **kwargs) |
| | | t.sleep(random.randint(0,2000)/1000) |
| | | cls.__load_datas() |
| | | return cls.__instance |
| | | |
| | |
| | | jx_blocks, jx_blocks_by = KPLCodeJXBlockManager().get_jx_blocks_cache( |
| | | code), KPLCodeJXBlockManager().get_jx_blocks_cache(code, by=True) |
| | | info = cls.__trade_log_placr_order_info_dict[code] |
| | | info.mode = order_begin_pos.mode |
| | | info.set_buy_index(order_begin_pos.buy_single_index, order_begin_pos.buy_exec_index) |
| | | if jx_blocks: |
| | | info.set_kpl_blocks(list(jx_blocks)) |
| | |
| | | @classmethod |
| | | def __compute_fast_order_begin_pos(cls, code, start_index, end_index): |
| | | limit_up_price = gpcode_manager.get_limit_up_price(code) |
| | | if float(limit_up_price) >= 10: |
| | | return False, -1, "股价大于10块" |
| | | # if float(limit_up_price) >= 10: |
| | | # return False, -1, "股价大于10块" |
| | | total_datas = local_today_datas[code] |
| | | start_time_str = total_datas[start_index]["val"]["time"] |
| | | # if tool.trade_time_sub(start_time_str, "13:00:00") > 0: |