Title: Grab the price of bitcoin? Post by: joeyjoe on September 22, 2011, 03:41:54 PM Wheres a good place to return the current price of bitcoins. Im preferbly after a PHP script that just returns the price, or some TCP connection or somthing?
the reason is so i can use it to display the price on my arudino Title: Re: Grab the price of bitcoin? Post by: error on September 22, 2011, 11:44:25 PM You'll need to do your own error checking; this isn't particularly robust.
Code: function mtgox() Title: Re: Grab the price of bitcoin? Post by: ne1 on September 23, 2011, 12:29:31 AM That sound cool, is love to have an arguing mtgox ticker. I've got an arduino, Ethernet shield and an lcd. Love to see where you get with this.
Title: Re: Grab the price of bitcoin? Post by: pent on September 23, 2011, 01:14:34 PM You'll need to do your own error checking; this isn't particularly robust. not ideal. I'll advice to use volume-based rate. In this script it calculates average volume-based rate for last 3 hours.Code: function mtgox() Code: <? Also, mtgox has some 'vwap' key in ticker array. I don't know what exact meaning it has, but it is near to the value my script provides. Maybe for different time period. Title: Re: Grab the price of bitcoin? Post by: Cryptoman on September 23, 2011, 01:18:10 PM OP, how are you able to run a PHP script on an Arduino?
Title: Re: Grab the price of bitcoin? Post by: joeyjoe on September 27, 2011, 11:56:40 AM OP, how are you able to run a PHP script on an Arduino? Run a PHP script on a webserver, and grab the webserver text to the arduino then display on LCD. I have managed to connect the arduino directly to the ticker, but have to work out a way to parse the output more easily, |