Blockchain.com · JSON Structure

Com Exchange Trade Update Payload Structure

ExchangeTradeUpdatePayload schema from Blockchain.com WebSocket APIs

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

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

Properties

seqnum event channel symbol timestamp side qty price trade_id

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-trade-update-payload-structure.json",
  "name": "ExchangeTradeUpdatePayload",
  "description": "ExchangeTradeUpdatePayload schema from Blockchain.com WebSocket APIs",
  "type": "object",
  "properties": {
    "seqnum": {
      "type": "int32"
    },
    "event": {
      "type": "string",
      "const": "updated"
    },
    "channel": {
      "type": "string",
      "const": "trades"
    },
    "symbol": {
      "type": "string"
    },
    "timestamp": {
      "type": "datetime"
    },
    "side": {
      "type": "string",
      "enum": [
        "buy",
        "sell"
      ]
    },
    "qty": {
      "type": "double"
    },
    "price": {
      "type": "double"
    },
    "trade_id": {
      "type": "string"
    }
  },
  "required": [
    "seqnum",
    "event",
    "channel",
    "symbol",
    "timestamp",
    "side",
    "qty",
    "price",
    "trade_id"
  ]
}