Bitcoin Forum
May 25, 2024, 01:37:36 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: btc live price update on html page, how?  (Read 958 times)
nesic1 (OP)
Hero Member
*****
Offline Offline

Activity: 636
Merit: 500


View Profile
June 17, 2013, 02:26:22 AM
 #1

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 Smiley
nesic1 (OP)
Hero Member
*****
Offline Offline

Activity: 636
Merit: 500


View Profile
June 17, 2013, 02:53:12 AM
 #2

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
r3wt
Hero Member
*****
Offline Offline

Activity: 686
Merit: 504


always the student, never the master.


View Profile
June 17, 2013, 02:57:05 AM
 #3

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

My negative trust rating is reflective of a personal vendetta by someone on default trust.
Jaxkr
Sr. Member
****
Offline Offline

Activity: 420
Merit: 250


View Profile
June 17, 2013, 05:09:13 AM
 #4

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
gweedo
Legendary
*
Offline Offline

Activity: 1498
Merit: 1000


View Profile
June 17, 2013, 05:14:53 AM
 #5

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.
Jaxkr
Sr. Member
****
Offline Offline

Activity: 420
Merit: 250


View Profile
June 17, 2013, 05:27:19 AM
 #6

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.
Loozik
Sr. Member
****
Offline Offline

Activity: 378
Merit: 250


Born to chew bubble gum and kick ass


View Profile
June 17, 2013, 01:11:32 PM
 #7

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 Smiley

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

nesic1 (OP)
Hero Member
*****
Offline Offline

Activity: 636
Merit: 500


View Profile
June 17, 2013, 03:55:50 PM
 #8

nice, i rewiewed all posts and was helpful ,
Thanks
 Smiley
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!