From 0acb55dbb2d251472f902b3bb721fd888ab9a31f Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期一, 08 一月 2024 17:37:32 +0800
Subject: [PATCH] 增加获取当前正在委托详情API/下单后立马移除红名单

---
 code_attribute/code_volumn_manager.py |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/code_attribute/code_volumn_manager.py b/code_attribute/code_volumn_manager.py
index 3f578b1..c5a58f2 100644
--- a/code_attribute/code_volumn_manager.py
+++ b/code_attribute/code_volumn_manager.py
@@ -97,6 +97,17 @@
     return rate, (today, max(int(max60[0]), int(yesterday)))
 
 
+# 鑾峰彇閲忓弬鑰冩棩鏈�
+def get_volume_refer_date(code):
+    max60, yesterday = get_histry_volumn(code)
+    if max60 is None or yesterday is None:
+        raise Exception("鑾峰彇澶辫触")
+    if int(max60[0]) >= int(yesterday):
+        return max60[1]
+    else:
+        return "涓婁釜浜ゆ槗鏃�"
+
+
 # 鑾峰彇閲忔瘮绱㈠紩
 def get_volume_rate_index(volume_rate):
     rates = [0.2, 0.4, 0.6, 0.8, 1, 1.2, 1.4, 1.6]

--
Gitblit v1.8.0