Coin Halving and Forking

symbol_halving_forking


Results
Get Historical Forking and Halving Information

Specification
Endpoint
symbol_halving_forking?symbol={symbol}

Support
Current and Historical values

API Call Counts
100 per API call.

API Plan
gold




Output Descriptions
symbol

The common/local symbol/ticker of the symbol

Type: string



Sample Output
{
  "status": "ok",
  "info": {
    "symbol": {
      "symbol": "BTCUSD",
      "symbol_name": "Bitcoin USD",
      "exchange": null,
      "symbol_pair": null
    }
  },
  "total_records": 10,
  "page_size": 10,
  "current_page": 1,
  "total_pages": 1,
  "results": [
    {
      "event_type": "HALVING",
      "block_height": 1680000,
      "block_reward": "0.1953125 BTC",
      "mined_percentage": "99.80%",
      "price_on_day": null,
      "event_date": "30/12/2040",
      "count_down": "6,633 days",
      "time_to_mine": 600
    },
    {
      "event_type": "HALVING",
      "block_height": 1470000,
      "block_reward": "0.390625 BTC",
      "mined_percentage": "99.61%",
      "price_on_day": null,
      "event_date": "30/12/2036",
      "count_down": "5,172 days",
      "time_to_mine": 600
    },
    {
      "event_type": "HALVING",
      "block_height": 1260000,
      "block_reward": "0.78125 BTC",
      "mined_percentage": "99.22%",
      "price_on_day": null,
      "event_date": "30/13/2032",
      "count_down": "3,711 days",
      "time_to_mine": 600
    },
    {
      "event_type": "HALVING",
      "block_height": 1050000,
      "block_reward": "1.5625 BTC",
      "mined_percentage": "98.44%",
      "price_on_day": null,
      "event_date": "30/12/2028 ",
      "count_down": "2,250 days",
      "time_to_mine": 600
    },
    {
      "event_type": "HALVING",
      "block_height": 840000,
      "block_reward": "3.125 BTC",
      "mined_percentage": "96.8%",
      "price_on_day": null,
      "event_date": "2/27/2024 11:13:00",
      "count_down": "482 days",
      "time_to_mine": 600
    },
    {
      "event_type": "FOKING",
      "block_height": 709632,
      "block_reward": null,
      "mined_percentage": null,
      "price_on_day": null,
      "event_date": "5/11/2021 12:00:00",
      "count_down": null,
      "time_to_mine": 600
    },
    {
      "event_type": "HALVING",
      "block_height": 630000,
      "block_reward": "6.25 BTC",
      "mined_percentage": "93.75%",
      "price_on_day": 8821,
      "event_date": "5/11/2020 19:43:00",
      "count_down": null,
      "time_to_mine": 600
    },
    {
      "event_type": "HALVING",
      "block_height": 420000,
      "block_reward": "12.25 BTC",
      "mined_percentage": "87.50%",
      "price_on_day": 650,
      "event_date": "7/9/2016",
      "count_down": null,
      "time_to_mine": 600
    },
    {
      "event_type": "HALVING",
      "block_height": 210000,
      "block_reward": "25 BTC",
      "mined_percentage": "75%",
      "price_on_day": 12.35,
      "event_date": "11/28/2012",
      "count_down": null,
      "time_to_mine": 600
    },
    {
      "event_type": "HALVING",
      "block_height": 0,
      "block_reward": "50 BTC",
      "mined_percentage": "50%",
      "price_on_day": null,
      "event_date": "1/3/2009",
      "count_down": null,
      "time_to_mine": 600
    }
  ]
}

REST
GET https://www.cryptoquote.io/analytics/v1/?api=symbol_halving_forking&symbol=BTCUSD&key=your_api_key
Python
import requests 
r = requests.get("https://www.cryptoquote.io/analytics/v1/?api=symbol_halving_forking&symbol=BTCUSD&key=your_api_key")
data = r.json()
print(data)
Node.js
var http = require('http');
var buffer = '';
var options = {
	host: 'https://www.cryptoquote.io/analytics/v1/?api=symbol_halving_forking&symbol=BTCUSD&key=your_api_key',
	port: 80,
	path: 'https://www.cryptoquote.io/analytics/v1/?api=symbol_halving_forking&symbol=BTCUSD&key=your_api_key',
	headers: headers
};
callback = function(response) {
	response.on('data', function (chunk) {
	buffer += chunk;
});
response.on('end', function () {
	// your code here if you want to use the results !
});
}

var req = http.get(options, callback).end();
C#
using (var client = new HttpClient())
{
	client.BaseAddress = new Uri("{$api_host}");
	client.DefaultRequestHeaders.Clear();
	//ADD Acept Header to tell the server what data type you want
	client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
	//SET Parameters
	HttpResponseMessage response = await client.GetAsync("https://www.cryptoquote.io/analytics/v1/?api=symbol_halving_forking&symbol=BTCUSD&key=your_api_key");
	if (response.IsSuccessStatusCode)
	{
		//Your custom response parser code
	}
}
Java
String uri = "https://www.cryptoquote.io/analytics/v1/?api=symbol_halving_forking&symbol=BTCUSD&key=your_api_key";
URL url = new URL(uri);
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
	connection.setRequestMethod("GET");
	connection.setRequestProperty("Accept", "application/json");
InputStream xml = connection.getInputStream();
R
1 - Install package
install.packages("RCurl")
install.packages("jsonlite")
2 - Request the data:
library('RCurl')
require('jsonlite')
json <- getURL(URLencode('https://www.cryptoquote.io/analytics/v1/?api=symbol_halving_forking&symbol=BTCUSD&key=your_api_key'))
obj <- fromJSON(json)
PHP
$url = 'https://www.cryptoquote.io/analytics/v1/?api=symbol_halving_forking&symbol=BTCUSD&key=your_api_key';
$handle = curl_init(); 
	curl_setopt($handle, CURLOPT_URL, $url);
	curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);

	$data = curl_exec($handle);
curl_close($handle);
//parse your data as per your needs....
Javascript
var url = 'https://www.cryptoquote.io/analytics/v1/?api=symbol_halving_forking&symbol=BTCUSD&key=your_api_key';
$.ajax({
		url: url,
		type: "GET",
		dataType: 'json'
}).done(function (data) {
	console.log(data);
});