diff --git a/freqtrade/commands/arguments.py b/freqtrade/commands/arguments.py index 98281e9f0..c527a80d6 100755 --- a/freqtrade/commands/arguments.py +++ b/freqtrade/commands/arguments.py @@ -142,6 +142,7 @@ ARGS_DOWNLOAD_DATA = [ "include_inactive", "timerange", "download_trades", + "convert_trades", "exchange", "timeframes", "erase", diff --git a/freqtrade/commands/cli_options.py b/freqtrade/commands/cli_options.py index b7aaf7812..87716ff26 100755 --- a/freqtrade/commands/cli_options.py +++ b/freqtrade/commands/cli_options.py @@ -450,6 +450,13 @@ AVAILABLE_CLI_OPTIONS = { "desired timeframe as specified as --timeframes/-t.", action="store_true", ), + "convert_trades": Arg( + "--convert", + help="Convert downloaded trades to OHLCV data. Only applicable in combination with `--dl-trades`. " + "Will be automatic for exchanges which don't have historic OHLCV (e.g. Kraken). " + "If not provided, use `trades-to-ohlcv` to convert trades data to OHLCV data.", + action="store_true", + ), "format_from_trades": Arg( "--format-from", help="Source format for data conversion.", diff --git a/freqtrade/configuration/configuration.py b/freqtrade/configuration/configuration.py index 99ec44525..f7bdc18c4 100644 --- a/freqtrade/configuration/configuration.py +++ b/freqtrade/configuration/configuration.py @@ -370,6 +370,7 @@ class Configuration: ("days", "Detected --days: {}"), ("include_inactive", "Detected --include-inactive-pairs: {}"), ("download_trades", "Detected --dl-trades: {}"), + ("convert_trades", "Detected --convert - Converting Trade data to OHCV {}"), ("dataformat_ohlcv", 'Using "{}" to store OHLCV data.'), ("dataformat_trades", 'Using "{}" to store trades data.'), ("show_timerange", "Detected --show-timerange"),