{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ApiResponseL3OrderBookArray",
"type": "object",
"required": [
"data",
"meta",
"success"
],
"properties": {
"data": {
"type": "array",
"items": {
"description": "Current or historical Lighter L3 orderbook snapshot.",
"type": "object",
"required": [
"ask_count",
"bid_count",
"coin",
"mid_price",
"orders",
"spread",
"spread_bps",
"timestamp",
"total_ask_size",
"total_bid_size",
"truncated"
],
"properties": {
"ask_count": {
"description": "Ask order count for the stored checkpoint view.",
"type": "integer",
"example": 250
},
"bid_count": {
"description": "Bid order count for the stored checkpoint view.",
"type": "integer",
"example": 250
},
"coin": {
"description": "Lighter trading pair symbol.",
"type": "string",
"example": "BTC"
},
"mid_price": {
"description": "Mid price as a decimal string when both sides are present; null otherwise.",
"type": "string",
"nullable": true,
"example": "65127.25"
},
"orders": {
"description": "Individual resting orders in the served L3 view.",
"type": "array",
"items": {
"description": "Individual resting order in a Lighter L3 snapshot.",
"type": "object",
"required": [
"order_index",
"original_size",
"owner_account_index",
"price",
"remaining_size",
"side"
],
"properties": {
"order_index": {
"description": "Numeric order index assigned by Lighter.",
"type": "integer",
"format": "int64",
"example": 562953074779869
},
"original_size": {
"description": "Original venue-native order size.",
"type": "number",
"example": 0.02303
},
"owner_account_index": {
"description": "Numeric Lighter account index associated with the resting order.",
"type": "integer",
"format": "int64",
"example": 281474976710654
},
"price": {
"description": "Lighter venue-native resting order price.",
"type": "number",
"example": 65127.5
},
"remaining_size": {
"description": "Remaining venue-native order size.",
"type": "number",
"example": 0.02303
},
"side": {
"description": "Book side.",
"type": "string",
"enum": [
"bid",
"ask"
],
"example": "bid"
}
}
}
},
"spread": {
"description": "Absolute spread as a decimal string when both sides are present; null otherwise.",
"type": "string",
"nullable": true,
"example": "0.50"
},
"spread_bps": {
"description": "Spread in basis points as a decimal string when both sides are present; null otherwise.",
"type": "string",
"nullable": true,
"example": "0.08"
},
"timestamp": {
"description": "Snapshot timestamp in UTC.",
"type": "string",
"format": "date-time",
"example": "2026-03-12T00:00:00.000Z"
},
"total_ask_size": {
"description": "Aggregate remaining venue-native size across asks.",
"type": "number",
"example": 98.76
},
"total_bid_size": {
"description": "Aggregate remaining venue-native size across bids.",
"type": "number",
"example": 102.34
},
"truncated": {
"description": "True when the stored checkpoint reached the 250-orders-per-side ingestion cap.",
"type": "boolean",
"example": true
}
}
}
},
"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
}
}
}