Improve logging in kraken-converter

This commit is contained in:
Matthias
2023-09-24 22:47:44 +02:00
parent a3f167f6df
commit 488629096b

View File

@@ -46,8 +46,11 @@ def import_kraken_trades_from_csv(config: Config, convert_to: str):
df = pd.read_csv(f, names=KRAKEN_CSV_TRADE_COLUMNS)
dfs.append(df)
# Load existing trades data
if not dfs:
logger.info(f"No data found for pair {pair}")
continue
trades = pd.concat(dfs, ignore_index=True)
trades.loc[:, 'timestamp'] = trades['timestamp'] * 1e3