From 01990eda7147f99814f9b7babfaad76e835ab0b3 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期五, 10 一月 2025 13:50:40 +0800 Subject: [PATCH] 近5日成交额过小改变参考量 --- code_attribute/code_volumn_manager.py | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/code_attribute/code_volumn_manager.py b/code_attribute/code_volumn_manager.py index 573cd54..364405d 100644 --- a/code_attribute/code_volumn_manager.py +++ b/code_attribute/code_volumn_manager.py @@ -84,6 +84,22 @@ """ return self.__max_volume_in_5days.get(code) + def get_radical_buy_refer_volume(self, code, limit_up_price): + """ + 鑾峰彇鎵叆鐨勫弬鑰冮噺: + 鍙傝�冮灏忎簬3.14浜垮氨鍙�90澶╁弬鑰冮噺 + 鍚﹀垯灏卞彇鏈�杩�5澶╃殑鍙傝�冮噺 + @param code: + @param limit_up_price: + @return: + """ + volume = self.get_max_volume_in_5days(code) + if volume * limit_up_price >= 3.14e8: + return volume + return int(self.get_reference_volume_as_money_y(code)*1e8/limit_up_price) + + + def get_volume_rate_refer_in_5days(self, code, total_sell_volume=0): """ 鑾峰彇浠婃棩閲忎笌5鏃ユ渶澶ч噺鐨勫弬鑰冨�� -- Gitblit v1.8.0