Bitcoin Forum
November 08, 2024, 04:03:36 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: does MtGox's streaming API update more quickly than polling via HTTP?  (Read 2017 times)
eldentyrell (OP)
Donator
Legendary
*
Offline Offline

Activity: 980
Merit: 1004


felonious vagrancy, personified


View Profile WWW
January 29, 2012, 04:38:03 PM
 #1

MtGox's API documentation says that all data, including market depth, is cached every 10 seconds.  This means that you can't find out about changes to the market depth more often than that.

They also have a socket.io API documented here:

  https://en.bitcoin.it/wiki/MtGox/API#Streaming_API

Does the socket.io API only return results when the cache is updated (in which case there's really no advantage to using it unless you're writing code stuck in a browser), or does the socket.io API return order book changes more-or-less as they happen?

Thanks,

The printing press heralded the end of the Dark Ages and made the Enlightenment possible, but it took another three centuries before any country managed to put freedom of the press beyond the reach of legislators.  So it may take a while before cryptocurrencies are free of the AML-NSA-KYC surveillance plague.
Mt.Gox Support
VIP
Sr. Member
*
Offline Offline

Activity: 308
Merit: 250



View Profile
January 31, 2012, 01:59:32 AM
 #2

MtGox's API documentation says that all data, including market depth, is cached every 10 seconds.  This means that you can't find out about changes to the market depth more often than that.

They also have a socket.io API documented here:

  https://en.bitcoin.it/wiki/MtGox/API#Streaming_API

Does the socket.io API only return results when the cache is updated (in which case there's really no advantage to using it unless you're writing code stuck in a browser), or does the socket.io API return order book changes more-or-less as they happen?

Thanks,

Hi. Socket.io is realtime, but still under Beta explaining some of the problem you may have. However we are working on this and hope to offer a more "stable" solution.

Mt.Gox : The Leading International Bitcoin Exchange.
Mt.Gox Merchant Solutions : https://mtgox.com/merchant
eldentyrell (OP)
Donator
Legendary
*
Offline Offline

Activity: 980
Merit: 1004


felonious vagrancy, personified


View Profile WWW
February 02, 2012, 12:34:05 AM
 #3

Hi. Socket.io is realtime, but still under Beta explaining some of the problem you may have. However we are working on this and hope to offer a more "stable" solution.

Okay.  Could you tell us what "error code #1" means?  At least two of us are encountering it in this thread:

  https://bitcointalk.org/index.php?topic=14412.100

I understand that the socket.io API has been "beta" for three months now, but since it is the only real-time API (the HTTP API is on a 10-second delay) that puts some traders at a significant disadvantage relative to others.

The printing press heralded the end of the Dark Ages and made the Enlightenment possible, but it took another three centuries before any country managed to put freedom of the press beyond the reach of legislators.  So it may take a while before cryptocurrencies are free of the AML-NSA-KYC surveillance plague.
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!