If you want to display the bitcoin price on your page, feel free to use our widget!

Here is the code if you would like to use it:

 

 

<center<center>

<strong><div id="price"></div></strong>

<strong><div id="btc_to_cny"></div></strong>

<strong><div id="btc_to_jpy"></div></strong>

</center>

<script type="text/javascript">

function getPrice() {

var xhttp = new XMLHttpRequest();

xhttp.onreadystatechange = function() {

if (this.readyState == 4 && this.status == 200) {

console.log(this.responseText);

document.getElementById("price").innerHTML = 'Current Bitcoin Price: $'+parseFloat(JSON.parse(this.responseText).output).toFixed(2);

document.getElementById("btc_to_cny").innerHTML = 'Current Bitcoin Chinese Yuan: '+parseFloat(JSON.parse(this.responseText).btc_to_cny).toFixed(2) + ' CNY';

document.getElementById("btc_to_jpy").innerHTML = 'Current Bitcoin Japanese Yen: '+parseFloat(JSON.parse(this.responseText).btc_to_jpy).toFixed(2) + ' JPY';

}

};

xhttp.open("GET", "https://mongoosecd.com/get_bitmax_bids", true);

xhttp.send();

}

getPrice();

</script>