mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-14 03:41:14 +00:00
feat: allow object as dry-run balance
This commit is contained in:
@@ -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.",
|
||||||
|
|||||||
@@ -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.",
|
||||||
|
|||||||
Reference in New Issue
Block a user