Bitcoin Forum

Bitcoin => Project Development => Topic started by: nesic1 on June 17, 2013, 02:26:22 AM



Title: btc live price update on html page, how?
Post by: nesic1 on June 17, 2013, 02:26:22 AM
First of all thanks for reading,
i was wondering is it possible to put live price update on my http site, price will be from mtgox and btc-e?


Cheers :)


Title: Re: btc live price update on html page, how?
Post by: nesic1 on June 17, 2013, 02:53:12 AM
Tnx for the fast response, i found another topic where member ask the same, it looks like i cant do this on free server for uploading site online


Title: Re: btc live price update on html page, how?
Post by: r3wt on June 17, 2013, 02:57:05 AM
Tnx for the fast response, i found another topic where member ask the same, it looks like i cant do this on free server for uploading site online

dude, just sign up for php webhosting.

http://3owl.com is a good place to start


Title: Re: btc live price update on html page, how?
Post by: Jaxkr on June 17, 2013, 05:09:13 AM
Yes, you will need to use php to make a call to mtgox and get the live price.
I think it can be done solely with Javascript. https://en.bitcoin.it/wiki/MtGox/API/Streaming#Connecting


Title: Re: btc live price update on html page, how?
Post by: gweedo on June 17, 2013, 05:14:53 AM
Yes, you will need to use php to make a call to mtgox and get the live price.
I think it can be done solely with Javascript. https://en.bitcoin.it/wiki/MtGox/API/Streaming#Connecting

First off that is web sockets, so you would probably get every ticker, and most the time it is the same price. It also keeps the client having an open socket to mt gox. Also web sockets are kinda iffy they break a lot. While the short answer you can do web sockets, you can't do javascript polling, cause I know for chrome that sends up a red flag of cross site scripting.


Title: Re: btc live price update on html page, how?
Post by: Jaxkr on June 17, 2013, 05:27:19 AM
Yes, you will need to use php to make a call to mtgox and get the live price.
I think it can be done solely with Javascript. https://en.bitcoin.it/wiki/MtGox/API/Streaming#Connecting

First off that is web sockets, so you would probably get every ticker, and most the time it is the same price. It also keeps the client having an open socket to mt gox. Also web sockets are kinda iffy they break a lot. While the short answer you can do web sockets, you can't do javascript polling, cause I know for chrome that sends up a red flag of cross site scripting.
This is true, however it's a solution that works on a standalone HTML page, which appears to be what thread starter wanted.


Title: Re: btc live price update on html page, how?
Post by: Loozik on June 17, 2013, 01:11:32 PM
First of all thanks for reading,
i was wondering is it possible to put live price update on my http site, price will be from mtgox and btc-e?


Cheers :)

Go there: https://www.tradingview.com/widget/ change GOOG into BTCUSD and then paste the code that is generated into your html website.

http://www5.picturepush.com/photo/a/13338753/img/13338753.png (http://picturepush.com/public/13338753)


Title: Re: btc live price update on html page, how?
Post by: nesic1 on June 17, 2013, 03:55:50 PM
nice, i rewiewed all posts and was helpful ,
Thanks
 :)