mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-14 11:51:19 +00:00
feat: improve is_futures market check
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user