Add "side" parameter to custom_stake_amount

This commit is contained in:
Matthias
2021-09-26 19:35:54 +02:00
parent 84e013de2d
commit a926f54a25
5 changed files with 12 additions and 9 deletions

View File

@@ -619,7 +619,7 @@ It is possible to manage your risk by reducing or increasing stake amount when p
class AwesomeStrategy(IStrategy):
def custom_stake_amount(self, pair: str, current_time: datetime, current_rate: float,
proposed_stake: float, min_stake: float, max_stake: float,
**kwargs) -> float:
side: str, **kwargs) -> float:
dataframe, _ = self.dp.get_analyzed_dataframe(pair=pair, timeframe=self.timeframe)
current_candle = dataframe.iloc[-1].squeeze()