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,