| | |
| | | """ |
| | | L2数据输出工具 |
| | | """ |
| | | from code_attribute import gpcode_manager |
| | | from l2 import l2_data_util, l2_data_source_util |
| | | from l2.l2_data_util import L2DataUtil, local_today_canceled_buyno_map |
| | | from l2.l2_transaction_data_manager import HuaXinBuyOrderManager |
| | |
| | | if tool.is_sh_code(code): |
| | | # 上证的票需要加上主动买的数据 |
| | | num += dealing_active_info[1] // 100 |
| | | |
| | | if i == real_place_order_index: |
| | | type_ = 1 |
| | | has_real_order_index = True |
| | | elif num * float(val['price']) >= 29900: |
| | | type_ = 2 |
| | | |
| | | fresults.append((num, type_)) |
| | | fresults.append((num, type_, int(num * float(val['price']) * 100))) |
| | | if len(fresults) > max_count: |
| | | break |
| | | return fresults |