feat: add "trades" switch to list-data command

This commit is contained in:
Matthias 2024-08-13 06:46:02 +02:00
parent 5a9f87ac63
commit d02ea3244a
3 changed files with 16 additions and 4 deletions

View File

@ -132,7 +132,15 @@ ARGS_CONVERT_TRADES = [
"trading_mode",
]
ARGS_LIST_DATA = ["exchange", "dataformat_ohlcv", "pairs", "trading_mode", "show_timerange"]
ARGS_LIST_DATA = [
"exchange",
"dataformat_ohlcv",
"dataformat_trades",
"trades",
"pairs",
"trading_mode",
"show_timerange",
]
ARGS_DOWNLOAD_DATA = [
"pairs",

View File

@ -446,8 +446,12 @@ AVAILABLE_CLI_OPTIONS = {
),
"download_trades": Arg(
"--dl-trades",
help="Download trades instead of OHLCV data. The bot will resample trades to the "
"desired timeframe as specified as --timeframes/-t.",
help="Download trades instead of OHLCV data.",
action="store_true",
),
"trades": Arg(
"--trades",
help="Work on trades data instead of OHLCV data.",
action="store_true",
),
"convert_trades": Arg(

View File

@ -118,7 +118,7 @@ def start_list_data(args: Dict[str, Any]) -> None:
List available OHLCV data
"""
if args["download_trades"]:
if args["trades"]:
start_list_trades_data(args)
return