Bitcoin Forum
May 05, 2024, 04:37:18 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitstamp websocket API  (Read 873 times)
Flaff (OP)
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
May 10, 2013, 10:42:48 AM
 #1

I'm trying to make a live graph of the Bitstamp exchange in my browser, and am currently doing it with HTTP requests.

On this forum, I read that they have a (public?) websocket API.

Does anyone know if there's any more information to be found about their websocket?
I'm new to socket.io, but with a bit more of information I would be on the way again.
I know how to parse the information in JS, so connecting is my only problem.

If anyone manages to make me get connected with their websocket API, I'll make it open source! Wink

Thanks!
1714927038
Hero Member
*
Offline Offline

Posts: 1714927038

View Profile Personal Message (Offline)

Ignore
1714927038
Reply with quote  #2

1714927038
Report to moderator
1714927038
Hero Member
*
Offline Offline

Posts: 1714927038

View Profile Personal Message (Offline)

Ignore
1714927038
Reply with quote  #2

1714927038
Report to moderator
Each block is stacked on top of the previous one. Adding another block to the top makes all lower blocks more difficult to remove: there is more "weight" above each block. A transaction in a block 6 blocks deep (6 confirmations) will be very difficult to remove.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714927038
Hero Member
*
Offline Offline

Posts: 1714927038

View Profile Personal Message (Offline)

Ignore
1714927038
Reply with quote  #2

1714927038
Report to moderator
1714927038
Hero Member
*
Offline Offline

Posts: 1714927038

View Profile Personal Message (Offline)

Ignore
1714927038
Reply with quote  #2

1714927038
Report to moderator
1714927038
Hero Member
*
Offline Offline

Posts: 1714927038

View Profile Personal Message (Offline)

Ignore
1714927038
Reply with quote  #2

1714927038
Report to moderator
BitCheese
Newbie
*
Offline Offline

Activity: 12
Merit: 0


View Profile
May 10, 2013, 11:53:00 AM
 #2

You can repeat the function every tot seconds, like 5 seconds. I don't know about this socket API, but the biggest problem is the SSL protocol. You must buy it or nothing, the requests HTTP>to HTTPS won't work.
Flaff (OP)
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
May 10, 2013, 12:34:01 PM
 #3

You can repeat the function every tot seconds, like 5 seconds. I don't know about this socket API, but the biggest problem is the SSL protocol. You must buy it or nothing, the requests HTTP>to HTTPS won't work.
I already have a script working that way.

The advantage of using websocket is that I'd get a live stream of trades instead of comparing arrays to eachother.
That would make me use less processor resources while keeping the load on their servers minimal.
It's also easier to trigger functions sequentially instead of checking for timeouts on requests so previous data wouldn't get mixed up with more recent data.

I'll try to post it in the forum mentioned before after i get rid of my newb status..
BitCheese
Newbie
*
Offline Offline

Activity: 12
Merit: 0


View Profile
May 10, 2013, 12:48:30 PM
 #4

I found this https://bitcointalk.org/index.php?topic=38711.160
Flaff (OP)
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
May 10, 2013, 01:34:58 PM
 #5


That's the topic i've got the idea of websockets from..
read OP
BitCheese
Newbie
*
Offline Offline

Activity: 12
Merit: 0


View Profile
May 11, 2013, 11:08:09 AM
 #6

I think ask to Bitstamp support is the best thing.
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!