Fix code to get Bittrex US-restricted markets
Old code was no longer working
This commit is contained in:
parent
b84a1d0c92
commit
06e7f379b3
@ -77,8 +77,8 @@ You can get a list of restricted markets by using the following snippet:
|
|||||||
``` python
|
``` python
|
||||||
import ccxt
|
import ccxt
|
||||||
ct = ccxt.bittrex()
|
ct = ccxt.bittrex()
|
||||||
_ = ct.load_markets()
|
ct.load_markets()
|
||||||
res = [ f"{x['MarketCurrency']}/{x['BaseCurrency']}" for x in ct.publicGetMarkets()['result'] if x['IsRestricted']]
|
res = [f"{x['quoteCurrencySymbol']}/{x['baseCurrencySymbol']}" for x in ct.publicGetMarkets() if 'US' in x['prohibitedIn']]
|
||||||
print(res)
|
print(res)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user