Author

Topic: MtGox Streaming API question: How to subscribe to non-USD depth channels? (Read 1302 times)

full member
Activity: 217
Merit: 100
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.

newbie
Activity: 27
Merit: 0
Did you find a solution to this problem?
newbie
Activity: 2
Merit: 0
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!
Jump to: