Bitcoin Forum
May 11, 2024, 08:13:42 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: source data for mtgox depth  (Read 1526 times)
MusX (OP)
Full Member
***
Offline Offline

Activity: 175
Merit: 100


View Profile
May 04, 2013, 10:09:22 AM
Last edit: May 04, 2013, 10:19:43 AM by MusX
 #1

Hello,

mtgox already provide api for truncated market depth: https://en.bitcoin.it/wiki/MtGox/API/HTTP/v0#0.2FgetDepth.php
and also for full market depth: https://en.bitcoin.it/wiki/MtGox/API/HTTP/v1#Full_Depth
Full market depth is limited in use in time, also it is not very practical to process so distant orders data every time.

Looking at the recent trading volumes it is clear that amount of orders returned by truncated market depth api is very small. Currently it returns around 6000 btc. Comparing to daily volume of all btc traded on that market it is definitely not enough.
Is there any way to get market depth 2-5 times depper than current truncated? and do not download full depth...

As i read in unofficial api doc here: https://bitbucket.org/nitrous/mtgox-api/overview#markdown-header-moneydepthfetch
Quote
There is probably an argument that can be used to limit the amount of data returned, however it is currently unknown
Anybody knows anything about it? is it possible to use this argument for full depth to download only small part of full depth?
can filter_min_price and filter_max_price be an arguments for this api call?

Thx in advance

1715458422
Hero Member
*
Offline Offline

Posts: 1715458422

View Profile Personal Message (Offline)

Ignore
1715458422
Reply with quote  #2

1715458422
Report to moderator
The Bitcoin network protocol was designed to be extremely flexible. It can be used to create timed transactions, escrow transactions, multi-signature transactions, etc. The current features of the client only hint at what will be possible in the future.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715458422
Hero Member
*
Offline Offline

Posts: 1715458422

View Profile Personal Message (Offline)

Ignore
1715458422
Reply with quote  #2

1715458422
Report to moderator
MusX (OP)
Full Member
***
Offline Offline

Activity: 175
Merit: 100


View Profile
June 16, 2013, 10:39:05 AM
 #2

anybody?

dexX7
Legendary
*
Offline Offline

Activity: 1106
Merit: 1024



View Profile WWW
June 16, 2013, 03:15:55 PM
 #3

Sorry, I'm not sure, if I got your question right, but you want to maintain a live orderbook without rate limitations? You don't need to download the whole book every few seconds.

I think this is the way to go:

 - download full order book
 - subscribe to order book updates via their streaming socket

Because you only receive updates, traffic is quite low, but as rate limit allows, you can and should do periodical synchronization by downloading the full book.

I'm not sure about the reasons for not downloading the full book, so I can only guess that it's about rate limit and data transfer.

Does that satisfy your needs?

MusX (OP)
Full Member
***
Offline Offline

Activity: 175
Merit: 100


View Profile
July 04, 2013, 08:54:45 PM
 #4

Thank you dexX7 for pointing me streaming socket.
Didn't knew about that order book can be grabbed from there.
I haven't used streaming socket at all, so far only url api calls.
It is definitely the way to go in such case.
As of now I will not try it, have some other things to do now, and handling streaming sockets in R environment might take some time.
Thanks for the answer!

dexX7
Legendary
*
Offline Offline

Activity: 1106
Merit: 1024



View Profile WWW
July 05, 2013, 12:38:57 AM
 #5

You're welcome. What programming language do you want to use? Maybe I have some code fragments for you to start. Wink

bitkapp
Hero Member
*****
Offline Offline

Activity: 517
Merit: 500


aka alaniz


View Profile
July 10, 2013, 03:34:19 PM
 #6

I have a similar problem. I want to create a very simple app that displays the 20 most recent bids and asks im trying to fiddle about with the websocket API mtgox has but its a hassle as i know very little websocket programming. I was also wondering whether theres some neat way of only requesting the x most recent bids and asks or something of the sort. I am using python for this project. Thanks in advance for any help!

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!