{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ApiResponseLiquidationArray",
"description": "API response containing an array of liquidation events",
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"description": "Liquidation event",
"type": "object",
"required": [
"coin",
"liquidated_user",
"liquidator_user",
"price",
"side",
"size",
"symbol",
"timestamp"
],
"properties": {
"closed_pnl": {
"description": "Realized PnL from the liquidation (usually negative)",
"type": "string",
"nullable": true,
"example": "-1250.50"
},
"coin": {
"description": "Trading pair symbol (deprecated, use symbol instead)",
"type": "string",
"deprecated": true,
"example": "BTC"
},
"direction": {
"description": "Upstream direction label (for example `Close Long`, `Close Short`; HIP-3 can also emit `Open Long`, `Open Short`, or rare unclassified values such as `Long > Short`)",
"type": "string",
"nullable": true,
"example": "Close Long"
},
"liquidated_user": {
"description": "Address of the user who was liquidated",
"type": "string",
"example": "0x84eec0068b37919cc8f13d7454073ac167374cc0"
},
"liquidator_user": {
"description": "Address of the liquidator (counterparty)",
"type": "string",
"example": "0x4d969e59b312970cc07af266938a4433ccae0b4c"
},
"mark_price": {
"description": "Mark price at time of liquidation",
"type": "string",
"nullable": true,
"example": "42480.25"
},
"price": {
"description": "Price at which the liquidation was executed",
"type": "string",
"example": "42500.50"
},
"side": {
"description": "Exchange side code for the liquidation-related fill (`A`/`B`). Use `direction` for close/open interpretation, especially on HIP-3.",
"type": "string",
"example": "B"
},
"size": {
"description": "Size of the liquidated position",
"type": "string",
"example": "1.5"
},
"symbol": {
"description": "Trading pair symbol",
"type": "string",
"example": "BTC"
},
"timestamp": {
"description": "Liquidation timestamp (UTC)",
"type": "string",
"format": "date-time",
"example": "2025-05-21T10:30:00.000Z"
},
"trade_id": {
"description": "Trade ID for this liquidation",
"type": "integer",
"format": "int64",
"nullable": true,
"example": 1234567890
},
"tx_hash": {
"description": "Blockchain transaction hash",
"type": "string",
"nullable": true,
"example": "0xe266d353038e679c5d7e042433054f0000e1d8e52f7860ecda84573b9b5a02ca"
}
}
}
},
"meta": {
"description": "Response metadata. Every 2xx JSON response carries `meta.request_id`; list payloads add `count`; cursor-paged routes add `has_more` and, when another page follows, `next_cursor`; per-symbol routes add `symbol` and `venue`. Fields that do not apply to a route are omitted.",
"type": "object",
"required": [
"request_id"
],
"properties": {
"as_of": {
"description": "Positioning: the 5-minute close the records describe, equal to each record's `window_end`.",
"type": "string",
"format": "date-time"
},
"built_through": {
"description": "Trade intent: how far the series is built. A second without a record had no trades up to this instant; after it nothing is known yet.",
"type": "string",
"format": "date-time"
},
"clamped_to": {
"description": "The boundary the request's `end` was clamped to, when clamping occurred.",
"type": "string",
"format": "date-time",
"nullable": true
},
"count": {
"description": "Number of records returned",
"type": "integer"
},
"coverage_from": {
"description": "Earliest coverage for the requested symbol and data type. Present only when the requested window ends before coverage begins.",
"type": "string",
"format": "date-time"
},
"finalized_through": {
"description": "Two-tier datasets (Lighter trades): data at or before this instant is final; later data is preliminary.",
"type": "string",
"format": "date-time"
},
"has_more": {
"description": "Cursor-paged routes: whether another page follows. `next_cursor` is present exactly when this is `true`. A final page can be empty when the previous page was exactly full; `has_more` is `false` on it.",
"type": "boolean"
},
"next_cursor": {
"description": "Opaque cursor for the next page, present exactly when `has_more` is `true`. Pass it back unchanged as `cursor` with the same filters. Do not parse or construct it.",
"type": "string"
},
"notice": {
"description": "Human-readable advisory about the response. Used when the requested window ends before coverage begins for the symbol, and on CVD responses that are one page of several; may carry other advisories in future.",
"type": "string"
},
"preliminary_row_count": {
"description": "Number of preliminary rows in this response, on routes that intentionally serve preliminary data (Lighter `/recent`, trade intent).",
"type": "integer",
"nullable": true
},
"request_id": {
"description": "Unique request ID for support",
"type": "string",
"format": "uuid"
},
"requested_end": {
"description": "The `end` the request asked for, echoed when it was clamped to `finalized_through`.",
"type": "string",
"format": "date-time",
"nullable": true
},
"symbol": {
"description": "Per-symbol routes: the canonical public symbol the response describes (for example `BTC`, `xyz:TSLA`, `HYPE-USDC`, `#0`).",
"type": "string",
"example": "BTC"
},
"venue": {
"description": "Per-symbol routes: the venue the response describes.",
"type": "string",
"enum": [
"hyperliquid",
"hip3",
"hip4",
"spot",
"lighter",
"rh-lighter"
],
"example": "hyperliquid"
}
}
},
"success": {
"type": "boolean",
"example": true
}
}
}