From 81f328532e366eef171b71810b221a9294dda78f Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期四, 21 十二月 2023 14:31:58 +0800 Subject: [PATCH] 买入条件调整/L撤调整 --- code_attribute/gpcode_manager.py | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/code_attribute/gpcode_manager.py b/code_attribute/gpcode_manager.py index 0bef2bf..5f119e3 100644 --- a/code_attribute/gpcode_manager.py +++ b/code_attribute/gpcode_manager.py @@ -763,6 +763,12 @@ return tool.to_price(decimal.Decimal(str(price)) * decimal.Decimal("1.1")) +def get_limit_down_price_by_preprice(price): + if price is None: + return None + return tool.to_price(decimal.Decimal(str(price)) * decimal.Decimal("0.9")) + + # 鑾峰彇璺屽仠浠� def get_limit_down_price(code): price = CodePrePriceManager.get_price_pre_cache(code) -- Gitblit v1.8.0