Want a Ticker for your favorite Alt Coin ?
it's using the bter.com API
EXP:
http://butbut.allalla.com/ftt/assets/img/bter.phpFor your prefered Coin just change the Coin Letters in the bter URL
http://bter.com/api/1/ticker/red_ltchttp://bter.com/api/1/ticker/ltc_btchttp://bter.com/api#ticker<?php
$c = curl_init();
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($c, CURLOPT_HTTPHEADER, array('Accept: application/json', 'Content-Type: application/json'));
curl_setopt($c, CURLOPT_URL, 'http://bter.com/api/1/ticker/red_ltc');
$avg = curl_exec($c);
curl_close($c);
$obj = json_decode($avg);
?>
RED/LTC
<br/>avg <?php echo print_r($obj->{'avg'}."\n", true);?></a>
<br/>last <?php echo print_r($obj->{'last'}."\n", true);?></a>
<br/>buy <?php echo print_r($obj->{'sell'}."\n", true);?></a>
<br/>sell <?php echo print_r($obj->{'buy'}."\n", true);?></a>
The Code and JSON makes absolutely no sense to me but it's working.
If someone knows how to do this with Cryptsy, please let me know, it would be a lot better,
and you are invited to post better Versions.