question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

unable to get exchange bittrex orderbook

See original GitHub issue

my 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:closed
  • Created 6 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
kroitorcommented, Aug 20, 2017

Ok, can you please try adding one of the following two CORS proxies:

# before loading markets
exchange.proxy = 'https://crossorigin.me/' # last slash critical
# or
exchange.proxy = 'https://cors-anywhere.herokuapp.com/'

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.

1reaction
kroitorcommented, Aug 20, 2017

@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 )

Read more comments on GitHub >

github_iconTop Results From Across the Web

Questions about trading on Bittrex
Quick orders are an offer to immediately Buy or Sell coins at a rate already posted to the order book. The orders on...
Read more >
Order Types | Cryptocurrency Exchange - Bittrex
On Bittrex.com, we do not reserve balance for conditional orders before their condition has triggered. The conditional order types we support are:
Read more >
Bittrex Developers
GET /addresses/{currencySymbol}. Retrieve the status of the deposit address for a particular currency for which one has been requested or provisioned.
Read more >
Bittrex API - An Introductory Guide - AlgoTrading101 Blog
How to get Order Book data with Bittrex API? ... Bittrex is an online cryptocurrency exchange platform that allows its users to trade...
Read more >
How to Use Bittrex Exchange to Trade Crypto - YouTube
In this Bittrex Global Exchange Tutorial, I take you through a beginner's guide to the ... Your browser can't play this video.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found