Hello I am looking to display daily the bitcoin price on a site and automaticaly adjust it to have +5% on the price so if te price is 500 Euro to display 525 Euro. Is there any script to do this? Thank you
Just find the variable of the price where priced is displayed and Add 25 value to that variable for example $price+25
First you need to create a api from one your Bitcoin Market places... if you have them you can calculate this.
At the moment i have this : <?php $price = parsePrice(file_get_contents('http://www.yoururl.com')) * 1.05; ?> PHP: from user kohashi.... But i don't know any link to add there and will work ....
But here a Sample: $data = file_get_contents("https://www.bitstamp.net/api/ticker"); $data = json_decode($data, true); $spot_last = $data['last']; $fee = bcsub($data['last'],100,2); $price = bcadd($data['last'],$fee,2);