unable to get exchange bittrex orderbook
See original GitHub issuemy code snip:
id=‘bittrex’ exchange = getattr(ccxt, id)() exchange.userAgent = { “User-Agent”: “Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0”,} exchange.verbose = True exchange.loadMarkets() market=‘ETH/BTC’ try: ticker = exchange.fetch_ticker(market) order_book = exchange.fetch_order_book(market) except Exception as e: dump(yellow(type(e).name), e.args)
result:
https://bittrex.com/api/v1.1/public/getmarkets GET https://bittrex.com/api/v1.1/public/getmarkets Request: {‘User-Agent’: ‘Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0’, ‘Accept-Encoding’: ‘gzip, deflate’} None
2017-08-20 23:04:34 INFO ExchangeNotAvailable ('bittrex GET https://bittrex.com/api/v1.1/public/getmarkets <urlopen error _ssl.c:733: The handshake operation timed out>',)
versions:
ccxt–>1.4.29 python–> Python 3.6.1 :: Continuum Analytics, Inc.
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (11 by maintainers)
Top GitHub Comments
Ok, can you please try adding one of the following two CORS proxies:
Please try any of the two, or both and report if that works. If it does, then it will mean that Bittrex is shaping traffic incoming from China.
@HaoH though, if you have a server, it’s better to run your main script there, than to run a proxy for forwarding your requests from another place. If you have a server, use it for your main application, not for a proxy-purpose )