From 96dc1a4cc38b588f39387b5a85b9677100e357f1 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期四, 23 三月 2023 23:55:40 +0800
Subject: [PATCH] 首板买入打分机制

---
 l2/safe_count_manager.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/l2/safe_count_manager.py b/l2/safe_count_manager.py
index ba4361a..815f3a2 100644
--- a/l2/safe_count_manager.py
+++ b/l2/safe_count_manager.py
@@ -74,7 +74,7 @@
 
     # 鑾峰彇鏈�鍚庣殑瀹夊叏绗旀暟
     def get_safe_count(self, code, is_first_code, rate):
-        rate = self.__get_rate(code)
+        # rate = self.__get_rate(code)
         count, min_count, max_count = self.__get_base_save_count(code, is_first_code)
         # 绗�4娆′笅鍗曟寜绗竴娆$畻
         # if place_order_count and place_order_count >= 3:
@@ -88,7 +88,7 @@
         #     count = min_count
         # if count > max_count:
         #     count = max_count
-        return int(round(count*(1+rate),0))
+        return int(round(count * (1 + rate), 0))
 
     # 璁$畻鐣欎笅鏉ョ殑姣斾緥
     # last_buy_single_index 涓婁竴娆′笅鍗曚俊鍙疯捣濮嬩綅缃�

--
Gitblit v1.8.0