chore: add download_trades config key, reorder some keys

This commit is contained in:
Matthias
2024-08-01 07:02:47 +02:00
parent b3ac296cac
commit 8a85077e70
+13 -5
View File
@@ -36,11 +36,6 @@ CONF_SCHEMA = {
"type": ["integer", "number"], "type": ["integer", "number"],
"minimum": -1, "minimum": -1,
}, },
"new_pairs_days": {
"description": "Download data of new pairs for given number of days",
"type": "integer",
"default": 30,
},
"timeframe": { "timeframe": {
"description": ( "description": (
f"The timeframe to use (e.g `1m`, `5m`, `15m`, `30m`, `1h` ...). {__IN_STRATEGY}" f"The timeframe to use (e.g `1m`, `5m`, `15m`, `30m`, `1h` ...). {__IN_STRATEGY}"
@@ -185,6 +180,7 @@ CONF_SCHEMA = {
"type": "boolean", "type": "boolean",
"default": False, "default": False,
}, },
# Lookahead analysis section
"minimum_trade_amount": { "minimum_trade_amount": {
"description": "Minimum amount for a trade - only used for lookahead-analysis", "description": "Minimum amount for a trade - only used for lookahead-analysis",
"type": "number", "type": "number",
@@ -501,6 +497,7 @@ CONF_SCHEMA = {
"required": ["method"], "required": ["method"],
}, },
}, },
# RPC section
"telegram": { "telegram": {
"description": "Telegram settings.", "description": "Telegram settings.",
"type": "object", "type": "object",
@@ -701,6 +698,7 @@ CONF_SCHEMA = {
}, },
"required": ["enabled", "listen_ip_address", "listen_port", "username", "password"], "required": ["enabled", "listen_ip_address", "listen_port", "username", "password"],
}, },
# end of RPC section
"db_url": { "db_url": {
"description": "Database connection URL.", "description": "Database connection URL.",
"type": "string", "type": "string",
@@ -763,6 +761,16 @@ CONF_SCHEMA = {
"description": f"Enable position adjustment. {__IN_STRATEGY}", "description": f"Enable position adjustment. {__IN_STRATEGY}",
"type": "boolean", "type": "boolean",
}, },
# Download data section
"new_pairs_days": {
"description": "Download data of new pairs for given number of days",
"type": "integer",
"default": 30,
},
"download_trades": {
"description": "Download trades data by default (instead of ohlcv data).",
"type": "boolean",
},
"max_entry_position_adjustment": { "max_entry_position_adjustment": {
"description": f"Maximum entry position adjustment allowed. {__IN_STRATEGY}", "description": f"Maximum entry position adjustment allowed. {__IN_STRATEGY}",
"type": ["integer", "number"], "type": ["integer", "number"],