0

I'd like to get hash-rate of BTC from OKcoin' API(GET /api/v1/charts/:type)

here is OKCoin's API web site.

How can I get information from here is OKCoin's API web site.

python gets = requests.get("http://block.okcoin.cn/api/v1/charts/hash-rate.do") gets.json() OUT {'error_code': 10010, 'result': False}

  • Your links seem to lead to another website than OKCoin's website. Is that intended? – Peter Apr 3 '18 at 8:28
1

I couldn't find a Hash-Rate endpoint in OKCoin's API anymore, but I found an endpoint from blockchain.info

To get the data programmatically, you can call: import requests response = requests.get("https://blockchain.info/q/hashrate") print(response.json())

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.