Post
Topic
Board Development & Technical Discussion
Re: HELP! Need to automate live bitcoin exchange rate.
by
Quip
on 04/03/2011, 00:22:36 UTC
No idea about perl, but in PHP:
Code:
$goxPrice = json_decode(file_get_contents("http://mtgox.com/code/data/ticker.php"))->{'ticker'}->{'sell'};
You can use "buy", "sell", or "last" based on your needs.