Merge pull request #5312 from raph92/patch-3

Fix code to get Bittrex US-restricted markets
This commit is contained in:
Matthias
2021-07-29 07:13:42 +02:00
committed by GitHub
3 changed files with 5 additions and 4 deletions

View File

@@ -387,7 +387,7 @@ class Exchange:
# its contents depend on the exchange.
# It can also be a string or similar ... so we need to verify that first.
elif (isinstance(self.markets[pair].get('info', None), dict)
and self.markets[pair].get('info', {}).get('IsRestricted', False)):
and self.markets[pair].get('info', {}).get('prohibitedIn', False)):
# Warn users about restricted pairs in whitelist.
# We cannot determine reliably if Users are affected.
logger.warning(f"Pair {pair} is restricted for some users on this exchange."