Bitcoin Forum
December 12, 2017, 04:21:34 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Bitstamp websocket API  (Read 787 times)
Flaff
Newbie
*
Offline Offline

Activity: 13


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

Posts: 1513095694

View Profile Personal Message (Offline)

Ignore
1513095694
Reply with quote  #2

1513095694
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
BitCheese
Newbie
*
Offline Offline

Activity: 12


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
Newbie
*
Offline Offline

Activity: 13


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


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

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

Activity: 13


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


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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!