Post
Topic
Board Project Development
Re: PHP code for current Bitcoin price on your website
by
vv01f
on 26/08/2014, 07:39:58 UTC
What the heck?
tl;dr: it works if you do it right, keep trying.

0. take advantage of documentation: http://bitcoincharts.com/about/markets-api/
1. there is no version 't'
2. the answer if you request version 't' is 404
3. if you read curl manual you'd know that it takes its time if you don't limit it
4. your browser might give more pleasant information to the server about himself than curl does, although this is no problem at bitcoincharts.com - so watch what you are sending there

btw: you should never rely on a single source only, try to fetch more

have fun Wink