修复custom_stake_amount方法签名 - 移除不必要的参数,使用**kwargs捕获所有参数
This commit is contained in:
parent
d6f866b769
commit
32125c0a67
@ -437,8 +437,7 @@ class StaticGrid(IStrategy):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
def custom_stake_amount(self, pair: str, current_rate: float, proposed_stake: float,
|
def custom_stake_amount(self, pair: str, current_rate: float, proposed_stake: float,
|
||||||
min_stake: float, max_stake: float, trade_number: int,
|
min_stake: float, max_stake: float, **kwargs) -> float:
|
||||||
time_in_market: int, **kwargs) -> float:
|
|
||||||
"""
|
"""
|
||||||
自定义初始建仓金额,使每个网格投入金额一致
|
自定义初始建仓金额,使每个网格投入金额一致
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user