BTC Hash-Rate API

0

1

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}

Mikihisa Fukuta

Posted 2017-11-27T09:34:38.803

Reputation: 17

Your links seem to lead to another website than OKCoin's website. Is that intended?Peter 2018-04-03T08:28:56.427

Answers

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

Peter

Posted 2017-11-27T09:34:38.803

Reputation: 121