Bitcoin Forum
May 28, 2024, 11:15:16 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Mtgox streaming api full orderbook  (Read 2432 times)
Marco Polo (OP)
Newbie
*
Offline Offline

Activity: 29
Merit: 0



View Profile
August 18, 2012, 08: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?
LuaKT
Member
**
Offline Offline

Activity: 162
Merit: 10


The World’s First Blockchain Core


View Profile
August 18, 2012, 10: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.

▄▄▄▄▄▄▄▄▄▄▄ ▄ ■        SKYNET        ■ ▄ ▄▄▄▄▄▄▄▄▄▄▄
▐▬▬▬▬▬▬▬▬▬▬     PRIVATE SALE is LIVE     ▬▬▬▬▬▬▬▬▬▬▌
Whitepaper   Bounty   Bitcointalk  ■  Facebook   Twitter   Telegram
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!