Pages:
Author

Topic: Bitfinex's streaming (websocket) api - page 2. (Read 5463 times)

newbie
Activity: 25
Merit: 0
March 05, 2015, 08:19:14 AM
#1
Been messing around with the bitfinex streaming api on ws.bitfinex.com:3333 with a view to getting a realtime order book.

The server is obviously websocket-rails, and the bitfinex website itself provides a fairly complete client (in its application-XXX.js file).  When I subscribe to "ticker", I get "ticker.new" messages like this:

Code:
{"pair":"BTCUSD","buying":"270.15","selling":"270.36","last":"270.38","daily_change":"-9.82"}

These are great of course, but not sufficient to build up an order book.

There's also a "trade.btcusd" (and presumably other pairs) which gives:

Code:
{"pair":"BTCUSD","price":"270.97","amount":"0.27","side":0,"timestamp":"1425505661.56676188"}

for every trade (presumably).

I've tried all kinds of variations of order, book, orderbook, books (with various pairs added to the end), but I can't find what to subscribe to for a realtime order book.

(of course I'm only guessing that such a thing is there)
Pages:
Jump to: