Hello everyone, im trying to write a java terminal program that display the full MtGox order book, and also updates it in realtime.
Now as I understand from the api declaration (
https://en.bitcoin.it/wiki/MtGox/API/Streaming), I need to subscribe to the depth messages, and use it to update the order book.
But to do that I first need to get the bids and asks already placed. Is it possible to get a list of those from the websocket api, or do I use the http api for that?
I have been trying to understand how Clark does it on bitcoin.clarkmoody.com, but the source is packed to much. I have been looking at the request my browser makes, and I cant see how it gets the initial orderbook.
So the question is, how do I get the full ask / bid list and keep it updated with the websocket api?