fix: improved handling for corrupt trades files

part of #10515
This commit is contained in:
Matthias
2024-08-10 17:51:46 +02:00
parent f5ebfcca5a
commit 0afd3fc5e1
2 changed files with 8 additions and 4 deletions

View File

@@ -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: