From deb26c8b90f9d67c340b3a757740085ac8dd5743 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期三, 09 十月 2024 00:32:20 +0800 Subject: [PATCH] 订阅特殊量/目标代码扫入板块修改/ --- utils/tool.py | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/utils/tool.py b/utils/tool.py index 63bcb43..a4705a1 100644 --- a/utils/tool.py +++ b/utils/tool.py @@ -377,7 +377,11 @@ def get_buy_volume(limit_up_price): - count = (constant.BUY_MONEY_PER_CODE // int(round(float(limit_up_price) * 100))) * 100 + return get_buy_volume_by_money(limit_up_price, constant.BUY_MONEY_PER_CODE) + + +def get_buy_volume_by_money(limit_up_price, money): + count = (money // int(round(float(limit_up_price) * 100))) * 100 if count < 100: count = 100 return count -- Gitblit v1.8.0