Author

Topic: Mtgox streaming api full orderbook (Read 2443 times)

member
Activity: 162
Merit: 10
The World’s First Blockchain Core
August 18, 2012, 05:37:50 PM
#2
You need to get the data from https://mtgox.com/code/data/getDepth.php and then update from the websocket API as far as I know.
newbie
Activity: 29
Merit: 0
August 18, 2012, 03:00:40 PM
#1
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?
Jump to: