Add --trading-mode parameter

This commit is contained in:
Matthias
2021-11-07 10:42:39 +01:00
parent 11b77cf94c
commit 6cc3f65a83
4 changed files with 10 additions and 3 deletions

View File

@@ -329,7 +329,7 @@ class Exchange:
return self.markets.get(pair, {}).get('base', '')
def market_is_future(self, market: Dict[str, Any]) -> bool:
return market.get('future', False) is True
return market.get('future', False) is True or market.get('futures') is True
def market_is_spot(self, market: Dict[str, Any]) -> bool:
return market.get('spot', False) is True