Fix type checking error

This commit is contained in:
Matthias
2023-09-17 19:40:44 +02:00
committed by GitHub
parent 29a5e049b9
commit 158bf09774

View File

@@ -33,7 +33,7 @@ class StrategyTestV3CustomEntryPrice(StrategyTestV3):
def populate_exit_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
return dataframe
def custom_entry_price(self, pair: str, trade: Trade, current_time: datetime,
def custom_entry_price(self, pair: str, trade: Optional[Trade], current_time: datetime,
proposed_rate: float,
entry_tag: Optional[str], side: str, **kwargs) -> float: