From 70751b942cbe21c96e0cd09fa85e64f4c6949bc1 Mon Sep 17 00:00:00 2001 From: Sam Germain Date: Tue, 23 Nov 2021 01:50:23 -0600 Subject: [PATCH] market_is_future fix --- freqtrade/exchange/exchange.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py index 8f91e6a47..82b6eec77 100644 --- a/freqtrade/exchange/exchange.py +++ b/freqtrade/exchange/exchange.py @@ -338,7 +338,7 @@ class Exchange: return self.markets.get(pair, {}).get('base', '') def market_is_future(self, market: Dict[str, Any]) -> bool: - return market.get('swap', False) is True + return market.get(self._ft_has["ccxt_futures_name"], False) is True def market_is_spot(self, market: Dict[str, Any]) -> bool: return market.get('spot', False) is True