feat: improve is_futures market check

This commit is contained in:
Matthias
2024-11-25 18:25:45 +01:00
parent fdc77bfd5b
commit af8d2490e2

View File

@@ -526,6 +526,7 @@ class Exchange:
def market_is_future(self, market: dict[str, Any]) -> bool:
return (
market.get(self._ft_has["ccxt_futures_name"], False) is True
and market.get("type", False) == "swap"
and market.get("linear", False) is True
)