From f0248f54f90a12f491245f0ee3ccfbe8f477a76b Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期五, 22 十二月 2023 14:24:20 +0800
Subject: [PATCH] bug修复

---
 test/test_code_attribute.py |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/test/test_code_attribute.py b/test/test_code_attribute.py
index 6dc5160..5d610a9 100644
--- a/test/test_code_attribute.py
+++ b/test/test_code_attribute.py
@@ -5,21 +5,19 @@
 def is_too_high(datas):
     limit_up_price = round(datas[0]["close"] * 1.1, 2)
     datas.reverse()
-    is_new_high = code_nature_analyse.is_up_too_high_in_10d_with_limit_up(datas)
+    is_new_high = code_nature_analyse.is_price_too_high_in_days(datas, limit_up_price)
     return is_new_high
 
 
 if __name__ == "__main__":
-    code_str = "600148"
+    code_str = "002915"
     codes = code_str.split(",")
     for code in codes:
         if not tool.is_shsz_code(code):
             continue
         try:
-            datas = init_data_util.get_volumns_by_code(code, 120)
-            datas = datas[0:]
-            result = is_too_high(datas)
-            if result:
-                print(code, result)
+            limit_up_price = 16.96
+            volumes_data = init_data_util.get_volumns_by_code(code, 150)
+            is_too_high(volumes_data)
         except:
             print(code, "鍑洪敊")

--
Gitblit v1.8.0