Kraken · JSON Structure

Kraken Ohlc Envelope Structure

OHLCEnvelope schema from Kraken Spot WebSocket API v2

Type: object Properties: 3
CryptocurrencyExchangeTradingMarket DataSpot TradingFuturesDerivativesStakingEarnNFTWebSocketFIXCustodyOTCPrime BrokerageEmbedOAuthPublic APIs

OHLCEnvelope is a JSON Structure definition published by Kraken, describing 3 properties. It conforms to the https://json-structure.org/json-structure/v0/schema meta-schema.

Properties

channel type data

Meta-schema: https://json-structure.org/json-structure/v0/schema

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/json-structure/v0/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/kraken/refs/heads/main/json-structure/kraken-ohlc-envelope-structure.json",
  "name": "OHLCEnvelope",
  "type": "object",
  "description": "OHLCEnvelope schema from Kraken Spot WebSocket API v2",
  "properties": {
    "channel": {
      "type": "string",
      "enum": [
        "ohlc"
      ],
      "examples": [
        "ohlc"
      ]
    },
    "type": {
      "type": "string",
      "enum": [
        "snapshot",
        "update"
      ],
      "examples": [
        "snapshot"
      ]
    },
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "name": "Inline",
        "properties": {
          "symbol": {
            "type": "string",
            "examples": [
              "PI_XBTUSD"
            ]
          },
          "open": {
            "type": "double",
            "examples": [
              0.01
            ]
          },
          "high": {
            "type": "double",
            "examples": [
              0.01
            ]
          },
          "low": {
            "type": "double",
            "examples": [
              0.01
            ]
          },
          "close": {
            "type": "double",
            "examples": [
              0.01
            ]
          },
          "vwap": {
            "type": "double",
            "examples": [
              0.01
            ]
          },
          "trades": {
            "type": "int64",
            "description": "Number of trades in the interval.",
            "examples": [
              1
            ]
          },
          "volume": {
            "type": "double",
            "description": "Total traded volume in the base currency.",
            "examples": [
              "0.01"
            ]
          },
          "interval_begin": {
            "type": "string",
            "description": "RFC3339 timestamp of interval start.",
            "examples": [
              "string"
            ]
          },
          "interval": {
            "type": "int64",
            "description": "Interval length in minutes.",
            "examples": [
              1
            ]
          }
        }
      },
      "examples": [
        []
      ]
    }
  }
}