add --convert-trades argument to download-data
This commit is contained in:
@@ -142,6 +142,7 @@ ARGS_DOWNLOAD_DATA = [
|
|||||||
"include_inactive",
|
"include_inactive",
|
||||||
"timerange",
|
"timerange",
|
||||||
"download_trades",
|
"download_trades",
|
||||||
|
"convert_trades",
|
||||||
"exchange",
|
"exchange",
|
||||||
"timeframes",
|
"timeframes",
|
||||||
"erase",
|
"erase",
|
||||||
|
|||||||
@@ -450,6 +450,13 @@ AVAILABLE_CLI_OPTIONS = {
|
|||||||
"desired timeframe as specified as --timeframes/-t.",
|
"desired timeframe as specified as --timeframes/-t.",
|
||||||
action="store_true",
|
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_trades": Arg(
|
||||||
"--format-from",
|
"--format-from",
|
||||||
help="Source format for data conversion.",
|
help="Source format for data conversion.",
|
||||||
|
|||||||
@@ -370,6 +370,7 @@ class Configuration:
|
|||||||
("days", "Detected --days: {}"),
|
("days", "Detected --days: {}"),
|
||||||
("include_inactive", "Detected --include-inactive-pairs: {}"),
|
("include_inactive", "Detected --include-inactive-pairs: {}"),
|
||||||
("download_trades", "Detected --dl-trades: {}"),
|
("download_trades", "Detected --dl-trades: {}"),
|
||||||
|
("convert_trades", "Detected --convert - Converting Trade data to OHCV {}"),
|
||||||
("dataformat_ohlcv", 'Using "{}" to store OHLCV data.'),
|
("dataformat_ohlcv", 'Using "{}" to store OHLCV data.'),
|
||||||
("dataformat_trades", 'Using "{}" to store trades data.'),
|
("dataformat_trades", 'Using "{}" to store trades data.'),
|
||||||
("show_timerange", "Detected --show-timerange"),
|
("show_timerange", "Detected --show-timerange"),
|
||||||
|
|||||||
Reference in New Issue
Block a user