Bitcoin Forum
November 17, 2018, 12:15:39 PM *
News: Latest Bitcoin Core release: 0.17.0 [Torrent].
   Home   Help Search Login Register More  
Pages: [1]
Author Topic: MtGox Streaming API question: How to subscribe to non-USD depth channels?  (Read 1189 times)
Offline Offline

Activity: 2
Merit: 0

View Profile
April 23, 2012, 06:56:41 AM

Sending {:op => 'mtgox.subscribe', :type => 'depth'} gets me the USD depth channel, but I can't seem to get the other currencies?

Subscribing directly e.g. {"op"=>"subscribe", "channel"=>"0d1ecad8-e20f-459e-8bed-0bdcf927820f"} doesn't seem to work:

    {"op"=>"subscribe", "channel"=>"0d1ecad8-e20f-459e-8bed-0bdcf927820f"},
 "message"=>"Unknown command"}

Help please!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
Hero Member
Offline Offline

Posts: 1542456939

View Profile Personal Message (Offline)

Reply with quote  #2

Report to moderator
Offline Offline

Activity: 27
Merit: 0

View Profile
August 22, 2012, 07:45:08 AM

Did you find a solution to this problem?
Full Member
Offline Offline

Activity: 217
Merit: 100

View Profile WWW
April 07, 2013, 11:30:13 PM

the UUID strings for different currencies are different.

"0d1ecad8-e20f-459e-8bed-0bdcf927820f" is only for USD.

you subscribe to other currencies by specifying the currencies as comma delimited in the first GET request to the server.

then the incoming json needs parsing not for UUIDs but for "ticker" "depth" "trade" and also its currency type.

Pages: [1]
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!