From 5ed30c03ddfedd4cf79cd8fea9fc45b05821d898 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期一, 16 十月 2023 12:44:07 +0800 Subject: [PATCH] 真实下单位置计算方法修改 --- l2/l2_data_manager_new.py | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/l2/l2_data_manager_new.py b/l2/l2_data_manager_new.py index e263301..a9a6755 100644 --- a/l2/l2_data_manager_new.py +++ b/l2/l2_data_manager_new.py @@ -337,7 +337,8 @@ if constant.L2_SOURCE_TYPE == constant.L2_SOURCE_TYPE_HUAXIN: try: # 鑾峰彇涓嬪崟浣嶇疆 - place_order_index = huaxin_delegate_postion_manager.get_l2_place_order_position(code, add_datas) + place_order_index = huaxin_delegate_postion_manager.get_l2_place_order_position(code, float( + gpcode_manager.get_limit_up_price(code)), add_datas) if place_order_index: buy_single_index, buy_exec_index, buy_compute_index, num, count, max_num_set, buy_volume_rate = cls.__get_order_begin_pos( code) @@ -1304,6 +1305,7 @@ except: pass + if __name__ == "__main__": test_trade_record() # yesterday_limit_up_data_records = kpl_data_manager.get_current_limit_up_data_records(1)[0][1] -- Gitblit v1.8.0