mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 02:12:01 +00:00
parent
f5ebfcca5a
commit
0afd3fc5e1
|
@ -247,9 +247,13 @@ class IDataHandler(ABC):
|
|||
:param timerange: Timerange to load trades for - currently not implemented
|
||||
:return: List of trades
|
||||
"""
|
||||
trades = trades_df_remove_duplicates(
|
||||
self._trades_load(pair, trading_mode, timerange=timerange)
|
||||
)
|
||||
try:
|
||||
trades = self._trades_load(pair, trading_mode, timerange=timerange)
|
||||
except Exception:
|
||||
logger.exception(f"Error loading trades for {pair}")
|
||||
return DataFrame(columns=DEFAULT_TRADES_COLUMNS)
|
||||
|
||||
trades = trades_df_remove_duplicates(trades)
|
||||
|
||||
trades = trades_convert_types(trades)
|
||||
return trades
|
||||
|
|
|
@ -546,7 +546,7 @@ class Exchange:
|
|||
else:
|
||||
return self._trades[pair_interval]
|
||||
else:
|
||||
return DataFrame()
|
||||
return DataFrame(columns=DEFAULT_TRADES_COLUMNS)
|
||||
|
||||
def get_contract_size(self, pair: str) -> Optional[float]:
|
||||
if self.trading_mode == TradingMode.FUTURES:
|
||||
|
|
Loading…
Reference in New Issue
Block a user