Skip to main content
{
  "event": "subscribe",
  "pair": [
    "XBT/EUR"
  ],
  "subscription": {
    "name": "trade"
  }
}
[
  0,
  [
    [
      "5541.20000",
      "0.15850568",
      "1534614057.321597",
      "s",
      "l",
      ""
    ],
    [
      "6060.00000",
      "0.02455000",
      "1534614057.324998",
      "b",
      "l",
      ""
    ]
  ],
  "trade",
  "XBT/USD"
]
{
  "event": "unsubscribe",
  "pair": [
    "XBT/EUR"
  ],
  "subscription": {
    "name": "trade"
  }
}

Documentation Index

Fetch the complete documentation index at: https://kraken-sandbox.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

WSSws.kraken.comtrade
Trade feed for a currency pair. On subscription, the last 50 trades are sent as a snapshot, followed by real-time trade updates.

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 / 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