From de6519eb058b2b53b76592897758554ea8f856be Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 23 Mar 2022 06:56:48 +0100 Subject: [PATCH] Update config builder to include okx for futures --- config_examples/config_full.example.json | 2 +- freqtrade/commands/build_config_commands.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config_examples/config_full.example.json b/config_examples/config_full.example.json index ce16e021f..bbdafa805 100644 --- a/config_examples/config_full.example.json +++ b/config_examples/config_full.example.json @@ -21,7 +21,7 @@ "ignore_roi_if_buy_signal": false, "ignore_buying_expired_candle_after": 300, "trading_mode": "spot", - // "margin_mode": "isolated", + "margin_mode": "", "minimal_roi": { "40": 0.0, "30": 0.01, diff --git a/freqtrade/commands/build_config_commands.py b/freqtrade/commands/build_config_commands.py index 52137d048..b401f52c7 100644 --- a/freqtrade/commands/build_config_commands.py +++ b/freqtrade/commands/build_config_commands.py @@ -124,7 +124,7 @@ def ask_user_config() -> Dict[str, Any]: "message": "Do you want to trade Perpetual Swaps (perpetual futures)?", "default": False, "filter": lambda val: 'futures' if val else 'spot', - "when": lambda x: x["exchange_name"] in ['binance', 'gateio'], + "when": lambda x: x["exchange_name"] in ['binance', 'gateio', 'okx'], }, { "type": "autocomplete",