Allow exchange templates to configure outside-options too

This commit is contained in:
Matthias 2020-02-08 13:51:55 +01:00
parent abf10aec98
commit 52f4187129
5 changed files with 91 additions and 86 deletions

View File

@ -90,10 +90,10 @@ def ask_user_config() -> Dict[str, Any]:
"name": "exchange_name", "name": "exchange_name",
"message": "Select exchange", "message": "Select exchange",
"choices": [ "choices": [
"bittrex",
"binance", "binance",
"binanceje", "binanceje",
"binanceus", "binanceus",
"bittrex",
"kraken", "kraken",
Separator(), Separator(),
"other", "other",

View File

@ -27,9 +27,7 @@
"sell_profit_only": false, "sell_profit_only": false,
"ignore_roi_if_buy_signal": false "ignore_roi_if_buy_signal": false
}, },
"exchange": { {{ exchange | indent(4) }},
{{ exchange | indent(8) }}
},
"pairlists": [ "pairlists": [
{"method": "StaticPairList"} {"method": "StaticPairList"}
], ],

View File

@ -1,3 +1,4 @@
"exchange": {
"name": "{{ exchange_name | lower }}", "name": "{{ exchange_name | lower }}",
"key": "{{ exchange_key }}", "key": "{{ exchange_key }}",
"secret": "{{ exchange_secret }}", "secret": "{{ exchange_secret }}",
@ -37,3 +38,4 @@
"BNB/USDS", "BNB/USDS",
"BNB/USDT", "BNB/USDT",
] ]
}

View File

@ -1,3 +1,4 @@
"exchange": {
"name": "{{ exchange_name | lower }}", "name": "{{ exchange_name | lower }}",
"key": "{{ exchange_key }}", "key": "{{ exchange_key }}",
"secret": "{{ exchange_secret }}", "secret": "{{ exchange_secret }}",
@ -11,3 +12,4 @@
"pair_blacklist": [ "pair_blacklist": [
] ]
}

View File

@ -1,3 +1,5 @@
"download_trades": true,
"exchange": {
"name": "kraken", "name": "kraken",
"key": "{{ exchange_key }}", "key": "{{ exchange_key }}",
"secret": "{{ exchange_secret }}", "secret": "{{ exchange_secret }}",
@ -31,3 +33,4 @@
"pair_blacklist": [ "pair_blacklist": [
] ]
}