Skip to main content
{
  "event": "subscribe",
  "pair": [
    "XBT/EUR"
  ],
  "subscription": {
    "name": "spread"
  }
}
[
  0,
  [
    "5698.40000",
    "5700.00000",
    "1542057299.545897",
    "1.01234567",
    "0.98765432"
  ],
  "spread",
  "XBT/USD"
]
{
  "event": "unsubscribe",
  "pair": [
    "XBT/EUR"
  ],
  "subscription": {
    "name": "spread"
  }
}

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.comspread
Spread feed for a currency pair. Provides the best bid and ask prices along with their volumes.

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