Blockchain.com · JSON Structure

Com Exchange New Order Single Payload Structure

ExchangeNewOrderSinglePayload schema from Blockchain.com WebSocket APIs

Type: object Properties: 13 Required: 7
CryptocurrencyBitcoinBlockchain DataExchangeMarket DataTradingPaymentsPublic APIs

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

Properties

action channel clOrdID symbol ordType timeInForce side orderQty price expireDate stopPx minQty execInst

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-new-order-single-payload-structure.json",
  "name": "ExchangeNewOrderSinglePayload",
  "description": "ExchangeNewOrderSinglePayload schema from Blockchain.com WebSocket APIs",
  "type": "object",
  "properties": {
    "action": {
      "type": "string",
      "const": "NewOrderSingle"
    },
    "channel": {
      "type": "string",
      "const": "trading"
    },
    "clOrdID": {
      "type": "string",
      "maxLength": 20,
      "description": "FIX 11 \u2014 client reference for the order."
    },
    "symbol": {
      "type": "string",
      "description": "FIX 55"
    },
    "ordType": {
      "type": "string",
      "enum": [
        "market",
        "limit",
        "stop",
        "stopLimit"
      ],
      "description": "FIX 40"
    },
    "timeInForce": {
      "type": "string",
      "enum": [
        "GTC",
        "GTD",
        "IOC",
        "FOK"
      ],
      "description": "FIX 59 \u2014 required for limit, stop, stopLimit."
    },
    "side": {
      "type": "string",
      "enum": [
        "buy",
        "sell"
      ],
      "description": "FIX 54"
    },
    "orderQty": {
      "type": "double",
      "description": "FIX 38 \u2014 size in base currency."
    },
    "price": {
      "type": "double",
      "description": "FIX 44 \u2014 required for limit and stopLimit."
    },
    "expireDate": {
      "type": "int32",
      "description": "FIX 432 \u2014 YYYYMMDD; required for GTD orders."
    },
    "stopPx": {
      "type": "double",
      "description": "FIX 99 \u2014 required for stop and stopLimit."
    },
    "minQty": {
      "type": "double",
      "description": "FIX 110 \u2014 optional minimum quantity for IOC fills."
    },
    "execInst": {
      "type": "string",
      "enum": [
        "ALO"
      ],
      "description": "FIX 18 \u2014 Add Liquidity Only / post-only flag."
    }
  },
  "required": [
    "action",
    "channel",
    "clOrdID",
    "symbol",
    "ordType",
    "side",
    "orderQty"
  ]
}