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

@@ -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['MarketCurrency']}/{x['BaseCurrency']}" for x in ct.publicGetMarkets()['result'] if x['IsRestricted']]
lm = ct.load_markets()
res = [p for p, x in lm.items() if 'US' in x['info']['prohibitedIn']]
print(res)
```