Blockchain.com · JSON Structure

Com Exchange Prices Update Payload Structure

ExchangePricesUpdatePayload schema from Blockchain.com WebSocket APIs

Type: object Properties: 5 Required: 5
CryptocurrencyBitcoinBlockchain DataExchangeMarket DataTradingPaymentsPublic APIs

ExchangePricesUpdatePayload is a JSON Structure definition published by Blockchain.com, describing 5 properties, of which 5 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

seqnum event channel symbol price

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/blockchain/refs/heads/main/json-structure/com-exchange-prices-update-payload-structure.json",
  "name": "ExchangePricesUpdatePayload",
  "description": "ExchangePricesUpdatePayload schema from Blockchain.com WebSocket APIs",
  "type": "object",
  "properties": {
    "seqnum": {
      "type": "int32"
    },
    "event": {
      "type": "string",
      "const": "updated"
    },
    "channel": {
      "type": "string",
      "const": "prices"
    },
    "symbol": {
      "type": "string"
    },
    "price": {
      "type": "array",
      "description": "[timestamp, open, high, low, close, volume]",
      "minItems": 6,
      "maxItems": 6,
      "items": {
        "type": "double"
      }
    }
  },
  "required": [
    "seqnum",
    "event",
    "channel",
    "symbol",
    "price"
  ]
}