Don't convert trades to OHLCV unless explicitly specified

This commit is contained in:
Matthias
2024-05-18 20:14:52 +02:00
parent e6d5aa1349
commit aa0f90bb68
+5
View File
@@ -629,7 +629,12 @@ def download_data_main(config: Config) -> None:
trading_mode=config.get("trading_mode", TradingMode.SPOT), trading_mode=config.get("trading_mode", TradingMode.SPOT),
) )
if config.get("convert_trades", False) or not exchange.get_option(
"ohlcv_has_history", True
):
# Convert downloaded trade data to different timeframes # Convert downloaded trade data to different timeframes
# Only auto-convert for exchanges without historic klines
convert_trades_to_ohlcv( convert_trades_to_ohlcv(
pairs=expanded_pairs, pairs=expanded_pairs,
timeframes=config["timeframes"], timeframes=config["timeframes"],