From 5488789bc467e262e23116df5480691a2c064330 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 20 May 2023 11:01:42 +0200 Subject: [PATCH] Arguments should be in the configuration. --- freqtrade/commands/cli_options.py | 2 -- freqtrade/constants.py | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/commands/cli_options.py b/freqtrade/commands/cli_options.py index 5dd587559..33de428db 100755 --- a/freqtrade/commands/cli_options.py +++ b/freqtrade/commands/cli_options.py @@ -695,14 +695,12 @@ AVAILABLE_CLI_OPTIONS = { help='set INT minimum trade amount', type=check_int_positive, metavar='INT', - default=10, ), "targeted_trade_amount": Arg( '--targeted-trade-amount', help='set INT targeted trade amount', type=check_int_positive, metavar='INT', - default=20, ), "lookahead_analysis_exportfilename": Arg( '--lookahead-analysis-exportfilename', diff --git a/freqtrade/constants.py b/freqtrade/constants.py index b8e240419..ef59d8999 100644 --- a/freqtrade/constants.py +++ b/freqtrade/constants.py @@ -164,6 +164,8 @@ CONF_SCHEMA = { 'trading_mode': {'type': 'string', 'enum': TRADING_MODES}, 'margin_mode': {'type': 'string', 'enum': MARGIN_MODES}, 'reduce_df_footprint': {'type': 'boolean', 'default': False}, + 'minimum_trade_amount': {'type': 'number', 'default': 10}, + 'targeted_trade_amount': {'type': 'number', 'default': 20}, 'liquidation_buffer': {'type': 'number', 'minimum': 0.0, 'maximum': 0.99}, 'backtest_breakdown': { 'type': 'array',