mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
@@ -247,9 +247,13 @@ class IDataHandler(ABC):
|
|||||||
:param timerange: Timerange to load trades for - currently not implemented
|
:param timerange: Timerange to load trades for - currently not implemented
|
||||||
:return: List of trades
|
:return: List of trades
|
||||||
"""
|
"""
|
||||||
trades = trades_df_remove_duplicates(
|
try:
|
||||||
self._trades_load(pair, trading_mode, timerange=timerange)
|
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)
|
trades = trades_convert_types(trades)
|
||||||
return trades
|
return trades
|
||||||
|
|||||||
@@ -546,7 +546,7 @@ class Exchange:
|
|||||||
else:
|
else:
|
||||||
return self._trades[pair_interval]
|
return self._trades[pair_interval]
|
||||||
else:
|
else:
|
||||||
return DataFrame()
|
return DataFrame(columns=DEFAULT_TRADES_COLUMNS)
|
||||||
|
|
||||||
def get_contract_size(self, pair: str) -> Optional[float]:
|
def get_contract_size(self, pair: str) -> Optional[float]:
|
||||||
if self.trading_mode == TradingMode.FUTURES:
|
if self.trading_mode == TradingMode.FUTURES:
|
||||||
|
|||||||
Reference in New Issue
Block a user