From a5eaa98f55e665de19564022993503d9427d74c8 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期二, 07 十一月 2023 17:06:50 +0800
Subject: [PATCH] 非快速下单增加板上买模式

---
 l2/l2_data_manager.py |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/l2/l2_data_manager.py b/l2/l2_data_manager.py
index 73fecc5..e2f7447 100644
--- a/l2/l2_data_manager.py
+++ b/l2/l2_data_manager.py
@@ -19,7 +19,8 @@
 
     # mode: 0-鏅�氫氦鏄�  1-蹇�熶氦鏄�
     def __init__(self, buy_single_index=None, buy_exec_index=-1, buy_compute_index=None, num=0, count=0,
-                 max_num_set=None, buy_volume_rate=None, sell_info=None, threshold_money=None, mode=0):
+                 max_num_set=None, buy_volume_rate=None, sell_info=None, threshold_money=None, mode=0,
+                 at_limit_up=False):
         self.buy_single_index = buy_single_index
         self.buy_exec_index = buy_exec_index
         self.buy_compute_index = buy_compute_index
@@ -33,6 +34,8 @@
         self.buy_volume_rate = buy_volume_rate
         self.sell_info = sell_info
         self.mode = mode
+        # 鏄惁鏄澘涓婁拱
+        self.at_limit_up = at_limit_up
 
     def get_max_num_set(self):
         if self.max_num_set:
@@ -205,5 +208,5 @@
                                                                               buy_volume_rate=0.6,
                                                                               mode=OrderBeginPosInfo.MODE_NORMAL,
                                                                               ))
-    print( TradePointManager().get_buy_compute_start_data_cache(code).max_num_set)
+    print(TradePointManager().get_buy_compute_start_data_cache(code).max_num_set)
     RedisUtils.run_loop()

--
Gitblit v1.8.0