margin_mode is empty string for spot new configs
This commit is contained in:
parent
d7955e6a31
commit
60db1b1c0c
@ -207,7 +207,7 @@ def ask_user_config() -> Dict[str, Any]:
|
|||||||
# Interrupted questionary sessions return an empty dict.
|
# Interrupted questionary sessions return an empty dict.
|
||||||
raise OperationalException("User interrupted interactive questions.")
|
raise OperationalException("User interrupted interactive questions.")
|
||||||
answers["margin_mode"] = (
|
answers["margin_mode"] = (
|
||||||
'\n "margin_mode": "isolated",'
|
'isolated'
|
||||||
if answers.get("trading_mode") == 'futures'
|
if answers.get("trading_mode") == 'futures'
|
||||||
else ''
|
else ''
|
||||||
)
|
)
|
||||||
|
@ -13,7 +13,8 @@
|
|||||||
"fiat_display_currency": "{{ fiat_display_currency }}",{{ ('\n "timeframe": "' + timeframe + '",') if timeframe else '' }}
|
"fiat_display_currency": "{{ fiat_display_currency }}",{{ ('\n "timeframe": "' + timeframe + '",') if timeframe else '' }}
|
||||||
"dry_run": {{ dry_run | lower }},
|
"dry_run": {{ dry_run | lower }},
|
||||||
"cancel_open_orders_on_exit": false,
|
"cancel_open_orders_on_exit": false,
|
||||||
"trading_mode": "{{ trading_mode }}",{{ margin_mode }}
|
"trading_mode": "{{ trading_mode }}",
|
||||||
|
"margin_mode": "{{ margin_mode }}",
|
||||||
"unfilledtimeout": {
|
"unfilledtimeout": {
|
||||||
"buy": 10,
|
"buy": 10,
|
||||||
"sell": 10,
|
"sell": 10,
|
||||||
|
Loading…
Reference in New Issue
Block a user