Skip to content

Latest commit

 

History

History
51 lines (48 loc) · 951 Bytes

public_channels.md

File metadata and controls

51 lines (48 loc) · 951 Bytes

Public Channel Subscription

Subscribe

You can specify an id to mark your request, and it will be your reference for response.

{
  "action": "sub",
  "subscriptions": [
    {"channel": "book", "market": "btctwd", "depth": 1},
    {"channel": "trade", "market": "btctwd"}
  ],
  "id": "client1"
}

Subscribe success response

{
  "e": "subscribed",
  "s": [
    {"channel": "book", "market": "btctwd", "depth": 1},
    {"channel": "trade", "market": "btctwd"}
  ],
  "i": "client1",
  "T": 123456789
}

Unsubscribe

{
  "action": "unsub",
  "subscription": [
    {"channel": "book", "market": "btctwd", "depth": 1},
    {"channel": "trade", "market": "btctwd" }
  ]
  "id": "client1"
}

Unsubscribe success response

{
  "e": "unsubscribed",
  "s": [
    {"channel": "book", "market": "btctwd", "depth": 1},
    {"channel": "trade", "market": "btctwd"}
  ],
  "i": "client1",
  "T": 123456789
}