Bitcoin Forum
May 12, 2024, 06:21:38 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: MtGox Streaming API question: How to subscribe to non-USD depth channels?  (Read 1284 times)
mrball (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


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

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"=>"remark",
 "success"=>false,
 "debug"=>
  {"data"=>
    {"op"=>"subscribe", "channel"=>"0d1ecad8-e20f-459e-8bed-0bdcf927820f"},
   "op"=>"client",
   "uuid"=>"de021b06-dd9c-47b7-af25-13fd1b2a2e32"},
 "message"=>"Unknown command"}


Help please!
1715494898
Hero Member
*
Offline Offline

Posts: 1715494898

View Profile Personal Message (Offline)

Ignore
1715494898
Reply with quote  #2

1715494898
Report to moderator
1715494898
Hero Member
*
Offline Offline

Posts: 1715494898

View Profile Personal Message (Offline)

Ignore
1715494898
Reply with quote  #2

1715494898
Report to moderator
1715494898
Hero Member
*
Offline Offline

Posts: 1715494898

View Profile Personal Message (Offline)

Ignore
1715494898
Reply with quote  #2

1715494898
Report to moderator
Whoever mines the block which ends up containing your transaction will get its fee.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715494898
Hero Member
*
Offline Offline

Posts: 1715494898

View Profile Personal Message (Offline)

Ignore
1715494898
Reply with quote  #2

1715494898
Report to moderator
1455
Newbie
*
Offline Offline

Activity: 27
Merit: 0


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

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

Activity: 217
Merit: 100



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

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]
  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!