From 1a0be577a89727ef6b80245b6b53c8ddf43ca7d9 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期五, 07 六月 2024 00:37:26 +0800
Subject: [PATCH] 可购买创业板

---
 huaxin_client/l1_client.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/huaxin_client/l1_client.py b/huaxin_client/l1_client.py
index d74ee22..7ba5423 100644
--- a/huaxin_client/l1_client.py
+++ b/huaxin_client/l1_client.py
@@ -10,6 +10,7 @@
 import xmdapi
 from huaxin_client import tool, constant
 from log_module.log import logger_system, logger_local_huaxin_l1, logger_l2_codes_subscript
+from utils import tool as out_tool
 
 ################B绫�##################
 ADDRESS = "udp://224.224.1.19:7880"
@@ -112,7 +113,7 @@
             return
         if pMarketDataField.SecurityName.find("ST") >= 0:
             return
-        close_price = round(pMarketDataField.UpperLimitPrice / 1.1, 2)
+        close_price = round(pMarketDataField.UpperLimitPrice / out_tool.get_limit_up_rate(pMarketDataField.SecurityID), 2)
         rate = round((pMarketDataField.LastPrice - close_price) * 100 / close_price, 2)
         # print(pMarketDataField.SecurityID, pMarketDataField.SecurityName, rate, pMarketDataField.Volume)
 

--
Gitblit v1.8.0