From d9d2f9b1d831f98e8154399aefe7a257b948ec81 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期三, 22 五月 2024 17:41:27 +0800 Subject: [PATCH] L后修改/下过单的不再看身位/同一板块不限制挂单数量与买入数量/调整接口输出 --- l2/l2_data_manager_new.py | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/l2/l2_data_manager_new.py b/l2/l2_data_manager_new.py index 5efb507..07b1db2 100644 --- a/l2/l2_data_manager_new.py +++ b/l2/l2_data_manager_new.py @@ -1320,7 +1320,11 @@ return True, False, can_buy_result[2] else: if not can_buy_result[0]: - return False, True, f"闈炲己鍔�30鍒嗛挓锛屼笉婊¤冻韬綅锛歿can_buy_result[2]}" + place_order_count = trade_data_manager.PlaceOrderCountManager().get_place_order_count(code) + if place_order_count <=0: + return False, True, f"闈炲己鍔�30鍒嗛挓锛屼笉婊¤冻韬綅锛歿can_buy_result[2]}" + else: + return True, False, "涔嬪墠涓嬭繃鍗�" return True, False, can_buy_result[2] @classmethod -- Gitblit v1.8.0