diff --git a/freqtrade/commands/data_commands.py b/freqtrade/commands/data_commands.py index 864f0710d..fdfef6316 100644 --- a/freqtrade/commands/data_commands.py +++ b/freqtrade/commands/data_commands.py @@ -89,7 +89,8 @@ def start_convert_data(args: Dict[str, Any], ohlcv: bool = True) -> None: if ohlcv: migrate_binance_futures_data(config) convert_ohlcv_format(config, - convert_from=args['format_from'], convert_to=args['format_to'], + convert_from=args['format_from'], + convert_to=args['format_to'], erase=args['erase']) else: convert_trades_format(config, diff --git a/tests/data/test_converter.py b/tests/data/test_converter.py index b37a2100d..da1459ef7 100644 --- a/tests/data/test_converter.py +++ b/tests/data/test_converter.py @@ -315,6 +315,8 @@ def test_convert_ohlcv_format(default_conf, testdatadir, tmpdir, file_base, cand files_new.append(file_new) default_conf['datadir'] = tmpdir1 + default_conf['candle_types'] = [candletype] + if candletype == CandleType.SPOT: default_conf['pairs'] = ['XRP/ETH', 'XRP/USDT', 'UNITTEST/USDT'] else: @@ -328,7 +330,6 @@ def test_convert_ohlcv_format(default_conf, testdatadir, tmpdir, file_base, cand convert_from='json', convert_to='jsongz', erase=False, - candle_type=candletype ) for file in (files_temp + files_new): assert file.exists() @@ -342,7 +343,6 @@ def test_convert_ohlcv_format(default_conf, testdatadir, tmpdir, file_base, cand convert_from='jsongz', convert_to='json', erase=True, - candle_type=candletype ) for file in (files_temp): assert file.exists()