Blockchain.com · Schema

ExchangeTradeUpdatePayload

ExchangeTradeUpdatePayload schema from Blockchain.com WebSocket APIs

CryptocurrencyBitcoinBlockchain DataExchangeMarket DataTradingPaymentsPublic APIs

Properties

Name Type Description
seqnum integer
event string
channel string
symbol string
timestamp string
side string
qty number
price number
trade_id string
View JSON Schema on GitHub

JSON Schema

com-exchange-trade-update-payload-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/blockchain/refs/heads/main/json-schema/com-exchange-trade-update-payload-schema.json",
  "title": "ExchangeTradeUpdatePayload",
  "description": "ExchangeTradeUpdatePayload schema from Blockchain.com WebSocket APIs",
  "type": "object",
  "properties": {
    "seqnum": {
      "type": "integer"
    },
    "event": {
      "type": "string",
      "const": "updated"
    },
    "channel": {
      "type": "string",
      "const": "trades"
    },
    "symbol": {
      "type": "string"
    },
    "timestamp": {
      "type": "string",
      "format": "date-time"
    },
    "side": {
      "type": "string",
      "enum": [
        "buy",
        "sell"
      ]
    },
    "qty": {
      "type": "number"
    },
    "price": {
      "type": "number"
    },
    "trade_id": {
      "type": "string"
    }
  },
  "required": [
    "seqnum",
    "event",
    "channel",
    "symbol",
    "timestamp",
    "side",
    "qty",
    "price",
    "trade_id"
  ]
}