ignore custom_entry_price trade object type test, remove LocalTrade as type

This commit is contained in:
Axel-CH
2023-09-16 13:58:59 -04:00
parent 5b857aeaf0
commit a7cd9d77f2
3 changed files with 8 additions and 4 deletions

View File

@@ -738,7 +738,9 @@ class Backtesting:
if order_type == 'limit':
new_rate = strategy_safe_wrapper(self.strategy.custom_entry_price,
default_retval=propose_rate)(
pair=pair, trade=trade, current_time=current_time,
pair=pair,
trade=trade, # type: ignore[arg-type]
current_time=current_time,
proposed_rate=propose_rate, entry_tag=entry_tag,
side=direction,
) # default value is the open rate