From 7f0cedc769e8395e315f7e8208f40c8dbf582fb1 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 13 Feb 2022 12:54:49 +0100 Subject: [PATCH] Use "is_future" to check for futures markets --- freqtrade/exchange/okx.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/exchange/okx.py b/freqtrade/exchange/okx.py index b11627bb1..03d66fb3d 100644 --- a/freqtrade/exchange/okx.py +++ b/freqtrade/exchange/okx.py @@ -70,8 +70,8 @@ class Okx(Exchange): symbols = [] for symbol, market in markets.items(): - if (market["swap"] and market["linear"]): - symbols.append(market["symbol"]) + if self.market_is_future(market): + symbols.append(symbol) tiers = {} for symbol in symbols: