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",
"message": "Select exchange",
"choices": [
"bittrex",
"binance",
"binanceje",
"binanceus",
"bittrex",
"kraken",
Separator(),
"other",

View File

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

View File

@ -1,12 +1,13 @@
"name": "{{ exchange_name | lower }}",
"key": "{{ exchange_key }}",
"secret": "{{ exchange_secret }}",
"ccxt_config": {"enableRateLimit": true},
"ccxt_async_config": {
"exchange": {
"name": "{{ exchange_name | lower }}",
"key": "{{ exchange_key }}",
"secret": "{{ exchange_secret }}",
"ccxt_config": {"enableRateLimit": true},
"ccxt_async_config": {
"enableRateLimit": true,
"rateLimit": 200
},
"pair_whitelist": [
},
"pair_whitelist": [
"ALGO/BTC",
"ATOM/BTC",
"BAT/BTC",
@ -22,8 +23,8 @@
"XMR/BTC",
"XRP/BTC",
"XTZ/BTC"
],
"pair_blacklist": [
],
"pair_blacklist": [
"BNB/BTC",
"BNB/BUSD",
"BNB/ETH",
@ -36,4 +37,5 @@
"BNB/USDC",
"BNB/USDS",
"BNB/USDT",
]
]
}

View File

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

View File

@ -1,12 +1,14 @@
"name": "kraken",
"key": "{{ exchange_key }}",
"secret": "{{ exchange_secret }}",
"ccxt_config": {"enableRateLimit": true},
"ccxt_async_config": {
"download_trades": true,
"exchange": {
"name": "kraken",
"key": "{{ exchange_key }}",
"secret": "{{ exchange_secret }}",
"ccxt_config": {"enableRateLimit": true},
"ccxt_async_config": {
"enableRateLimit": true,
"rateLimit": 1000
},
"pair_whitelist": [
},
"pair_whitelist": [
"ADA/EUR",
"ATOM/EUR",
"BAT/EUR",
@ -27,7 +29,8 @@
"XRP/EUR",
"XTZ/EUR",
"ZEC/EUR"
],
"pair_blacklist": [
],
"pair_blacklist": [
]
]
}