From 3ea84f8adaeeb851e590fa74ceed009a0a19b08c Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期二, 28 十一月 2023 17:46:38 +0800
Subject: [PATCH] 近6个交易日涨幅过高实现

---
 third_data/kpl_api.py |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/third_data/kpl_api.py b/third_data/kpl_api.py
index c82f5e0..0b503c6 100644
--- a/third_data/kpl_api.py
+++ b/third_data/kpl_api.py
@@ -3,6 +3,7 @@
 
 import requests
 
+import constant
 from utils import middle_api_protocol
 
 # 绔炰环
@@ -135,6 +136,13 @@
 
 
 if __name__ == "__main__":
-    limit_up_infos = getLimitUpInfo()
-    limit_up_infos = json.loads(limit_up_infos)
-    print(limit_up_infos)
+    blocks = getCodeJingXuanBlocks("002362")
+    if len(blocks) > 2:
+        # 鏍规嵁娑ㄥ箙鎺掑簭
+        blocks.sort(key=lambda x: x[2])
+        blocks.reverse()
+        datas = []
+        for b in blocks:
+            if b[2] > 0 and b[1] not in constant.KPL_INVALID_BLOCKS:
+                datas.append(b)
+        print(datas)

--
Gitblit v1.8.0