Bitcoin Institute

need help with this php script

1 messages BitcoinTalk Andrew LeCody April 10, 2013 — April 10, 2013

Here’s a quick little script that will do just that. I tried to make it as simple and easy to understand as I could.

<?php

$json = file_get_contents('https://data.mtgox.com/api/1/generic/order/lag');
$result = json_decode($json,true);
echo sprintf("%01.2f minutes", $result['return']['lag_secs'] / 60);

?>