market_is_future fix

This commit is contained in:
Sam Germain 2021-11-23 01:50:23 -06:00
parent ce0593c0e1
commit 70751b942c
1 changed files with 1 additions and 1 deletions

View File

@ -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