Skip to main content
{
  "event": "subscribe",
  "pair": [
    "XBT/EUR"
  ],
  "subscription": {
    "interval": 5,
    "name": "ohlc"
  }
}
[
  42,
  [
    "1542057314.748456",
    "1542057360.435743",
    "3586.70000",
    "3586.70000",
    "3586.60000",
    "3586.60000",
    "3586.68894",
    "0.03373000",
    2
  ],
  "ohlc-5",
  "XBT/USD"
]
{
  "event": "unsubscribe",
  "pair": [
    "XBT/EUR"
  ],
  "subscription": {
    "name": "ohlc"
  }
}

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.comohlc
Open High Low Close (Candle) feed for a currency pair and interval period. When subscribed, a snapshot of the last valid candle (irrespective of the endtime) is sent, followed by updates to the running candle.

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