From ed91516f907ce024dc750d32e856e99a751d8bfa Mon Sep 17 00:00:00 2001 From: Sam Germain Date: Sat, 23 Oct 2021 13:48:18 -0600 Subject: [PATCH] Changed future to swap --- freqtrade/exchange/gateio.py | 2 +- tests/exchange/test_exchange.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/exchange/gateio.py b/freqtrade/exchange/gateio.py index 8a84a787d..83abd1266 100644 --- a/freqtrade/exchange/gateio.py +++ b/freqtrade/exchange/gateio.py @@ -47,7 +47,7 @@ class Gateio(Exchange): elif self.trading_mode == TradingMode.FUTURES: return { "options": { - "defaultType": "future" + "defaultType": "swap" } } else: diff --git a/tests/exchange/test_exchange.py b/tests/exchange/test_exchange.py index 75ebc27a3..8e3fdfe74 100644 --- a/tests/exchange/test_exchange.py +++ b/tests/exchange/test_exchange.py @@ -3262,7 +3262,7 @@ def test_validate_trading_mode_and_collateral( ("bittrex", "spot", {}), ("gateio", "spot", {}), ("gateio", "margin", {"options": {"defaultType": "margin"}}), - ("gateio", "futures", {"options": {"defaultType": "future"}}), + ("gateio", "futures", {"options": {"defaultType": "swap"}}), ]) def test__ccxt_config( default_conf,