utils/sell_util.py
@@ -5,12 +5,14 @@ from utils import tool def get_sell_price(price_type,limit_up_price,limit_down_price, current_price): def get_sell_price(price_type, limit_up_price, limit_down_price, current_price): price = None if price_type == 0: if not current_price: raise Exception("没有获取到L1现价") price = tool.get_buy_min_price(current_price) if limit_down_price and price < round(float(limit_down_price), 2): price = round(float(limit_down_price), 2) elif price_type == 1: if not limit_down_price: raise Exception("没有获取到跌停价")