Merge branch 'feat/short' into pr/samgermain/5780

This commit is contained in:
Matthias
2021-11-23 19:01:07 +01:00
19 changed files with 50 additions and 46 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