Merge pull request #6440 from clover-es/feat/short

Add leverage strategy to new-strategy command
This commit is contained in:
Matthias
2022-02-25 15:18:46 +01:00
committed by GitHub
3 changed files with 35 additions and 2 deletions

View File

@@ -426,8 +426,7 @@ class IStrategy(ABC, HyperStrategyMixin):
proposed_leverage: float, max_leverage: float, side: str,
**kwargs) -> float:
"""
Customize leverage for each new trade. This method is not called when edge module is
enabled.
Customize leverage for each new trade. This method is only called in futures mode.
:param pair: Pair that's currently analyzed
:param current_time: datetime object, containing the current datetime