From 06e7f379b39087134ed8c756eb28a700668b23a0 Mon Sep 17 00:00:00 2001 From: raphael Date: Fri, 23 Jul 2021 16:32:30 -0400 Subject: [PATCH] Fix code to get Bittrex US-restricted markets Old code was no longer working --- docs/exchanges.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/exchanges.md b/docs/exchanges.md index e54f97714..72f5e4ba4 100644 --- a/docs/exchanges.md +++ b/docs/exchanges.md @@ -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) ```