Skip to content

Commit

Permalink
Fix code to get Bittrex US-restricted markets
Browse files Browse the repository at this point in the history
Old code was no longer working
  • Loading branch information
raphant authored Jul 23, 2021
1 parent b84a1d0 commit 06e7f37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/exchanges.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ 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']]
ct.load_markets()
res = [f"{x['quoteCurrencySymbol']}/{x['baseCurrencySymbol']}" for x in ct.publicGetMarkets() if 'US' in x['prohibitedIn']]
print(res)
```

Expand Down

0 comments on commit 06e7f37

Please sign in to comment.