From cd830d988be0dfacd4fd5fac30630ae509fdb71b Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期三, 05 六月 2024 16:14:51 +0800 Subject: [PATCH] 上证买入修改 --- l2/l2_transaction_data_processor.py | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/l2/l2_transaction_data_processor.py b/l2/l2_transaction_data_processor.py index a18b3c2..95de9f2 100644 --- a/l2/l2_transaction_data_processor.py +++ b/l2/l2_transaction_data_processor.py @@ -46,7 +46,8 @@ @param datas: @return: """ - buy_datas, bigger_buy_datas = HuaXinBuyOrderManager.statistic_big_buy_data(code, datas) + limit_up_price = round(float(gpcode_manager.get_limit_up_price(code)), 2) + buy_datas, bigger_buy_datas = HuaXinBuyOrderManager.statistic_big_buy_data(code, datas, limit_up_price) if buy_datas: BigOrderDealManager().add_buy_datas(code, buy_datas) try: @@ -80,7 +81,8 @@ limit_up_price = round(float(limit_up_price), 2) # 璁剧疆鎴愪氦浠� try: - current_price_process_manager.set_trade_price(code, datas[-1][1], l2_huaxin_util.convert_time( datas[-1][3]), limit_up_price) + current_price_process_manager.set_trade_price(code, datas[-1][1], l2_huaxin_util.convert_time(datas[-1][3]), + limit_up_price) except: pass total_datas = l2_data_util.local_today_datas.get(code) @@ -166,10 +168,6 @@ L2TradeDataProcessor.cancel_buy(code, f"W鎾�:{cancel_result[1]}") except: pass - - - - SCancelBigNumComputer().set_transaction_index(code, order_begin_pos.buy_single_index, buy_progress_index) -- Gitblit v1.8.0