diff --git a/freqtrade/commands/build_config_commands.py b/freqtrade/commands/build_config_commands.py index ad38d2291..b0ca1a1bf 100644 --- a/freqtrade/commands/build_config_commands.py +++ b/freqtrade/commands/build_config_commands.py @@ -115,6 +115,7 @@ def ask_user_config() -> Dict[str, Any]: "ftx", "kucoin", "gateio", + "okex", Separator(), "other", ], @@ -142,7 +143,7 @@ def ask_user_config() -> Dict[str, Any]: "type": "password", "name": "exchange_key_password", "message": "Insert Exchange API Key password", - "when": lambda x: not x['dry_run'] and x['exchange_name'] == 'kucoin' + "when": lambda x: not x['dry_run'] and x['exchange_name'] in ('kucoin', 'okex') }, { "type": "confirm", diff --git a/freqtrade/templates/subtemplates/exchange_okex.j2 b/freqtrade/templates/subtemplates/exchange_okex.j2 new file mode 100644 index 000000000..b797dda41 --- /dev/null +++ b/freqtrade/templates/subtemplates/exchange_okex.j2 @@ -0,0 +1,12 @@ +"exchange": { + "name": "{{ exchange_name | lower }}", + "key": "{{ exchange_key }}", + "secret": "{{ exchange_secret }}", + "password": "{{ exchange_key_password }}", + "ccxt_config": {}, + "ccxt_async_config": {}, + "pair_whitelist": [ + ], + "pair_blacklist": [ + ] +}