{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/paradex/json-schema/paradex-responses-trade-result-schema.json",
  "title": "responses.TradeResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/paradex-trades-api-openapi.yml#/components/schemas/responses.TradeResult",
  "type": "object",
  "properties": {
    "block_id": {
      "description": "Groups the legs settled together in one block execution, one id per accepted offer for offer-based blocks. Empty for non-block trades. Delivered on the JSON encoding only, not the SBE binary encoding.",
      "type": "string"
    },
    "created_at": {
      "description": "Unix Millisecond timestamp at which trade was done",
      "type": "integer"
    },
    "id": {
      "description": "Unique Trade ID per TradeType",
      "type": "string"
    },
    "market": {
      "description": "Market for which trade was done",
      "type": "string"
    },
    "price": {
      "description": "Trade price",
      "type": "string"
    },
    "side": {
      "description": "Taker side",
      "allOf": [
        {
          "$ref": "#/$defs/responses.OrderSide"
        }
      ]
    },
    "size": {
      "description": "Trade size",
      "type": "string"
    },
    "trade_type": {
      "description": "Trade type: FILL, LIQUIDATION, RPI, UNWIND_TRANSFER, SETTLE_MARKET or BLOCK_TRADE",
      "allOf": [
        {
          "$ref": "#/$defs/responses.FillType"
        }
      ]
    }
  },
  "$defs": {
    "responses.FillType": {
      "type": "string",
      "enum": [
        "LIQUIDATION",
        "UNWIND_TRANSFER",
        "FILL",
        "SETTLE_MARKET",
        "RPI",
        "BLOCK_TRADE"
      ],
      "x-enum-varnames": [
        "FillTypeLiquidation",
        "FillTypeUnwindTransfer",
        "FillTypeFill",
        "FillTypeSettleMarket",
        "FillTypeRPI",
        "FillTypeBlockTrade"
      ]
    },
    "responses.OrderSide": {
      "type": "string",
      "enum": [
        "BUY",
        "SELL"
      ],
      "x-enum-varnames": [
        "OrderSideBuy",
        "OrderSideSell"
      ]
    }
  }
}