Bitcoin Forum
May 08, 2024, 08:27:39 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: making sense of mtgox depth apis  (Read 1720 times)
osmosis (OP)
Sr. Member
****
Offline Offline

Activity: 300
Merit: 250



View Profile
January 26, 2012, 09:59:24 PM
 #1

Okay, so this comes in through the streaming API:
Depth, feed=streaming| price 5.6 | price_int 560000 | ask | total_vol_int 2972500000 | vol 9.725 | vol_int 972500000 | stamp=1327613046260877 |

Shortly after, I run the http depth api and get this..
{price: 5.6, amount: 29.725, price_int: "560000", amount_int: "2972500000", stamp: "1327611635210081"},

So the depth api is returning the exact same volume for 5.6, but displaying a time stamp about 23 minutes old. Why?

This is just one example, i can pull hundreds of these our my script that is detecting them.

I am also detecting between calls to the depth http api where the timestamp remains the same for a given price_int level, but the amount_int is changing.
How can the amount_int change without the timestamp being updated?
1715156859
Hero Member
*
Offline Offline

Posts: 1715156859

View Profile Personal Message (Offline)

Ignore
1715156859
Reply with quote  #2

1715156859
Report to moderator
1715156859
Hero Member
*
Offline Offline

Posts: 1715156859

View Profile Personal Message (Offline)

Ignore
1715156859
Reply with quote  #2

1715156859
Report to moderator
1715156859
Hero Member
*
Offline Offline

Posts: 1715156859

View Profile Personal Message (Offline)

Ignore
1715156859
Reply with quote  #2

1715156859
Report to moderator
"If you don't want people to know you're a scumbag then don't be a scumbag." -- margaritahuyan
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715156859
Hero Member
*
Offline Offline

Posts: 1715156859

View Profile Personal Message (Offline)

Ignore
1715156859
Reply with quote  #2

1715156859
Report to moderator
1715156859
Hero Member
*
Offline Offline

Posts: 1715156859

View Profile Personal Message (Offline)

Ignore
1715156859
Reply with quote  #2

1715156859
Report to moderator
1715156859
Hero Member
*
Offline Offline

Posts: 1715156859

View Profile Personal Message (Offline)

Ignore
1715156859
Reply with quote  #2

1715156859
Report to moderator
osmosis (OP)
Sr. Member
****
Offline Offline

Activity: 300
Merit: 250



View Profile
January 26, 2012, 10:16:59 PM
 #2

okay, so the timestamp on the http api is for the most recent order remaining on the book at that price. That explains the discrepancy.
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!