Add new_config section for kucoin

This commit is contained in:
Matthias 2021-09-03 08:54:15 +02:00
parent 19ad165483
commit e64ccd8fc1
2 changed files with 26 additions and 0 deletions

View File

@ -105,6 +105,8 @@ def ask_user_config() -> Dict[str, Any]:
"bittrex", "bittrex",
"kraken", "kraken",
"ftx", "ftx",
"kucoin",
"gateio",
Separator(), Separator(),
"other", "other",
], ],
@ -128,6 +130,12 @@ def ask_user_config() -> Dict[str, Any]:
"message": "Insert Exchange Secret", "message": "Insert Exchange Secret",
"when": lambda x: not x['dry_run'] "when": lambda x: not x['dry_run']
}, },
{
"type": "password",
"name": "exchange_key_password",
"message": "Insert Exchange API Key password",
"when": lambda x: not x['dry_run'] and x['exchange_name'] == 'kucoin'
},
{ {
"type": "confirm", "type": "confirm",
"name": "telegram", "name": "telegram",

View File

@ -0,0 +1,18 @@
"exchange": {
"name": "{{ exchange_name | lower }}",
"key": "{{ exchange_key }}",
"secret": "{{ exchange_secret }}",
"password": "{{ exchange_key_password }}",
"ccxt_config": {
"enableRateLimit": true
"rateLimit": 200
},
"ccxt_async_config": {
"enableRateLimit": true,
"rateLimit": 200
},
"pair_whitelist": [
],
"pair_blacklist": [
]
}