BitcoinIndex
Bitcoin Index was a real-time Bitcoin price index in US dollars, published by Coinut at bitcoinindex.io.[1]
It provided a highly available and robust Bitcoin realtime price index (updated every tens of milliseconds) with free REST and WebSocket APIs access. It was good for merchants or traders to use.
How to use
Get Bitcoin Real Time Price Index
To get the realtime index through their REST API, just try to visit the following URL. You can either open the following URL in your browser to check the result or try their sample code here: https://github.com/coinut/api/blob/master/bitcoin-index/nodejs/restApiCall.js, and for other REST APIs below, you can do the same to try out.
https://bitcoinindex.io/btcusd
The result will be like the following
{"status":["OK"],"index":3399.48797346,"timestamp":"2017-08-09T03:55:00.379Z"}
Convert BTC to USD
To convert BTC to USD, you can use their REST API like the following.
https://bitcoinindex.io/btcusd/convert/1.5/BTC
And a result like the following will be returned
{"status":["OK"],"index":3395.30917644,"timestamp":"2017-08-09T04:06:28.900Z","convertedAmount":5092.96,"convertedTo":"USD","result":"1.5 BTC = 5092.96 USD"}
Convert USD to BTC
Similarly, use the following to convert USD to BTC
https://bitcoinindex.io/btcusd/convert/100.32/USD
And a result like the following will be returned
{"status":["OK"],"index":3395.37064784,"timestamp":"2017-08-09T04:05:15.386Z","convertedAmount":0.02954611,"convertedTo":"BTC","result":"100.32 USD = 0.02954611 BTC"}
Get Realtime Streaming Data
Although you can visit their REST API to get Bitcoin price every few seconds, it would be much better to use WebSocket to achieve high frequency sub-second updates. Simply check out their WebSocket API here: https://github.com/coinut/api/blob/master/bitcoin-index/nodejs/index.js
High Availability
BitcoinIndex tries to achieve 99.999% uptime (five-nine availability) so that you can use the service nearly all the time. Their backend servers were located in different continents to ensure that the service will not be interrupted by regional network outage, and at the same time, they ensure strong consistency of the data between those replicated servers so no matter where you visit their service, you will get exactly the same result.
Service
The site offered a WebSocket API giving access to real-time index ticks without credentials, at a rate of approximately one tick per second, and a REST API for converting between US dollars and bitcoin at the current index value. Each IP address was limited to 1,500 REST requests per day, and users could request an access token by email for unlimited use of both APIs.[1][2]
In November 2019 the index page showed the last price from seven exchanges, Binance, Bitfinex, Bitstamp, Coinbase, Gemini, Huobi and OKEx, each with a weight of 0.14, together with the time since each price was updated.[2]
- ↑ 1.0 1.1 Bitcoin Index by Coinut, archived 25 November 2017.
- ↑ 2.0 2.1 Bitcoin Index by Coinut, archived 17 November 2019.