Skip to main content
{
  "event": "subscribe",
  "pair": [
    "XBT/USD",
    "XBT/EUR"
  ],
  "subscription": {
    "name": "book"
  }
}
[
  0,
  {
    "as": [
      [
        "5541.30000",
        "2.50700000",
        "1534614248.123678"
      ],
      [
        "5541.80000",
        "0.33000000",
        "1534614098.345543"
      ],
      [
        "5542.70000",
        "0.64700000",
        "1534614244.654432"
      ]
    ],
    "bs": [
      [
        "5541.20000",
        "1.52900000",
        "1534614248.765567"
      ],
      [
        "5539.90000",
        "0.30000000",
        "1534614241.769870"
      ],
      [
        "5539.50000",
        "5.00000000",
        "1534613831.243486"
      ]
    ]
  },
  "book-100",
  "XBT/USD"
]
[
  1234,
  {
    "a": [
      [
        "5541.30000",
        "2.50700000",
        "1534614248.456738"
      ],
      [
        "5542.50000",
        "0.40100000",
        "1534614248.456738"
      ]
    ],
    "c": "974942666"
  },
  "book-10",
  "XBT/USD"
]
{
  "event": "unsubscribe",
  "pair": [
    "XBT/EUR",
    "XBT/USD"
  ],
  "subscription": {
    "name": "book"
  }
}
WSSws.kraken.combook
Order book levels. On subscription, a snapshot is published at the specified depth, followed by level updates. Subscription depth options are 10, 25, 100, 500, or 1000 levels per side.

Subscribe

event
string
required
Value: subscribe
pair
string[]
required
Example: ["BTC/USD", "MATIC/GBP"]The currency pairs for this request.
subscription
object
reqid
string
Optional client originated request identifier sent as acknowledgment in the response.

Snapshot

Note, there is no checksum on the snapshot.
array

Update

array

Unsubscribe

event
string
required
Value: unsubscribe
pair
string[]
Example: ["BTC/USD", "MATIC/GBP"]
Condition: All channels which support pair subscriptions
The currency pairs to unsubscribe.
reqid
string
Optional client originated request identifier sent as acknowledgment in the response.
subscription
object