Blockchain.com · JSON Structure

Com Exchange Trading Subscribe Payload Structure

ExchangeTradingSubscribePayload schema from Blockchain.com WebSocket APIs

Type: object Properties: 3 Required: 2
CryptocurrencyBitcoinBlockchain DataExchangeMarket DataTradingPaymentsPublic APIs

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

Properties

action channel cancelOnDisconnect

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-trading-subscribe-payload-structure.json",
  "name": "ExchangeTradingSubscribePayload",
  "description": "ExchangeTradingSubscribePayload schema from Blockchain.com WebSocket APIs",
  "type": "object",
  "properties": {
    "action": {
      "type": "string",
      "enum": [
        "subscribe",
        "unsubscribe"
      ]
    },
    "channel": {
      "type": "string",
      "const": "trading"
    },
    "cancelOnDisconnect": {
      "type": "boolean",
      "description": "When true, cancels all live orders when the connection drops. Cannot be turned off once enabled."
    }
  },
  "required": [
    "action",
    "channel"
  ]
}