add --convert-trades argument to download-data

This commit is contained in:
Matthias 2024-05-18 20:11:12 +02:00
parent 9b031490cc
commit e6d5aa1349
3 changed files with 9 additions and 0 deletions

View File

@ -142,6 +142,7 @@ ARGS_DOWNLOAD_DATA = [
"include_inactive",
"timerange",
"download_trades",
"convert_trades",
"exchange",
"timeframes",
"erase",

View File

@ -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.",

View File

@ -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"),