Add 'exit_tag' parameter to 'custom_exit_price' callback.

This commit is contained in:
Rokas Kupstys
2022-04-26 09:39:15 +03:00
parent 44000ae0b3
commit 6d99222320
6 changed files with 12 additions and 8 deletions

View File

@@ -376,7 +376,7 @@ class AwesomeStrategy(IStrategy):
def custom_exit_price(self, pair: str, trade: Trade,
current_time: datetime, proposed_rate: float,
current_profit: float, **kwargs) -> float:
current_profit: float, exit_tag: Optional[str, **kwargs) -> float:
dataframe, last_updated = self.dp.get_analyzed_dataframe(pair=pair,
timeframe=self.timeframe)