Best way to get complete orderbook with websocket

Technical questions about the Ripple API, the protocol, etc.

Best way to get complete orderbook with websocket

Postby heartbit_io » Sun Jul 23, 2017 8:24 pm

I could use this:
https://ripple.com/build/rippled-apis/# ... ok-streams

But it's quiet difficult because you have to carefully parse it + you have to listen to a lot of orderbook in order to handle autobridged orders.

I have tried the ripple-lib orderbook extensions but it seems not stable and not maintained anymore (for example I got this issue among other crash https://github.com/ripple/ripple-lib-ex ... /issues/27)

What could I use to get the orderbooks pushed through websocket ? Is there other options ?

Thanks a lot for your help.

ps: is https://ripple.com/build/rippleapi/#getorderbook gathers also autobridged orders ?
ps2: is https://ripple.com/build/rippled-apis/# ... ok-streams catching also transaction that alter the orderbook with autrobriding ?
heartbit_io
 
Posts: 216
Joined: Tue Mar 24, 2015 10:48 am

Re: Best way to get complete orderbook with websocket

Postby tulo » Mon Sep 25, 2017 8:19 am

If you want the autobridged orderbook it's a mess.
As you said the ripple-lib-extension is bugged, not maintained and returns a book in a format different from RippleAPI.
You can't build it by using rippleAPI, because the books returned miss some important info to build the autobridged book (https://github.com/ripple/ripple-lib/issues/799).
I think the only way is to get the stream and parse all the data by yourself, or use an old ripple-lib version where the autobdridged book was included (but it is un-maintained and probably with bugs).
getOrderbook doesn't return the autobridged book (https://github.com/ripple/ripple-lib/issues/782).
With "Order Book Streams" you get all the transactions, then you have to parse them by yourself.
tulo
 
Posts: 829
Joined: Mon Jan 20, 2014 2:38 pm


Return to Developers

Who is online

Users browsing this forum: No registered users and 10 guests
cron