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}

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

1 Answer 1

2

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 and acknowledge you have read our privacy policy.

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