""" 买入条件工具 """ # 获取自由流通市值限制 # 返回:(最大买入,最优自由流通最小,最优自由流通最大) from trade.trade_manager import MarketSituationManager def get_zyltgb_threshold(market_sitation: int): if market_sitation == MarketSituationManager.SITUATION_GOOD: return 100 * 100000000, 20 * 100000000, 60 * 100000000 return 40 * 100000000, 10 * 100000000, 20 * 100000000