mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-15 20:31:43 +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:
|
def market_is_future(self, market: dict[str, Any]) -> bool:
|
||||||
return (
|
return (
|
||||||
market.get(self._ft_has["ccxt_futures_name"], False) is True
|
market.get(self._ft_has["ccxt_futures_name"], False) is True
|
||||||
|
and market.get("type", False) == "swap"
|
||||||
and market.get("linear", False) is True
|
and market.get("linear", False) is True
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user