Bitcoin Forum
May 08, 2024, 10:31:54 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?
1715164314
Hero Member
*
Offline Offline

Posts: 1715164314

View Profile Personal Message (Offline)

Ignore
1715164314
Reply with quote  #2

1715164314
Report to moderator
1715164314
Hero Member
*
Offline Offline

Posts: 1715164314

View Profile Personal Message (Offline)

Ignore
1715164314
Reply with quote  #2

1715164314
Report to moderator
The forum was founded in 2009 by Satoshi and Sirius. It replaced a SourceForge forum.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715164314
Hero Member
*
Offline Offline

Posts: 1715164314

View Profile Personal Message (Offline)

Ignore
1715164314
Reply with quote  #2

1715164314
Report to moderator
1715164314
Hero Member
*
Offline Offline

Posts: 1715164314

View Profile Personal Message (Offline)

Ignore
1715164314
Reply with quote  #2

1715164314
Report to moderator
1715164314
Hero Member
*
Offline Offline

Posts: 1715164314

View Profile Personal Message (Offline)

Ignore
1715164314
Reply with quote  #2

1715164314
Report to moderator
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!