From f60d101076f29943650c92a7f476909894befe9c Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 3 Nov 2021 07:12:42 +0100 Subject: [PATCH] Some finetuning for OKEX --- freqtrade/commands/build_config_commands.py | 3 ++- freqtrade/templates/subtemplates/exchange_okex.j2 | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 freqtrade/templates/subtemplates/exchange_okex.j2 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": [ + ] +}