feat: allow object as dry-run balance

This commit is contained in:
Matthias
2024-11-26 07:02:54 +01:00
parent 58cde3253d
commit 92e64927b0
2 changed files with 14 additions and 3 deletions

View File

@@ -102,8 +102,17 @@
}, },
"dry_run_wallet": { "dry_run_wallet": {
"description": "Initial wallet balance for dry run mode.", "description": "Initial wallet balance for dry run mode.",
"type": "number", "type": [
"default": 1000 "number",
"object"
],
"default": 1000,
"patternProperties": {
"^[a-zA-Z0-9]+$": {
"type": "number"
}
},
"additionalProperties": false
}, },
"cancel_open_orders_on_exit": { "cancel_open_orders_on_exit": {
"description": "Cancel open orders when exiting.", "description": "Cancel open orders when exiting.",

View File

@@ -85,8 +85,10 @@ CONF_SCHEMA = {
}, },
"dry_run_wallet": { "dry_run_wallet": {
"description": "Initial wallet balance for dry run mode.", "description": "Initial wallet balance for dry run mode.",
"type": "number", "type": ["number", "object"],
"default": DRY_RUN_WALLET, "default": DRY_RUN_WALLET,
"patternProperties": {r"^[a-zA-Z0-9]+$": {"type": "number"}},
"additionalProperties": False,
}, },
"cancel_open_orders_on_exit": { "cancel_open_orders_on_exit": {
"description": "Cancel open orders when exiting.", "description": "Cancel open orders when exiting.",