// Prepare places for the rates to go in.
// This example looks for elements with the id's:
// 'ticker-high','ticker-low','ticker-avg','ticker-volume','buy','sell'
<script type="text/javascript">
$(function() {
$(document).ready(function(){
$.getJSON('https://data.mtgox.com/api/1/BTCUSD/ticker', function(data) {
$('#ticker-high').html(data['return'].high.display_short);
$('#ticker-low').html(data['return'].low.display_short);
$('#ticker-avg').html(data['return'].avg.display_short);
$('#ticker-volume').html(data['return'].vol.display_short);
$('#ticker-buy').html(data['return'].buy.display_short);
$('#ticker-sell').html(data['return'].sell.display_short);
});
});
})
</script>