| | |
| | | |
| | | # 下单信息 |
| | | import json |
| | | import pickle |
| | | |
| | | from log_module import async_log_util |
| | | from log_module.log import logger_trade_record |
| | | from third_data.code_plate_key_manager import KPLCodeJXBlockManager |
| | | |
| | | TYPE_PLACE_ORDER = "place_order" # 下单 |
| | | TYPE_REAL_PLACE_ORDER_POSITION = "real_place_order_position" # 真实下单位置 |
| | |
| | | |
| | | |
| | | if __name__ == "__main__": |
| | | code = "000333" |
| | | __trade_log_placr_order_info_dict = {code: PlaceOrderInfo()} |
| | | try: |
| | | jx_blocks, jx_blocks_by = KPLCodeJXBlockManager().get_jx_blocks_cache( |
| | | code), KPLCodeJXBlockManager().get_jx_blocks_cache(code, by=True) |
| | | info = __trade_log_placr_order_info_dict[code] |
| | | info.set_buy_index(0, 1) |
| | | if jx_blocks: |
| | | info.set_kpl_blocks(list(jx_blocks)) |
| | | elif jx_blocks_by: |
| | | info.set_kpl_blocks(list(jx_blocks_by)) |
| | | else: |
| | | info.set_kpl_blocks([]) |
| | | |
| | | add_place_order_log(code, info) |
| | | except Exception as e: |
| | | pass |
| | | pass |