From ec4cc6d4ccba433cf10678b3d767e588a2d00e91 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期一, 16 十二月 2024 16:57:33 +0800
Subject: [PATCH] 去除掘金依赖

---
 sell_processor.py |   19 -------------------
 1 files changed, 0 insertions(+), 19 deletions(-)

diff --git a/sell_processor.py b/sell_processor.py
index 79d2fa3..8f18d70 100644
--- a/sell_processor.py
+++ b/sell_processor.py
@@ -1,4 +1,3 @@
-import juejin_core
 from utils import tool
 
 
@@ -35,21 +34,3 @@
     def clear(cls, code):
         if code in cls.__highest_price_infos:
             cls.__highest_price_infos.pop(code)
-
-
-
-if __name__ == '__main__':
-    day = tool.get_now_date_str()
-    code = "603189"
-    time_range = ["09:25:00", "15:00:00"]
-    results = juejin_core.GPCodeManager().get_history_tick(code, day + " " + time_range[0],
-                                                           day + " " + time_range[1])
-    pre_price = 14.74
-    TickDataProcess.init_origin_price(code, results[0]['price'],
-                                      round((results[0]['price'] - pre_price) * 100 / pre_price, 2))
-    for result in results:
-        rate = round((result['price'] - pre_price) * 100 / pre_price, 2)
-        r = TickDataProcess.process_tick_data(code, result['created_at'].strftime("%H:%M:%S"), result['price'],
-                                              rate, max_amplitude_rate_percent=0.6)
-        if r:
-            print("鍑忎粨", result['created_at'].strftime("%H:%M:%S"), rate, result['price'])

--
Gitblit v1.8.0