Coinbase · Schema

Trade

A market trade

BlockchainCryptocurrencyCustodyExchangeOnrampPaymentsTradingWalletWeb3

Properties

Name Type Description
trade_id string Unique identifier for the trade
product_id string Product traded
price string Price of the trade
size string Size of the trade
time string Time the trade occurred
side string Taker side of the trade
View JSON Schema on GitHub

JSON Schema

coinbase-trade-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Trade",
  "title": "Trade",
  "type": "object",
  "description": "A market trade",
  "properties": {
    "trade_id": {
      "type": "string",
      "description": "Unique identifier for the trade"
    },
    "product_id": {
      "type": "string",
      "description": "Product traded"
    },
    "price": {
      "type": "string",
      "description": "Price of the trade"
    },
    "size": {
      "type": "string",
      "description": "Size of the trade"
    },
    "time": {
      "type": "string",
      "format": "date-time",
      "description": "Time the trade occurred"
    },
    "side": {
      "type": "string",
      "description": "Taker side of the trade",
      "enum": [
        "BUY",
        "SELL"
      ]
    }
  }
}