Blockchain.com · JSON Structure

Com Exchange Balances Snapshot Payload Structure

ExchangeBalancesSnapshotPayload schema from Blockchain.com WebSocket APIs

Type: object Properties: 6 Required: 4
CryptocurrencyBitcoinBlockchain DataExchangeMarket DataTradingPaymentsPublic APIs

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

Properties

seqnum event channel balances total_available_local total_balance_local

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-balances-snapshot-payload-structure.json",
  "name": "ExchangeBalancesSnapshotPayload",
  "description": "ExchangeBalancesSnapshotPayload schema from Blockchain.com WebSocket APIs",
  "type": "object",
  "properties": {
    "seqnum": {
      "type": "int32"
    },
    "event": {
      "type": "string",
      "const": "snapshot"
    },
    "channel": {
      "type": "string",
      "const": "balances"
    },
    "balances": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "currency": {
            "type": "string"
          },
          "balance": {
            "type": "double"
          },
          "available": {
            "type": "double"
          },
          "balance_local": {
            "type": "double"
          },
          "available_local": {
            "type": "double"
          },
          "rate": {
            "type": "double"
          }
        }
      }
    },
    "total_available_local": {
      "type": "double"
    },
    "total_balance_local": {
      "type": "double"
    }
  },
  "required": [
    "seqnum",
    "event",
    "channel",
    "balances"
  ]
}