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,39 +1,41 @@
"name": "{{ exchange_name | lower }}", "exchange": {
"key": "{{ exchange_key }}", "name": "{{ exchange_name | lower }}",
"secret": "{{ exchange_secret }}", "key": "{{ exchange_key }}",
"ccxt_config": {"enableRateLimit": true}, "secret": "{{ exchange_secret }}",
"ccxt_async_config": { "ccxt_config": {"enableRateLimit": true},
"enableRateLimit": true, "ccxt_async_config": {
"rateLimit": 200 "enableRateLimit": true,
}, "rateLimit": 200
"pair_whitelist": [ },
"ALGO/BTC", "pair_whitelist": [
"ATOM/BTC", "ALGO/BTC",
"BAT/BTC", "ATOM/BTC",
"BCH/BTC", "BAT/BTC",
"BRD/BTC", "BCH/BTC",
"EOS/BTC", "BRD/BTC",
"ETH/BTC", "EOS/BTC",
"IOTA/BTC", "ETH/BTC",
"LINK/BTC", "IOTA/BTC",
"LTC/BTC", "LINK/BTC",
"NEO/BTC", "LTC/BTC",
"NXS/BTC", "NEO/BTC",
"XMR/BTC", "NXS/BTC",
"XRP/BTC", "XMR/BTC",
"XTZ/BTC" "XRP/BTC",
], "XTZ/BTC"
"pair_blacklist": [ ],
"BNB/BTC", "pair_blacklist": [
"BNB/BUSD", "BNB/BTC",
"BNB/ETH", "BNB/BUSD",
"BNB/EUR", "BNB/ETH",
"BNB/NGN", "BNB/EUR",
"BNB/PAX", "BNB/NGN",
"BNB/RUB", "BNB/PAX",
"BNB/TRY", "BNB/RUB",
"BNB/TUSD", "BNB/TRY",
"BNB/USDC", "BNB/TUSD",
"BNB/USDS", "BNB/USDC",
"BNB/USDT", "BNB/USDS",
] "BNB/USDT",
]
}

View File

@ -1,13 +1,15 @@
"name": "{{ exchange_name | lower }}", "exchange": {
"key": "{{ exchange_key }}", "name": "{{ exchange_name | lower }}",
"secret": "{{ exchange_secret }}", "key": "{{ exchange_key }}",
"ccxt_config": {"enableRateLimit": true}, "secret": "{{ exchange_secret }}",
"ccxt_async_config": { "ccxt_config": {"enableRateLimit": true},
"enableRateLimit": true "ccxt_async_config": {
}, "enableRateLimit": true
"pair_whitelist": [ },
"pair_whitelist": [
], ],
"pair_blacklist": [ "pair_blacklist": [
] ]
}

View File

@ -1,33 +1,36 @@
"name": "kraken", "download_trades": true,
"key": "{{ exchange_key }}", "exchange": {
"secret": "{{ exchange_secret }}", "name": "kraken",
"ccxt_config": {"enableRateLimit": true}, "key": "{{ exchange_key }}",
"ccxt_async_config": { "secret": "{{ exchange_secret }}",
"enableRateLimit": true, "ccxt_config": {"enableRateLimit": true},
"rateLimit": 1000 "ccxt_async_config": {
}, "enableRateLimit": true,
"pair_whitelist": [ "rateLimit": 1000
"ADA/EUR", },
"ATOM/EUR", "pair_whitelist": [
"BAT/EUR", "ADA/EUR",
"BCH/EUR", "ATOM/EUR",
"BTC/EUR", "BAT/EUR",
"DAI/EUR", "BCH/EUR",
"DASH/EUR", "BTC/EUR",
"EOS/EUR", "DAI/EUR",
"ETC/EUR", "DASH/EUR",
"ETH/EUR", "EOS/EUR",
"LINK/EUR", "ETC/EUR",
"LTC/EUR", "ETH/EUR",
"QTUM/EUR", "LINK/EUR",
"REP/EUR", "LTC/EUR",
"WAVES/EUR", "QTUM/EUR",
"XLM/EUR", "REP/EUR",
"XMR/EUR", "WAVES/EUR",
"XRP/EUR", "XLM/EUR",
"XTZ/EUR", "XMR/EUR",
"ZEC/EUR" "XRP/EUR",
], "XTZ/EUR",
"pair_blacklist": [ "ZEC/EUR"
],
"pair_blacklist": [
] ]
}