Use prohibitedIn instead of isRestricted

This commit is contained in:
Matthias
2021-07-29 06:56:37 +02:00
parent 06e7f379b3
commit cf4d1875dd
3 changed files with 5 additions and 4 deletions

View File

@@ -77,8 +77,9 @@ You can get a list of restricted markets by using the following snippet:
``` python
import ccxt
ct = ccxt.bittrex()
ct.load_markets()
res = [f"{x['quoteCurrencySymbol']}/{x['baseCurrencySymbol']}" for x in ct.publicGetMarkets() if 'US' in x['prohibitedIn']]
lm = ct.load_markets()
res = [p for p, x in lm.items() if 'US' in x['info']['prohibitedIn']]
print(res)
```