{
  "openapi": "3.0.3",
  "info": {
    "title": "0xArchive API",
    "description": "REST API for current and historical market data from Hyperliquid and Lighter. Hyperliquid coverage includes core perpetuals, Spot, HIP-3 builder perpetuals, and HIP-4 outcome markets. Lighter coverage includes two deployments: Lighter mainnet under /v1/lighter and Lighter on Robinhood Chain under /v1/rh-lighter. Account positions are available for Hyperliquid core, HIP-3, and both Lighter deployments. Coverage and access requirements vary by route. See https://docs.0xarchive.io/ for authentication, limits, and examples.",
    "version": "1.13.0",
    "termsOfService": "https://0xarchive.io/terms",
    "contact": {
      "name": "0xArchive Support",
      "url": "https://0xarchive.io",
      "email": "support@0xarchive.io"
    },
    "license": {
      "name": "Proprietary",
      "url": "https://0xarchive.io/terms"
    }
  },
  "externalDocs": {
    "description": "0xArchive Developer Docs",
    "url": "https://docs.0xarchive.io/"
  },
  "x-0xarchive-docs-language-overlay": {
    "name": "data-quality-supported-venue-language",
    "reason": "Public OpenAPI language must describe supported venue-family coverage instead of broad exchange coverage.",
    "updated_at": "2026-05-24",
    "remove_when": "Public source OpenAPI uses supported venue-family wording for data-quality coverage and latency descriptions."
  },
  "servers": [
    {
      "url": "https://api.0xarchive.io",
      "description": "Production API"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "tags": [
    {
      "name": "System",
      "description": "Health checks and system status"
    },
    {
      "name": "Feedback",
      "description": "Anonymous and signed-in product feedback submissions."
    },
    {
      "name": "Hyperliquid - Instruments",
      "description": "Hyperliquid available trading instruments and their specifications. Authenticated inventory contains 232 core perpetual rows."
    },
    {
      "name": "Hyperliquid - Order Book",
      "description": "Hyperliquid venue-native L2 order book snapshots. Native Hyperliquid source snapshots are capped at 20 levels per side; use the full-depth L2 routes for full-depth aggregated L2."
    },
    {
      "name": "Hyperliquid - Full-Depth L2 Order Book",
      "description": "Full-depth aggregated L2 order book snapshots, checkpoint history, and diffs for Hyperliquid perpetuals derived from L4 data. Full-depth checkpoints and diffs where available."
    },
    {
      "name": "Hyperliquid - Trades",
      "description": "Hyperliquid historical trade/fill data with full execution details. Data from April 2023."
    },
    {
      "name": "Hyperliquid - Candles",
      "description": "Hyperliquid OHLCV candle data. Intervals: 1m, 5m, 15m, 30m, 1h, 4h, 1d, 1w."
    },
    {
      "name": "Hyperliquid - Open Interest",
      "description": "Hyperliquid historical open interest and market context data. Data from May 2023."
    },
    {
      "name": "Hyperliquid - Funding",
      "description": "Hyperliquid funding rate history. Data from May 2023."
    },
    {
      "name": "Hyperliquid - Liquidations",
      "description": "Hyperliquid liquidation events with user attribution. Served from December 22, 2025; older rows exist but are not served."
    },
    {
      "name": "Hyperliquid - L4 Order Book",
      "description": "Individual resting-order (L4) book state for Hyperliquid perpetuals, including price, size, order ID, wallet attribution, queue priority, diffs, and checkpoints."
    },
    {
      "name": "Hyperliquid - Orders",
      "description": "Order lifecycle events for Hyperliquid perpetuals: placements, cancellations, fills, and TP/SL triggers."
    },
    {
      "name": "Hyperliquid - Convenience",
      "description": "Hyperliquid convenience endpoints: freshness, summary, and price history."
    },
    {
      "name": "Hyperliquid - Positions",
      "description": "Hyperliquid core perpetual positions by wallet address: current and as-of positions, account summaries, hourly history, the position change log, the funding each position paid or received, and market-wide listings. Change log from May 25, 2025 15:00 UTC; hourly history from June 7, 2026 18:00 UTC; funding payments from September 27, 2025 10:00 UTC; live snapshots every 5 minutes."
    },
    {
      "name": "HIP-3 Builder Perps - Instruments",
      "description": "HIP-3 Builder Perps instrument discovery. Use this route with `/v1/symbols` `coverage_by_type` to resolve the current inventory and schema-specific dates."
    },
    {
      "name": "HIP-3 Builder Perps - Order Book",
      "description": "HIP-3 Builder Perps venue-native L2 order book snapshots. Native Hyperliquid source snapshots are capped at 20 levels per side; use the full-depth L2 routes for full-depth aggregated L2."
    },
    {
      "name": "HIP-3 Builder Perps - Full-Depth L2 Order Book",
      "description": "Full-depth aggregated L2 order book snapshots, checkpoint history, and diffs for HIP-3 builder perps derived from L4 data. Full-depth checkpoints and diffs where available."
    },
    {
      "name": "HIP-3 Builder Perps - Trades",
      "description": "HIP-3 Builder Perps historical trade/fill data. Coverage is symbol-specific; inspect `/v1/symbols` `coverage_by_type.trades` before choosing a time range."
    },
    {
      "name": "HIP-3 Builder Perps - Candles",
      "description": "HIP-3 Builder Perps OHLCV candle data. Intervals: 1m, 5m, 15m, 30m, 1h, 4h, 1d, 1w. Coverage is symbol-specific; verify the selected market before choosing a time range."
    },
    {
      "name": "HIP-3 Builder Perps - Open Interest",
      "description": "HIP-3 Builder Perps historical open interest data. Coverage is symbol-specific; inspect `/v1/symbols` `coverage_by_type.oi` before choosing a time range."
    },
    {
      "name": "HIP-3 Builder Perps - Funding",
      "description": "HIP-3 Builder Perps funding rate history. Coverage is symbol-specific; inspect `/v1/symbols` `coverage_by_type.funding` before choosing a time range."
    },
    {
      "name": "HIP-3 Builder Perps - Liquidations",
      "description": "HIP-3 Builder Perps liquidation-related fills. Coverage is symbol-specific; verify the selected market before choosing a time range."
    },
    {
      "name": "HIP-3 Builder Perps - L4 Order Book",
      "description": "Individual order-level (L4) orderbook data for HIP-3 builder perps."
    },
    {
      "name": "HIP-3 Builder Perps - Orders",
      "description": "Order lifecycle events for HIP-3 builder perps."
    },
    {
      "name": "HIP-3 Builder Perps - Convenience",
      "description": "HIP-3 convenience endpoints: freshness, summary, and price history."
    },
    {
      "name": "HIP-3 Builder Perps - Positions",
      "description": "HIP-3 builder perpetual positions by wallet address, optionally scoped to one dex: current and as-of positions, account summaries per dex, hourly history, the position change log, the funding each position paid or received, and market-wide listings. Change log from October 13, 2025; hourly history from June 7, 2026 18:00 UTC (later for some dexes); funding payments from October 13, 2025 13:00 UTC; live snapshots every 5 minutes."
    },
    {
      "name": "HIP-3 Builder Perps - Breadth",
      "description": "HIP-3 market breadth: the percentage of eligible instruments above their current UTC-session VWAP (every plan), and above their n-day moving average (Build, Pro, Scale and Enterprise plans)."
    },
    {
      "name": "Hyperliquid - Breadth",
      "description": "Hyperliquid core perpetual breadth: the percentage of eligible instruments above their current UTC-session VWAP (every plan; namespace maps are always empty), and above their n-day moving average (Build, Pro, Scale and Enterprise plans)."
    },
    {
      "name": "HIP-4 Outcomes - Outcomes",
      "description": "HIP-4 outcome market discovery (one row per outcome, both sides combined). Use these to enumerate live and settled binary outcome markets. Data from May 2026."
    },
    {
      "name": "HIP-4 Outcomes - Instruments",
      "description": "HIP-4 per-side instrument discovery (one row per `#N` coin). Each outcome has two sides: side 0 (Yes) and side 1 (No). Coins are `#`-prefixed. Data from May 2026."
    },
    {
      "name": "HIP-4 Outcomes - Order Book",
      "description": "HIP-4 outcome markets L2 and L4 order book snapshots and diffs. Coins are referenced by numeric id (0, 1, 10, 11, ...); the `#`-prefixed form is also accepted. Data from May 2026."
    },
    {
      "name": "HIP-4 Outcomes - Trades",
      "description": "HIP-4 outcome markets historical trade/fill data. Data from May 2026."
    },
    {
      "name": "HIP-4 Outcomes - Open Interest",
      "description": "HIP-4 outcome markets per-side open interest history. Display/paired/parity aggregates live on the `/outcomes/{outcome_id}` detail endpoint, not here. Data from May 2026."
    },
    {
      "name": "HIP-4 Outcomes - Orders",
      "description": "Order lifecycle events for HIP-4 outcome markets: placements, cancellations, fills, and TP/SL triggers."
    },
    {
      "name": "HIP-4 Outcomes - Convenience",
      "description": "HIP-4 convenience endpoints: freshness, summary, and price history. `mark_price` for HIP-4 is an implied probability in [0,1], not a USD price."
    },
    {
      "name": "Lighter - Instruments",
      "description": "Lighter available trading instruments and their specifications."
    },
    {
      "name": "Lighter - Order Book",
      "description": "Lighter L2 order book snapshots with configurable granularity. Checkpoint history starts January 29, 2026; 30s/10s/1s start January 30, 2026; tick reconstruction available."
    },
    {
      "name": "Lighter - Trades",
      "description": "Lighter historical fill data across more than 200 markets. Served history begins January 17, 2025, with exact starts varying by market."
    },
    {
      "name": "Lighter - Candles",
      "description": "Lighter OHLCV candle data. Intervals: 1m, 5m, 15m, 30m, 1h, 4h, 1d, 1w. Data from August 2025."
    },
    {
      "name": "Lighter - Open Interest",
      "description": "Lighter historical open interest data. Data from August 2025."
    },
    {
      "name": "Lighter - Funding",
      "description": "Lighter funding rate history. Data from August 2025."
    },
    {
      "name": "Lighter - L3 Order Book",
      "description": "Individual order-level (L3) orderbook data for Lighter. Data from March 2026."
    },
    {
      "name": "Lighter - Liquidations",
      "description": "Lighter liquidation events and aggregated liquidation volume from the start of live capture."
    },
    {
      "name": "Lighter - Convenience",
      "description": "Lighter convenience endpoints: freshness, summary, and price history."
    },
    {
      "name": "Lighter - Positions",
      "description": "Lighter mainnet account positions by account index: current and as-of positions, hourly history, the position change log, market-wide listings, and an L1 address resolver. Change log and hourly history from January 17, 2025; live snapshots every 2 minutes."
    },
    {
      "name": "Lighter on Robinhood Chain - Instruments",
      "description": "Lighter on Robinhood Chain is the second Lighter deployment: 84 USDG-quoted markets, 57 perpetuals and 27 spot. Perpetual symbols are uppercase (BTC); spot pairs are dashed (AAPL-USDG). Symbols can match Lighter mainnet symbols but name different markets."
    },
    {
      "name": "Lighter on Robinhood Chain - Order Book",
      "description": "Lighter on Robinhood Chain L2 order book snapshots and history from August 22, 2026 18:43 UTC. L3 order-level data is not captured on this deployment."
    },
    {
      "name": "Lighter on Robinhood Chain - Trades",
      "description": "Lighter on Robinhood Chain trade history from the venue launch on June 26, 2026 20:10:26 UTC. History is canonical up to `meta.finalized_through`, about a day behind; `/recent` serves the preliminary tier."
    },
    {
      "name": "Lighter on Robinhood Chain - Candles",
      "description": "Lighter on Robinhood Chain OHLCV candles derived from canonical trades from June 26, 2026. Intervals: 1m, 5m, 15m, 30m, 1h, 4h, 1d, 1w. The route answers with an error until candles are enabled for this deployment."
    },
    {
      "name": "Lighter on Robinhood Chain - Open Interest",
      "description": "Lighter on Robinhood Chain open interest for perpetual markets from August 22, 2026 18:43 UTC."
    },
    {
      "name": "Lighter on Robinhood Chain - Funding",
      "description": "Lighter on Robinhood Chain funding rate history for perpetual markets from August 22, 2026 18:43 UTC."
    },
    {
      "name": "Lighter on Robinhood Chain - Liquidations",
      "description": "Lighter on Robinhood Chain liquidation events and aggregated liquidation volume from June 26, 2026 20:10:26 UTC. Rows from before live capture began on August 22, 2026 carry `source: \"bucket\"` and an empty `raw_json`, and live-captured rows carry `source: \"ws\"` and the venue's raw JSON. The earlier rows were backfilled from the venue's finalized export."
    },
    {
      "name": "Lighter on Robinhood Chain - Convenience",
      "description": "Lighter on Robinhood Chain convenience endpoints: freshness, summary, and price history."
    },
    {
      "name": "Lighter on Robinhood Chain - Positions",
      "description": "Lighter on Robinhood Chain account positions by account index: current and as-of positions, hourly history, the position change log, and market-wide listings. Change log and hourly history from June 26, 2026; live snapshots every 2 minutes. Quoted and settled in USDG."
    },
    {
      "name": "Data Quality",
      "description": "Data quality monitoring: system status, coverage, incidents, latency, and SLA metrics. Every data quality route requires an API key."
    },
    {
      "name": "Web3 Authentication",
      "description": "SIWE authentication for existing wallet accounts and autonomous paid wallet access via x402. Standard Free accounts are created through the browser signup flow."
    },
    {
      "name": "Legacy",
      "description": "Deprecated endpoints that default to Hyperliquid. Use the exchange-specific endpoints (`/v1/hyperliquid/*`, `/v1/lighter/*`, `/v1/hyperliquid/hip3/*`) instead."
    },
    {
      "name": "Hyperliquid Spot",
      "description": "Hyperliquid Spot pair, order book, trade, reconstruction, TWAP, and freshness routes."
    },
    {
      "name": "Hyperliquid Spot - Candles",
      "description": "OHLCV candles for spot pairs (1m base, rolled up on demand)."
    },
    {
      "name": "HIP-4 Outcomes - Candles",
      "description": "OHLCV candles for HIP-4 outcome sides. Prices are implied probabilities (0..1); quote_volume in USDH."
    },
    {
      "name": "Webhooks - Catalog and Limits",
      "description": "The served webhook event catalog and what a plan allows. Read these before creating anything: the catalog is what a subscription is validated against, and the limits report is read from the same place the caps are enforced from."
    },
    {
      "name": "Webhooks - Endpoints",
      "description": "Delivery destinations, their signing secrets and their health. A secret is returned when an endpoint is created and when it is rotated, and never on a list."
    },
    {
      "name": "Webhooks - Subscriptions",
      "description": "Rules: one event type and one configuration delivered to one endpoint, including the pause state a rule carries and the routes that clear it."
    },
    {
      "name": "Webhooks - Previews",
      "description": "Evaluate a would-be subscription against history before creating it. Nothing is stored and no delivery is sent. Available on every plan, including Free."
    },
    {
      "name": "Webhooks - Deliveries",
      "description": "The delivery log for an endpoint, and repeating a delivery that has already been attempted."
    },
    {
      "name": "Webhooks - Watched Addresses",
      "description": "Wallets that address scoped event types report on. Only a wallet on this list may be named in a subscription configuration."
    },
    {
      "name": "Hyperliquid - Wallets",
      "description": "Wallet behavioral metrics for Hyperliquid perpetuals: per-wallet profiles and filtered wallet lists."
    },
    {
      "name": "HIP-3 Builder Perps - Wallets",
      "description": "Wallet behavioral metrics for HIP-3 builder perps: per-wallet profiles and filtered wallet lists."
    },
    {
      "name": "Hyperliquid - USDC Flows",
      "description": "USDC entering and leaving HyperCore: Arbitrum bridge deposits and withdrawals, and transfers to and from HyperEVM, as events and as totals per interval. Build, Pro, Scale and Enterprise plans."
    },
    {
      "name": "Hyperliquid - Trade Intent",
      "description": "Why a Hyperliquid core market traded, per interval: volume by intent (opens, profit taken, stops, flips), market-maker volume, and the aggregate position and flow of the market's winners and losers. Build, Pro, Scale and Enterprise plans."
    },
    {
      "name": "HIP-3 Builder Perps - Trade Intent",
      "description": "Why a HIP-3 market traded, per interval: volume by intent (opens, profit taken, stops, flips), market-maker volume, and the aggregate position and flow of the market's winners and losers. Build, Pro, Scale and Enterprise plans."
    },
    {
      "name": "Hyperliquid - Positioning",
      "description": "Every listed Hyperliquid core perp over a trailing window in one response: open interest change, taker flow, liquidations and typical moves. Build, Pro, Scale and Enterprise plans."
    },
    {
      "name": "HIP-3 Builder Perps - Positioning",
      "description": "Every active HIP-3 perp over a trailing window in one response: open interest change, taker flow, liquidations and typical moves. Build, Pro, Scale and Enterprise plans."
    }
  ],
  "paths": {
    "/health": {
      "get": {
        "tags": [
          "System"
        ],
        "summary": "Health check",
        "description": "Check API health status. No authentication required.",
        "operationId": "healthCheck",
        "security": [],
        "responses": {
          "200": {
            "description": "API is healthy",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "ok"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/orderbook/{symbol}": {
      "get": {
        "tags": [
          "Legacy"
        ],
        "summary": "Get order book (Deprecated)",
        "description": "**Deprecated:** use `/v1/hyperliquid/orderbook/{symbol}`, which serves the same Hyperliquid data. Responses carry `Deprecation: true` and `Link: </v1/hyperliquid/>; rel=\"successor-version\"`. No removal date is set.\n\nGet the latest deprecated compatibility order book snapshot for a coin, or at a specific timestamp. This Hyperliquid compatibility route is capped at the native 20 price levels per side.",
        "operationId": "getOrderbook",
        "deprecated": true,
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Trading pair symbol (e.g., BTC, ETH, SOL)",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "example": "BTC"
          },
          {
            "name": "timestamp",
            "in": "query",
            "description": "Instant to read. If not provided, returns latest snapshot. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1704067200000
          },
          {
            "name": "depth",
            "in": "query",
            "description": "Requested price levels per side for this deprecated Hyperliquid compatibility route. Native Hyperliquid L2 data is capped at 20 levels per side; values above 20 do not return full depth here. Use /v1/hyperliquid/orderbook/{symbol}/l2 for full-depth aggregated L2.",
            "schema": {
              "type": "integer",
              "example": 20,
              "maximum": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Order book snapshot",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOrderBook"
                }
              }
            },
            "headers": {
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-successor": "/v1/hyperliquid/orderbook/{symbol}"
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/orderbook/{symbol}/history": {
      "get": {
        "tags": [
          "Legacy"
        ],
        "summary": "Get order book history (Deprecated)",
        "description": "**Deprecated:** use `/v1/hyperliquid/orderbook/{symbol}/history`, which serves the same Hyperliquid data. Responses carry `Deprecation: true` and `Link: </v1/hyperliquid/>; rel=\"successor-version\"`. No removal date is set.\n\nGet historical deprecated compatibility order book snapshots within a time range. Historical windows use `start` and `end` Unix-millisecond query parameters. This Hyperliquid compatibility route is capped at 20 levels per side.",
        "operationId": "getOrderbookHistory",
        "deprecated": true,
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "description": "Trading pair symbol (e.g., BTC, ETH, SOL)",
            "example": "BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24h ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. If not provided, starts from the beginning of the range.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 100, max: 1000)",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          },
          {
            "name": "depth",
            "in": "query",
            "description": "Requested price levels per side for this deprecated Hyperliquid compatibility route. Native Hyperliquid L2 data is capped at 20 levels per side; values above 20 do not return full depth here. Use /v1/hyperliquid/orderbook/{symbol}/l2 for full-depth aggregated L2.",
            "schema": {
              "type": "integer",
              "maximum": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of order book snapshots",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOrderBookArray"
                }
              }
            },
            "headers": {
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-successor": "/v1/hyperliquid/orderbook/{symbol}/history"
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/trades/{symbol}": {
      "get": {
        "tags": [
          "Legacy"
        ],
        "summary": "Get trades (Deprecated)",
        "description": "**Deprecated:** use `/v1/hyperliquid/trades/{symbol}`, which serves the same Hyperliquid data. Responses carry `Deprecation: true` and `Link: </v1/hyperliquid/>; rel=\"successor-version\"`. No removal date is set.\n\nGet historical trades (fills) for a coin within a time range. Includes full execution details like fees, PnL, and position direction.\n\n**Pagination:** Use the `cursor` parameter with the timestamp from the previous response's `next_cursor` for efficient pagination through large datasets.",
        "operationId": "getTrades",
        "deprecated": true,
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "description": "Trading pair symbol (e.g., BTC, ETH, SOL)",
            "example": "BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24h ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "side",
            "in": "query",
            "required": false,
            "description": "Keep one side of the tape: `buy` or `sell` (case-insensitive). Omit it for both. The filter runs before paging, so a full page still holds `limit` matching trades and the cursor pages the filtered tape. Any other value answers 400 `invalid_parameter` with `param` and `valid_values`.",
            "schema": {
              "type": "string",
              "enum": [
                "buy",
                "sell"
              ]
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. The cursor is an opaque string that should be passed as-is.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 100, max: 1000)",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of trades with cursor for next page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseTradeArray"
                },
                "example": {
                  "success": true,
                  "data": [],
                  "meta": {
                    "count": 100,
                    "next_cursor": "1704067200123_456789",
                    "request_id": "550e8400-e29b-41d4-a716-446655440000",
                    "has_more": true
                  }
                }
              }
            },
            "headers": {
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-successor": "/v1/hyperliquid/trades/{symbol}"
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/trades/{symbol}/cursor": {
      "get": {
        "tags": [
          "Legacy"
        ],
        "summary": "Get trades with cursor pagination (Deprecated)",
        "description": "**Deprecated:** use `/v1/hyperliquid/trades/{symbol}`, which serves the same Hyperliquid data. Responses carry `Deprecation: true` and `Link: </v1/hyperliquid/>; rel=\"successor-version\"`. No removal date is set.\n\nGet historical trades using cursor-based pagination. This is the same as `/v1/trades/{symbol}` with cursor pagination (which is now the default). This endpoint is maintained for backwards compatibility and explicit cursor-only usage.",
        "operationId": "getTradesCursor",
        "deprecated": true,
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "description": "Trading pair symbol (e.g., BTC, ETH, SOL)",
            "example": "BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24h ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "side",
            "in": "query",
            "required": false,
            "description": "Keep one side of the tape: `buy` or `sell` (case-insensitive). Omit it for both. The filter runs before paging, so a full page still holds `limit` matching trades and the cursor pages the filtered tape. Any other value answers 400 `invalid_parameter` with `param` and `valid_values`.",
            "schema": {
              "type": "string",
              "enum": [
                "buy",
                "sell"
              ]
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. The cursor is an opaque string that should be passed as-is.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 100, max: 1000)",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of trades with cursor for next page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseTradeArray"
                },
                "example": {
                  "success": true,
                  "data": [],
                  "meta": {
                    "count": 100,
                    "next_cursor": "1704067200123_456789",
                    "request_id": "550e8400-e29b-41d4-a716-446655440000",
                    "has_more": true
                  }
                }
              }
            },
            "headers": {
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-successor": "/v1/hyperliquid/trades/{symbol}"
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/instruments": {
      "get": {
        "tags": [
          "Legacy"
        ],
        "summary": "List instruments (Deprecated)",
        "description": "**Deprecated:** use `/v1/hyperliquid/instruments`, which serves the same Hyperliquid data. Responses carry `Deprecation: true` and `Link: </v1/hyperliquid/>; rel=\"successor-version\"`. No removal date is set.\n\nGet all available trading instruments with their specifications.",
        "operationId": "listInstruments",
        "deprecated": true,
        "responses": {
          "200": {
            "description": "List of instruments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseInstrumentArray"
                }
              }
            },
            "headers": {
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-successor": "/v1/hyperliquid/instruments"
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/instruments/{symbol}": {
      "get": {
        "tags": [
          "Legacy"
        ],
        "summary": "Get instrument (Deprecated)",
        "description": "**Deprecated:** use `/v1/hyperliquid/instruments/{symbol}`, which serves the same Hyperliquid data. Responses carry `Deprecation: true` and `Link: </v1/hyperliquid/>; rel=\"successor-version\"`. No removal date is set.\n\nGet details for a specific trading instrument.",
        "operationId": "getInstrument",
        "deprecated": true,
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "description": "Trading pair symbol (e.g., BTC, ETH, SOL)",
            "example": "BTC"
          }
        ],
        "responses": {
          "200": {
            "description": "Instrument details",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseInstrument"
                }
              }
            },
            "headers": {
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-successor": "/v1/hyperliquid/instruments/{symbol}"
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/openinterest/{symbol}": {
      "get": {
        "tags": [
          "Legacy"
        ],
        "summary": "Get open interest history (Deprecated)",
        "description": "**Deprecated:** use `/v1/hyperliquid/openinterest/{symbol}`, which serves the same Hyperliquid data. Responses carry `Deprecation: true` and `Link: </v1/hyperliquid/>; rel=\"successor-version\"`. No removal date is set.\n\nGet historical open interest data with associated market context (mark price, oracle price, volume, etc.).",
        "operationId": "getOpenInterest",
        "deprecated": true,
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "description": "Trading pair symbol (e.g., BTC, ETH, SOL)",
            "example": "BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24h ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. If not provided, starts from the beginning of the range.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 100, max: 1000)",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Open interest data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOpenInterestArray"
                }
              }
            },
            "headers": {
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-successor": "/v1/hyperliquid/openinterest/{symbol}"
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/openinterest/{symbol}/current": {
      "get": {
        "tags": [
          "Legacy"
        ],
        "summary": "Get current open interest (Deprecated)",
        "description": "**Deprecated:** use `/v1/hyperliquid/openinterest/{symbol}/current`, which serves the same Hyperliquid data. Responses carry `Deprecation: true` and `Link: </v1/hyperliquid/>; rel=\"successor-version\"`. No removal date is set.\n\nGet the latest open interest value and market context.",
        "operationId": "getCurrentOpenInterest",
        "deprecated": true,
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "description": "Trading pair symbol (e.g., BTC, ETH, SOL)",
            "example": "BTC"
          }
        ],
        "responses": {
          "200": {
            "description": "Current open interest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOpenInterest"
                }
              }
            },
            "headers": {
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-successor": "/v1/hyperliquid/openinterest/{symbol}/current"
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/funding/{symbol}": {
      "get": {
        "tags": [
          "Legacy"
        ],
        "summary": "Get funding rate history (Deprecated)",
        "description": "**Deprecated:** use `/v1/hyperliquid/funding/{symbol}`, which serves the same Hyperliquid data. Responses carry `Deprecation: true` and `Link: </v1/hyperliquid/>; rel=\"successor-version\"`. No removal date is set.\n\nGet historical funding rates. Hyperliquid settles funding every hour.",
        "operationId": "getFundingHistory",
        "deprecated": true,
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "description": "Trading pair symbol (e.g., BTC, ETH, SOL)",
            "example": "BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24h ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. If not provided, starts from the beginning of the range.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 100, max: 1000)",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Funding rate history",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseFundingRateArray"
                }
              }
            },
            "headers": {
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-successor": "/v1/hyperliquid/funding/{symbol}"
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/funding/{symbol}/current": {
      "get": {
        "tags": [
          "Legacy"
        ],
        "summary": "Get current funding rate (Deprecated)",
        "description": "**Deprecated:** use `/v1/hyperliquid/funding/{symbol}/current`, which serves the same Hyperliquid data. Responses carry `Deprecation: true` and `Link: </v1/hyperliquid/>; rel=\"successor-version\"`. No removal date is set.\n\nGet the latest funding rate for a coin.",
        "operationId": "getCurrentFunding",
        "deprecated": true,
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "description": "Trading pair symbol (e.g., BTC, ETH, SOL)",
            "example": "BTC"
          }
        ],
        "responses": {
          "200": {
            "description": "Current funding rate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseFundingRate"
                }
              }
            },
            "headers": {
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-successor": "/v1/hyperliquid/funding/{symbol}/current"
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/instruments": {
      "get": {
        "tags": [
          "Hyperliquid - Instruments"
        ],
        "summary": "List Hyperliquid instruments",
        "description": "Get all available Hyperliquid trading instruments with their specifications.",
        "operationId": "listHyperliquidInstruments",
        "responses": {
          "200": {
            "description": "List of instruments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseInstrumentArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/instruments/{symbol}": {
      "get": {
        "tags": [
          "Hyperliquid - Instruments"
        ],
        "summary": "Get Hyperliquid instrument",
        "description": "Get details for a specific Hyperliquid trading instrument.",
        "operationId": "getHyperliquidInstrument",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "description": "Trading pair symbol (e.g., BTC, ETH, SOL)",
            "example": "BTC"
          }
        ],
        "responses": {
          "200": {
            "description": "Instrument details",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseInstrument"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/orderbook/{symbol}": {
      "get": {
        "tags": [
          "Hyperliquid - Order Book"
        ],
        "summary": "Get Hyperliquid native L2 order book (20 levels)",
        "description": "Get the latest venue-native Hyperliquid L2 order book snapshot, or a snapshot at a specific timestamp. This native route is capped at the 20 price levels per side provided by Hyperliquid source snapshots. Use `/v1/hyperliquid/orderbook/{symbol}/l2` for full-depth aggregated L2 derived from L4.",
        "operationId": "getHyperliquidOrderbook",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Trading pair symbol (e.g., BTC, ETH, SOL)",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "example": "BTC"
          },
          {
            "name": "timestamp",
            "in": "query",
            "description": "Instant to read. If not provided, returns latest snapshot. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1704067200000
          },
          {
            "name": "depth",
            "in": "query",
            "description": "Requested price levels per side for this native venue snapshot. Hyperliquid native L2 data is capped at 20 levels per side; values above 20 do not return full depth on this route. Use the /l2 routes for full-depth aggregated L2.",
            "schema": {
              "type": "integer",
              "example": 20,
              "maximum": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Order book snapshot",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOrderBook"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/orderbook/{symbol}/history": {
      "get": {
        "tags": [
          "Hyperliquid - Order Book"
        ],
        "summary": "Get Hyperliquid native L2 order book history (20 levels)",
        "description": "Get historical venue-native Hyperliquid L2 order book snapshots within a time range. Historical windows use `start` and `end` Unix-millisecond query parameters. This native route is capped at 20 price levels per side; use `/v1/hyperliquid/orderbook/{symbol}/l2/history` for full-depth checkpoint history derived from L4.",
        "operationId": "getHyperliquidOrderbookHistory",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "description": "Trading pair symbol (e.g., BTC, ETH, SOL)",
            "example": "BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24h ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 100, max: 1000)",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          },
          {
            "name": "depth",
            "in": "query",
            "description": "Requested price levels per side for this native venue snapshot. Hyperliquid native L2 data is capped at 20 levels per side; values above 20 do not return full depth on this route. Use the /l2 routes for full-depth aggregated L2.",
            "schema": {
              "type": "integer",
              "maximum": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of order book snapshots",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOrderBookArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/orderbook/{symbol}/l2": {
      "get": {
        "tags": [
          "Hyperliquid - Full-Depth L2 Order Book"
        ],
        "summary": "Get Hyperliquid full-depth L2 order book",
        "description": "Get a full-depth aggregated L2 order book snapshot derived from L4 data for Hyperliquid. Use this route when you need full-depth aggregated L2 from March 11, 2026 01:03 UTC onward. The native /orderbook route remains capped at 20 venue-native levels.",
        "operationId": "getHyperliquidFullDepthL2Orderbook",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Trading pair symbol (e.g., BTC, ETH, SOL)",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "example": "BTC"
          },
          {
            "name": "timestamp",
            "in": "query",
            "description": "Instant to read. If not provided, returns the latest full-depth L2 snapshot. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767225600000
          },
          {
            "name": "depth",
            "in": "query",
            "description": "Requested aggregated L2 levels per side. This dedicated route returns all available aggregated levels for the selected symbol and checkpoint.",
            "schema": {
              "type": "integer",
              "example": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Full-depth L2 order book snapshot",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseFullDepthL2OrderBook"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/orderbook/{symbol}/l2/history": {
      "get": {
        "tags": [
          "Hyperliquid - Full-Depth L2 Order Book"
        ],
        "summary": "Get Hyperliquid full-depth L2 order book history",
        "description": "Get paginated full-depth L2 checkpoint snapshots derived from L4 data for Hyperliquid from March 11, 2026 01:03 UTC onward. The route returns full checkpoint depth; it does not currently accept a per-request depth override.",
        "operationId": "getHyperliquidFullDepthL2History",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Trading pair symbol (e.g., BTC, ETH, SOL)",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "example": "BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24h ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767225600000
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767229200000
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of checkpoint snapshots (default: 100, max: 100).",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 100,
              "minimum": 1
            }
          },
          {
            "name": "depth",
            "in": "query",
            "required": false,
            "description": "Price levels per side in each snapshot, capped by the plan's order book depth. Omit it for the plan's depth. `bid_levels` and `ask_levels` still report the book's own level counts.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "example": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Full-depth L2 checkpoint snapshots",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseFullDepthL2OrderBookArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/orderbook/{symbol}/l2/diffs": {
      "get": {
        "tags": [
          "Hyperliquid - Full-Depth L2 Order Book"
        ],
        "summary": "Get Hyperliquid full-depth L2 order book diffs",
        "description": "Get tick-level aggregate L2 diffs derived from L4 deltas for Hyperliquid.",
        "operationId": "getHyperliquidFullDepthL2Diffs",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Trading pair symbol (e.g., BTC, ETH, SOL)",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "example": "BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24h ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767225600000
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767229200000
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of diff events (default: 100, max: 1000)",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Full-depth L2 diff events",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseL2OrderBookDiffArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/trades/{symbol}": {
      "get": {
        "tags": [
          "Hyperliquid - Trades"
        ],
        "summary": "Get Hyperliquid trades",
        "description": "Get historical trades (fills) for a coin within a time range. Includes full execution details like fees, PnL, and position direction. Data available from April 2023. History before 2025-03-22 comes from a capped per-user API backfill and is incomplete, especially for maker-side and high-volume activity.\n\n**Pagination:** Use the `cursor` parameter with the value from the previous response's `next_cursor` for efficient pagination.",
        "operationId": "getHyperliquidTrades",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "description": "Trading pair symbol (e.g., BTC, ETH, SOL)",
            "example": "BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24h ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "side",
            "in": "query",
            "required": false,
            "description": "Keep one side of the tape: `buy` or `sell` (case-insensitive). Omit it for both. The filter runs before paging, so a full page still holds `limit` matching trades and the cursor pages the filtered tape. Any other value answers 400 `invalid_parameter` with `param` and `valid_values`.",
            "schema": {
              "type": "string",
              "enum": [
                "buy",
                "sell"
              ]
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of trades (default: 100, max: 50000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 50000,
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of trades with cursor for next page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseTradeArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/candles/{symbol}": {
      "get": {
        "tags": [
          "Hyperliquid - Candles"
        ],
        "summary": "Get Hyperliquid OHLCV candles",
        "description": "Get historical OHLCV candle data. Data available from March 2025.\n\n**Available Intervals:** 1m, 5m, 15m, 30m, 1h, 4h, 1d, 1w\n\n**Pagination:** Use the `cursor` parameter with the value from the previous response's `next_cursor` for efficient pagination.",
        "operationId": "getHyperliquidCandles",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "description": "Trading pair symbol (e.g., BTC, ETH, SOL)",
            "example": "BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24h ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "interval",
            "in": "query",
            "description": "Candle interval (default: 1h)",
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "30m",
                "1h",
                "4h",
                "1d",
                "1w"
              ],
              "default": "1h"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of candles (default: 100, max: 10000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 10000,
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of OHLCV candles with cursor for next page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseCandleArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/openinterest/{symbol}": {
      "get": {
        "tags": [
          "Hyperliquid - Open Interest"
        ],
        "summary": "Get Hyperliquid open interest history",
        "description": "Get historical open interest data with associated market context (mark price, oracle price, volume, etc.). Data available from May 2023.",
        "operationId": "getHyperliquidOpenInterest",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "description": "Trading pair symbol (e.g., BTC, ETH, SOL)",
            "example": "BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24h ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 100, max: 1000)",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          },
          {
            "name": "interval",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "30m",
                "1h",
                "4h",
                "1d"
              ]
            },
            "description": "Aggregation interval. When omitted, returns raw ~1 min updates."
          }
        ],
        "responses": {
          "200": {
            "description": "Open interest data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOpenInterestArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/openinterest/{symbol}/current": {
      "get": {
        "tags": [
          "Hyperliquid - Open Interest"
        ],
        "summary": "Get current Hyperliquid open interest",
        "description": "Get the latest open interest value and market context.",
        "operationId": "getCurrentHyperliquidOpenInterest",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "description": "Trading pair symbol (e.g., BTC, ETH, SOL)",
            "example": "BTC"
          }
        ],
        "responses": {
          "200": {
            "description": "Current open interest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOpenInterest"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/funding/{symbol}": {
      "get": {
        "tags": [
          "Hyperliquid - Funding"
        ],
        "summary": "Get Hyperliquid funding rate history",
        "description": "Get historical funding rates. Hyperliquid settles funding every hour. Data available from May 2023.",
        "operationId": "getHyperliquidFundingHistory",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "description": "Trading pair symbol (e.g., BTC, ETH, SOL)",
            "example": "BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24h ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 100, max: 1000)",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          },
          {
            "name": "interval",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "30m",
                "1h",
                "4h",
                "1d"
              ]
            },
            "description": "Aggregation interval. When omitted, returns raw ~1 min updates."
          }
        ],
        "responses": {
          "200": {
            "description": "Funding rate history",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseFundingRateArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/funding/{symbol}/current": {
      "get": {
        "tags": [
          "Hyperliquid - Funding"
        ],
        "summary": "Get current Hyperliquid funding rate",
        "description": "Get the latest funding rate for a coin.",
        "operationId": "getCurrentHyperliquidFunding",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "description": "Trading pair symbol (e.g., BTC, ETH, SOL)",
            "example": "BTC"
          }
        ],
        "responses": {
          "200": {
            "description": "Current funding rate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseFundingRate"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/liquidations/{symbol}": {
      "get": {
        "tags": [
          "Hyperliquid - Liquidations"
        ],
        "summary": "Get Hyperliquid liquidation events",
        "description": "Get historical liquidation events for a coin. Served from December 22, 2025; older rows exist but are not served.",
        "operationId": "getHyperliquidLiquidations",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Trading pair symbol (e.g., BTC, ETH)",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "example": "BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24h ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 100, max: 1000)",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Liquidation events",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseLiquidationArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/liquidations/user/{user}": {
      "get": {
        "tags": [
          "Hyperliquid - Liquidations"
        ],
        "summary": "Get liquidations by user address",
        "description": "Get historical liquidation events for a specific user address. Returns liquidations where the user was the liquidated party. Served from December 22, 2025; older rows exist but are not served.",
        "operationId": "getHyperliquidLiquidationsByUser",
        "parameters": [
          {
            "name": "user",
            "in": "path",
            "required": true,
            "description": "User wallet address (e.g., 0x...)",
            "schema": {
              "type": "string",
              "example": "0x84eec0068b37919cc8f13d7454073ac167374cc0"
            }
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24h ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "coin",
            "in": "query",
            "description": "Optional market filter (for example `BTC`). This route names it `coin`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 100, max: 1000)",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "User liquidation events",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseLiquidationArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/liquidations/{symbol}/volume": {
      "get": {
        "tags": [
          "Hyperliquid - Convenience"
        ],
        "summary": "Get aggregated liquidation volume",
        "description": "Get pre-aggregated liquidation volumes in time-bucketed intervals. Returns total, long, and short USD volumes with counts.",
        "operationId": "getHyperliquidLiquidationVolume",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Coin symbol (e.g., BTC, ETH, SOL)",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "example": "BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "interval",
            "in": "query",
            "description": "Aggregation interval",
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "30m",
                "1h",
                "4h",
                "1d"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 100, max: 1000)",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Aggregated liquidation volume data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseLiquidationVolumeArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/usdc-flows": {
      "get": {
        "tags": [
          "Hyperliquid - USDC Flows"
        ],
        "summary": "Get Hyperliquid USDC flow events",
        "description": "Get every USDC flow into and out of HyperCore, oldest first in execution order: Arbitrum bridge deposits (`deposit`) and withdrawals (`withdraw`), and transfers from and to HyperEVM (`evm_in`, `evm_out`), which is also how CCTP moves USDC in and out. Each event names the HyperCore account in `user`. Included with the Build, Pro, Scale and Enterprise plans. A key on another plan receives 403 `forbidden` naming the dataset, the plans that include it and where to upgrade, and is not charged.\n\n**Coverage:** from the first recorded flow, 2025-09-27 09:33 UTC. A window that ends before it returns an empty page with `meta.coverage_from` and `meta.notice`; a window that straddles it is served from it.\n\n**Pagination:** pages follow execution order, so a page boundary inside a bridge batch neither repeats nor skips an event. A page reads at most 31 days of history, so with a selective `min_usd` a page can hold fewer than `limit` events, or none, and still carry `meta.next_cursor`. Pass the cursor back with the same filters until `meta.has_more` is `false`; never stop on a short or empty page.\n\n**Recent events:** an event in the last 3 hours can still be added after you have read past it, when a gap in the live record is repaired. Re-read the last 3 hours and deduplicate on `id`.\n\n**Credits:** 1 credit per 1,000 events returned, at least 1 per request.",
        "operationId": "getUsdcFlows",
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "description": "Start of the window, inclusive. Defaults to 24 hours before `end`, so set it explicitly when paging: the default moves with the clock. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End of the window, inclusive. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Events per page (default: 100, max: 1,000). A larger value is read as 1,000.",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          },
          {
            "name": "min_usd",
            "in": "query",
            "description": "Only events of at least this many USD (default: 0, max: 1000000000000).",
            "schema": {
              "type": "number",
              "default": 0,
              "minimum": 0,
              "maximum": 1000000000000
            }
          },
          {
            "name": "kind",
            "in": "query",
            "description": "Only events of this kind (default: every kind).",
            "schema": {
              "type": "string",
              "enum": [
                "deposit",
                "withdraw",
                "evm_in",
                "evm_out"
              ]
            }
          }
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "USDC flow events",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseUsdcFlowEventArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/usdc-flows/volume": {
      "get": {
        "tags": [
          "Hyperliquid - USDC Flows"
        ],
        "summary": "Get Hyperliquid USDC flow volume",
        "description": "Get USDC flow totals per bucket: the count and USD amount of each kind of flow, and `net_usd` (deposits and HyperEVM inflows less withdrawals and HyperEVM outflows). Buckets with no flows are returned with zeros. Totals count every flow, so this route does not take the events route's `min_usd` or `kind` and answers 400 `invalid_parameter` if they are sent. Included with the Build, Pro, Scale and Enterprise plans. A key on another plan receives 403 `forbidden` naming the dataset, the plans that include it and where to upgrade, and is not charged.\n\n**Buckets:** open on UTC epoch boundaries (`1d` is the UTC day). A page holds the buckets whose open is in `[start, end]`, oldest first, never past the bucket holding now, which is still filling, and never before the bucket of the first flow (2025-09-27 09:33 UTC). A page that starts with that partial first bucket says so in `meta.coverage_from` and `meta.notice`. Totals of the last 3 hours can still change as gaps in the live record are repaired.\n\n**Pagination:** pass `meta.next_cursor` back with the same `start`, `end` and `interval` until `meta.has_more` is `false`.\n\n**Credits:** 1 credit per 1,000 buckets returned, at least 1 per request.",
        "operationId": "getUsdcFlowVolume",
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "description": "Start of the window, inclusive. Defaults to 24 hours before `end`, so set it explicitly when paging: the default moves with the clock. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End of the window, inclusive. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "interval",
            "in": "query",
            "description": "Bucket width (default: 1h), on UTC epoch boundaries.",
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "30m",
                "1h",
                "4h",
                "1d"
              ],
              "default": "1h"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. It is the open of the previous page's last bucket.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Buckets per page (default: 100, max: 1,000). A larger value is read as 1,000.",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          }
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "USDC flow totals per bucket",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseUsdcFlowVolumeArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/freshness/{symbol}": {
      "get": {
        "tags": [
          "Hyperliquid - Convenience"
        ],
        "summary": "Get data freshness",
        "description": "Check when data was last updated for each data type for a specific coin.",
        "operationId": "getHyperliquidFreshness",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Coin symbol (e.g., BTC, ETH, SOL)",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "example": "BTC"
          }
        ],
        "responses": {
          "200": {
            "description": "Data freshness for the coin",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseCoinFreshness"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/summary/{symbol}": {
      "get": {
        "tags": [
          "Hyperliquid - Convenience"
        ],
        "summary": "Get market summary",
        "description": "Get a combined market summary including price, funding, OI, volume, and liquidation data in a single call.",
        "operationId": "getHyperliquidSummary",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Coin symbol (e.g., BTC, ETH, SOL)",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "example": "BTC"
          }
        ],
        "responses": {
          "200": {
            "description": "Market summary for the coin",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseCoinSummary"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/prices/{symbol}": {
      "get": {
        "tags": [
          "Hyperliquid - Convenience"
        ],
        "summary": "Get price history",
        "description": "Get mark/oracle price history. Lightweight projection of open interest data returning only price fields.",
        "operationId": "getHyperliquidPriceHistory",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Coin symbol (e.g., BTC, ETH, SOL)",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "example": "BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "interval",
            "in": "query",
            "description": "Aggregation interval",
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "30m",
                "1h",
                "4h",
                "1d"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 100, max: 1000)",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Price history data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponsePriceSnapshotArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/breadth/above-vwap/current": {
      "get": {
        "tags": [
          "Hyperliquid - Breadth"
        ],
        "summary": "Get current Hyperliquid breadth above session VWAP",
        "description": "Get the latest validated aggregate percentage of eligible Hyperliquid core perpetual instruments trading above their current UTC-session VWAP. Each instrument contributes one vote; VWAP uses candle quote volume divided by base volume and compares the last completed 1-minute candle close. The session resets at 00:00 UTC. Instruments with no session volume or a last completed candle older than 5 minutes are excluded. Coverage reflects per-instrument eligibility at the calculation cutoff. `value_pct` is null when no instruments are eligible, never 0. Core perpetual responses always return empty `namespaces` maps; this route is aggregate-only and does not expose per-symbol VWAPs. Validated snapshots are stored every minute when the calculation passes its invariants; failed or invalid calculations do not create a row. `calculated_at` is the UTC cutoff used to calculate the validated snapshot, not a source-freshness guarantee. Core history begins 2026-08-24; values before 2026-08-31 13:43 UTC were recomputed from canonical settled candles with a point-in-time registry, not synthesized.",
        "operationId": "getBreadthAboveVwapCurrent",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Current Hyperliquid breadth snapshot",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseBreadthSnapshot"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/breadth/above-vwap": {
      "get": {
        "tags": [
          "Hyperliquid - Breadth"
        ],
        "summary": "Get Hyperliquid breadth above session VWAP history",
        "description": "Get historical aggregate Hyperliquid core perpetual breadth snapshots. Each row reports the percentage of eligible instruments above their current UTC-session VWAP and its auditable counts. Eligibility excludes instruments with no session volume or a last completed candle older than 5 minutes. Coverage reflects per-instrument eligibility at the calculation cutoff. `start` and `end` are Unix timestamps in milliseconds. If omitted, `start` defaults independently to now minus 24 hours and `end` defaults to now; the start default is not derived from a supplied `end`. The optional `interval` downsamples by selecting the last stored snapshot in each bucket; percentages are never averaged because the denominator can vary. The optional `cursor` is an epoch-millisecond timestamp from `meta.next_cursor` and is exclusive. Validated snapshots are stored every minute when the calculation passes its invariants; failed or invalid calculations do not create a row. `calculated_at` is the UTC cutoff used to calculate each validated snapshot, not a source-freshness guarantee. Core history begins 2026-08-24; values before 2026-08-31 13:43 UTC were recomputed from canonical settled candles with a point-in-time registry, not synthesized. `counts.candidates` is the cumulative candidate universe considered at each cutoff, not a fixed inventory and not guaranteed to increase monotonically in historical data.",
        "operationId": "getBreadthAboveVwap",
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults independently to now minus 24 hours; this default is not derived from a supplied `end`. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of snapshots (default: 100, max: 1000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          },
          {
            "name": "interval",
            "in": "query",
            "description": "Optional aggregation interval. Downsampled intervals select the last stored snapshot in each bucket; percentages are never averaged.",
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "30m",
                "1h",
                "4h",
                "1d"
              ]
            }
          }
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Historical Hyperliquid breadth snapshots",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseBreadthSnapshotArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/breadth/above-ma/current": {
      "get": {
        "tags": [
          "Hyperliquid - Breadth"
        ],
        "summary": "Get current Hyperliquid breadth above the moving average",
        "description": "Get the newest one-minute reading of the share of Hyperliquid core perps above their n-day moving average, as of the newest settled minute, about 4 minutes before now. It takes `n` only and answers 400 `invalid_parameter` for any window parameter; use the history route for a window. `n` is required: 5, 20, 50 or 200. Method `ma-breadth/1`: every perp Hyperliquid core has listed is a candidate from its first one-minute candle on. A candidate's price is its last one-minute close before the reading; one with no close in the 24 hours before is excluded as `excluded_stale_price`, which is where a delisted perp is counted. Its average is the mean of its daily closes (each UTC day's last one-minute close, carried through a day without one) over the n UTC days before the reading's day; a younger perp is excluded as `excluded_short_history`. `value_pct` and `distance` are null when nothing is eligible, never 0. `coverage_ratio` depends on n and falls as perps delist: it is not a data-quality measure and is not comparable with breadth above session VWAP. Included with the Build, Pro, Scale and Enterprise plans. A key on another plan receives 403 `forbidden` naming the dataset, the plans that include it and where to upgrade, and is not charged.\n\n**Coverage:** each n starts on its own date: n = 5 from 2025-03-27, n = 20 from 2025-04-11, n = 50 from 2025-05-11 and n = 200 from 2025-10-08, each at 00:00 UTC. \n\n**Credits:** 1 credit per request.",
        "operationId": "getBreadthAboveMaCurrent",
        "parameters": [
          {
            "name": "n",
            "in": "query",
            "required": true,
            "description": "The moving average's length in days. Required; there is no default, because each length answers a different question and starts on its own date.",
            "schema": {
              "type": "integer",
              "enum": [
                5,
                20,
                50,
                200
              ]
            }
          }
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Current moving-average breadth reading",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseMaBreadthReading"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/breadth/above-ma": {
      "get": {
        "tags": [
          "Hyperliquid - Breadth"
        ],
        "summary": "Get Hyperliquid breadth above the moving average history",
        "description": "Get the share of Hyperliquid core perps above their n-day moving average, bucket by bucket, with the quartiles of how far above or below they are. `n` is required: 5, 20, 50 or 200. Method `ma-breadth/1`: every perp Hyperliquid core has listed is a candidate from its first one-minute candle on. A candidate's price is its last one-minute close before the reading; one with no close in the 24 hours before is excluded as `excluded_stale_price`, which is where a delisted perp is counted. Its average is the mean of its daily closes (each UTC day's last one-minute close, carried through a day without one) over the n UTC days before the reading's day; a younger perp is excluded as `excluded_short_history`. `value_pct` and `distance` are null when nothing is eligible, never 0. `coverage_ratio` depends on n and falls as perps delist: it is not a data-quality measure and is not comparable with breadth above session VWAP. Included with the Build, Pro, Scale and Enterprise plans. A key on another plan receives 403 `forbidden` naming the dataset, the plans that include it and where to upgrade, and is not charged.\n\n**Coverage:** each n starts on its own date: n = 5 from 2025-03-27, n = 20 from 2025-04-11, n = 50 from 2025-05-11 and n = 200 from 2025-10-08, each at 00:00 UTC. A window that ends before its n's start is empty with `meta.coverage_from` and `meta.notice`; a window that straddles it is served from it.\n\n**Buckets:** each bucket carries its last reading, as of its end (`calculated_at`); the bucket still forming carries the reading as of the newest settled minute, about 4 minutes before now. Percentages are never averaged across buckets. Buckets open on UTC epoch boundaries (`1d` is the UTC day).\n\n**Pagination:** a page holds up to `limit` buckets whose open is in `[start, end]`, oldest first. Set both `start` and `end` when paging, because the default window moves with the clock, and pass `meta.next_cursor` back with the other parameters unchanged until `meta.has_more` is `false`. The cursor is opaque and is not a `calculated_at` value.\n\n**Finality:** `is_final` is true once every candle the reading uses is final; such a reading changes only if those candles are rebuilt.\n\n**Credits:** 1 credit per request.",
        "operationId": "getBreadthAboveMa",
        "parameters": [
          {
            "name": "n",
            "in": "query",
            "required": true,
            "description": "The moving average's length in days. Required; there is no default, because each length answers a different question and starts on its own date.",
            "schema": {
              "type": "integer",
              "enum": [
                5,
                20,
                50,
                200
              ]
            }
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start of the window, inclusive. Defaults to 24 hours before `end`, so set it explicitly when paging: the default moves with the clock. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End of the window, inclusive. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "interval",
            "in": "query",
            "description": "Bucket width (default: 1m), on UTC epoch boundaries. Each bucket carries its last reading; percentages are never averaged.",
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "30m",
                "1h",
                "4h",
                "1d"
              ],
              "default": "1m"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Buckets per page (default: 100, max: 1,000). A larger value is read as 1,000.",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          }
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Moving-average breadth readings",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseMaBreadthReadingArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/lighter/instruments": {
      "get": {
        "tags": [
          "Lighter - Instruments"
        ],
        "summary": "List Lighter instruments",
        "description": "Get all available Lighter trading instruments with their specifications. Returns `LighterInstrument` objects which include fees, market IDs, and minimum order amounts.",
        "operationId": "listLighterInstruments",
        "responses": {
          "200": {
            "description": "List of Lighter instruments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseLighterInstrumentArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/lighter/instruments/{symbol}": {
      "get": {
        "tags": [
          "Lighter - Instruments"
        ],
        "summary": "Get Lighter instrument",
        "description": "Get details for a specific Lighter trading instrument. Returns a `LighterInstrument` object which includes fees, market ID, and minimum order amounts.",
        "operationId": "getLighterInstrument",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "ETH"
            },
            "description": "Trading pair symbol (e.g., ETH, BTC)",
            "example": "ETH"
          }
        ],
        "responses": {
          "200": {
            "description": "Lighter instrument details",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseLighterInstrument"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/lighter/orderbook/{symbol}": {
      "get": {
        "tags": [
          "Lighter - Order Book"
        ],
        "summary": "Get Lighter order book",
        "description": "Get the latest order book snapshot for a coin, or at a specific timestamp. Returns L2 depth with price, size, and order count at each level. Tick-level resolution.",
        "operationId": "getLighterOrderbook",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Trading pair symbol (e.g., BTC, ETH)",
            "schema": {
              "type": "string",
              "example": "ETH"
            },
            "example": "ETH"
          },
          {
            "name": "timestamp",
            "in": "query",
            "description": "Instant to read. If not provided, returns latest snapshot. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1704067200000
          },
          {
            "name": "depth",
            "in": "query",
            "description": "Requested price levels per side. The Lighter native L2 route includes all served levels.",
            "schema": {
              "type": "integer",
              "example": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Order book snapshot",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOrderBook"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/lighter/orderbook/{symbol}/history": {
      "get": {
        "tags": [
          "Lighter - Order Book"
        ],
        "summary": "Get Lighter order book history",
        "description": "Get historical order book snapshots within a time range with configurable resolution. Checkpoint history starts January 29, 2026; 30s/10s/1s start January 30, 2026. Use 'granularity' parameter to control data resolution.\n\n**Tick-Level Data:**\nWhen `granularity=tick`, the response format changes. Instead of returning snapshots in the `data` array, it returns:\n- `checkpoint`: Full orderbook state at the start of the time range\n- `deltas`: Array of incremental changes to apply to the checkpoint\n\nThis is the most efficient format for reconstructing high-frequency orderbook states. Use the SDK's `OrderBookReconstructor` class for client-side reconstruction.",
        "operationId": "getLighterOrderbookHistory",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "ETH"
            },
            "description": "Trading pair symbol (e.g., ETH, BTC)",
            "example": "ETH"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24h ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor_seq",
            "in": "query",
            "required": false,
            "description": "`granularity=tick` only: the `data.next_cursor_seq` of the previous page, sent with `cursor`. Many deltas share a millisecond, so tick paging needs both. Ignored at other granularities.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 100, max: 1000)",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          },
          {
            "name": "depth",
            "in": "query",
            "description": "Requested price levels per side. The Lighter native L2 route includes all served levels.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "granularity",
            "in": "query",
            "description": "Data resolution: checkpoint (1min, default), 30s, 10s, 1s, tick. Checkpoint history starts January 29, 2026; 30s/10s/1s start January 30, 2026. Billed per row returned (about 1 credit per 1,000 rows, minimum 1 credit per request). Higher resolutions return more rows. **Note:** When granularity=tick, the response format changes to return `checkpoint` and `deltas` instead of a `data` array. `60s` and `1m` are accepted for `checkpoint`, and `delta` and `deltas` for `tick`. An unrecognised value is currently served as `checkpoint`.",
            "schema": {
              "type": "string",
              "enum": [
                "checkpoint",
                "30s",
                "10s",
                "1s",
                "tick"
              ],
              "default": "checkpoint"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of order book snapshots",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOrderBookArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/lighter/trades/{symbol}": {
      "get": {
        "tags": [
          "Lighter - Trades"
        ],
        "summary": "Get Lighter trades",
        "description": "Get historical trades (fills) for a coin within a time range. Served fill history begins January 17, 2025; exact starts vary by market.\n\n**Pagination:** Use the `cursor` parameter with the value from the previous response's `next_cursor` for efficient pagination.",
        "operationId": "getLighterTrades",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "ETH"
            },
            "description": "Trading pair symbol (e.g., ETH, BTC)",
            "example": "ETH"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24h ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "side",
            "in": "query",
            "required": false,
            "description": "Keep one side of the tape: `buy` or `sell` (case-insensitive). Omit it for both. The filter runs before paging, so a full page still holds `limit` matching trades and the cursor pages the filtered tape. Any other value answers 400 `invalid_parameter` with `param` and `valid_values`.",
            "schema": {
              "type": "string",
              "enum": [
                "buy",
                "sell"
              ]
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of trades (default: 100, max: 50000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 50000,
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of trades with cursor for next page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseLighterTradeArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/lighter/trades/{symbol}/recent": {
      "get": {
        "tags": [
          "Lighter - Trades"
        ],
        "summary": "Get recent Lighter trades",
        "description": "Get the most recent trades for a coin, ordered by timestamp descending.",
        "operationId": "getLighterRecentTrades",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "ETH"
            },
            "description": "Trading pair symbol (e.g., ETH, BTC)",
            "example": "ETH"
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of trades (default: 100, max: 50000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 50000,
              "minimum": 1
            }
          },
          {
            "name": "side",
            "in": "query",
            "required": false,
            "description": "Keep one side of the tape: `buy` or `sell` (case-insensitive). Omit it for both. The filter runs before paging, so a full page still holds `limit` matching trades and the cursor pages the filtered tape. Any other value answers 400 `invalid_parameter` with `param` and `valid_values`.",
            "schema": {
              "type": "string",
              "enum": [
                "buy",
                "sell"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of recent trades",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseLighterTradeArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/lighter/candles/{symbol}": {
      "get": {
        "tags": [
          "Lighter - Candles"
        ],
        "summary": "Get Lighter OHLCV candles",
        "description": "Get historical OHLCV candle data. Supports multiple intervals from 1 minute to 1 week. Data available from August 2025.\n\n**Available Intervals:** 1m, 5m, 15m, 30m, 1h, 4h, 1d, 1w\n\n**Pagination:** Use the `cursor` parameter with the value from the previous response's `next_cursor` for efficient pagination.",
        "operationId": "getLighterCandles",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "ETH"
            },
            "description": "Trading pair symbol (e.g., ETH, BTC)",
            "example": "ETH"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24h ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "interval",
            "in": "query",
            "description": "Candle interval (default: 1h)",
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "30m",
                "1h",
                "4h",
                "1d",
                "1w"
              ],
              "default": "1h"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of candles (default: 100, max: 10000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 10000,
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of OHLCV candles with cursor for next page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseCandleArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/lighter/openinterest/{symbol}": {
      "get": {
        "tags": [
          "Lighter - Open Interest"
        ],
        "summary": "Get Lighter open interest history",
        "description": "Get historical open interest data. Data available from August 2025.",
        "operationId": "getLighterOpenInterest",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "ETH"
            },
            "description": "Trading pair symbol (e.g., ETH, BTC)",
            "example": "ETH"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24h ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 100, max: 1000)",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          },
          {
            "name": "interval",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "30m",
                "1h",
                "4h",
                "1d"
              ]
            },
            "description": "Aggregation interval. When omitted, returns raw ~10 sec updates."
          }
        ],
        "responses": {
          "200": {
            "description": "Open interest data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOpenInterestArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/lighter/openinterest/{symbol}/current": {
      "get": {
        "tags": [
          "Lighter - Open Interest"
        ],
        "summary": "Get current Lighter open interest",
        "description": "Get the latest open interest value.",
        "operationId": "getCurrentLighterOpenInterest",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "ETH"
            },
            "description": "Trading pair symbol (e.g., ETH, BTC)",
            "example": "ETH"
          }
        ],
        "responses": {
          "200": {
            "description": "Current open interest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOpenInterest"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/lighter/funding/{symbol}": {
      "get": {
        "tags": [
          "Lighter - Funding"
        ],
        "summary": "Get Lighter funding rate history",
        "description": "Get historical Lighter funding rates. `funding_rate` is a fractional, non-annualized decimal, not percentage points. Data available from August 2025.",
        "operationId": "getLighterFundingHistory",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "ETH"
            },
            "description": "Trading pair symbol (e.g., ETH, BTC)",
            "example": "ETH"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24h ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 100, max: 1000)",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          },
          {
            "name": "interval",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "30m",
                "1h",
                "4h",
                "1d"
              ]
            },
            "description": "Aggregation interval. When omitted, returns raw ~10 sec updates."
          }
        ],
        "responses": {
          "200": {
            "description": "Funding rate history",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseFundingRateArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/lighter/funding/{symbol}/current": {
      "get": {
        "tags": [
          "Lighter - Funding"
        ],
        "summary": "Get current Lighter funding rate",
        "description": "Get the latest Lighter funding rate for a coin. `funding_rate` is a fractional, non-annualized decimal, not percentage points.",
        "operationId": "getCurrentLighterFunding",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "ETH"
            },
            "description": "Trading pair symbol (e.g., ETH, BTC)",
            "example": "ETH"
          }
        ],
        "responses": {
          "200": {
            "description": "Current funding rate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseFundingRate"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/lighter/freshness/{symbol}": {
      "get": {
        "tags": [
          "Lighter - Convenience"
        ],
        "summary": "Get Lighter data freshness",
        "description": "Check when data was last updated for each data type for a specific Lighter coin.",
        "operationId": "getLighterFreshness",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Coin symbol (e.g., BTC, ETH)",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "example": "ETH"
          }
        ],
        "responses": {
          "200": {
            "description": "Data freshness for the coin",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseCoinFreshness"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/lighter/summary/{symbol}": {
      "get": {
        "tags": [
          "Lighter - Convenience"
        ],
        "summary": "Get Lighter market summary",
        "description": "Get a combined market summary including price, funding, and open interest in a single call.",
        "operationId": "getLighterSummary",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Coin symbol (e.g., BTC, ETH)",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "example": "ETH"
          }
        ],
        "responses": {
          "200": {
            "description": "Market summary for the coin",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseCoinSummary"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/lighter/prices/{symbol}": {
      "get": {
        "tags": [
          "Lighter - Convenience"
        ],
        "summary": "Get Lighter price history",
        "description": "Get mark/oracle price history. Lightweight projection of open interest data returning only price fields.",
        "operationId": "getLighterPriceHistory",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Coin symbol (e.g., BTC, ETH)",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "example": "ETH"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "interval",
            "in": "query",
            "description": "Aggregation interval",
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "30m",
                "1h",
                "4h",
                "1d"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 100, max: 1000)",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Price history data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponsePriceSnapshotArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/instruments": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Instruments"
        ],
        "summary": "List HIP-3 instruments",
        "description": "List currently available HIP-3 builder-deployed perpetuals with latest market data (mark price, open interest, mid price). Use this route for discovery before selecting a symbol-specific data route.",
        "operationId": "listHip3Instruments",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "List of HIP-3 instruments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseHip3InstrumentArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/breadth/above-vwap/current": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Breadth"
        ],
        "summary": "Get current HIP-3 breadth above session VWAP",
        "description": "Get the latest validated aggregate percentage of eligible HIP-3 instruments trading above their current UTC-session VWAP. Each instrument contributes one vote; VWAP uses candle quote volume divided by base volume and compares the last completed 1-minute candle close. The session resets at 00:00 UTC. Instruments with no session volume or a last completed candle older than 5 minutes are excluded, so coverage varies by market hours. `value_pct` is null when no instruments are eligible, never 0. HIP-3 `namespaces` maps are keyed by builder namespace when counts are nonzero; this route is aggregate-only and does not expose per-symbol VWAPs. Validated snapshots are stored every minute when the calculation passes its invariants; failed or invalid calculations do not create a row. `calculated_at` is the UTC cutoff used to calculate the validated snapshot, not a source-freshness guarantee. HIP-3 history begins 2026-08-28; there is no pre-launch history.",
        "operationId": "getHip3BreadthAboveVwapCurrent",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Current HIP-3 breadth snapshot",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseBreadthSnapshot"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/breadth/above-vwap": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Breadth"
        ],
        "summary": "Get HIP-3 breadth above session VWAP history",
        "description": "Get historical aggregate HIP-3 breadth snapshots. Each row reports the percentage of eligible instruments above their current UTC-session VWAP and its auditable counts. Eligibility excludes instruments with no session volume or a last completed candle older than 5 minutes, so coverage varies by market hours. `start` and `end` are Unix timestamps in milliseconds. If omitted, `start` defaults independently to now minus 24 hours and `end` defaults to now; the start default is not derived from a supplied `end`. The optional `interval` downsamples by selecting the last stored snapshot in each bucket; percentages are never averaged because the denominator can vary. The optional `cursor` is an epoch-millisecond timestamp from `meta.next_cursor` and is exclusive. Validated snapshots are stored every minute when the calculation passes its invariants; failed or invalid calculations do not create a row. `calculated_at` is the UTC cutoff used to calculate each validated snapshot, not a source-freshness guarantee. HIP-3 history begins 2026-08-28; there is no pre-launch history.",
        "operationId": "getHip3BreadthAboveVwap",
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults independently to now minus 24 hours; this default is not derived from a supplied `end`. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of snapshots (default: 100, max: 1000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          },
          {
            "name": "interval",
            "in": "query",
            "description": "Optional aggregation interval. Downsampled intervals select the last stored snapshot in each bucket; percentages are never averaged.",
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "30m",
                "1h",
                "4h",
                "1d"
              ]
            }
          }
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Historical HIP-3 breadth snapshots",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseBreadthSnapshotArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/breadth/above-ma/current": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Breadth"
        ],
        "summary": "Get current HIP-3 breadth above the moving average",
        "description": "Get the newest one-minute reading of the share of HIP-3 perps above their n-day moving average, as of the newest settled minute, about 4 minutes before now. It takes `n` only and answers 400 `invalid_parameter` for any window parameter; use the history route for a window. `n` is required: 5, 20, 50 or 200. Method `ma-breadth/1`: every perp HIP-3 builders have listed is a candidate from its first one-minute candle on. A candidate's price is its last one-minute close before the reading; one with no close in the 24 hours before is excluded as `excluded_stale_price`, which is where a delisted perp is counted. Its average is the mean of its daily closes (each UTC day's last one-minute close, carried through a day without one) over the n UTC days before the reading's day; a younger perp is excluded as `excluded_short_history`. `value_pct` and `distance` are null when nothing is eligible, never 0. `coverage_ratio` depends on n and falls as perps delist: it is not a data-quality measure and is not comparable with breadth above session VWAP. Included with the Build, Pro, Scale and Enterprise plans. A key on another plan receives 403 `forbidden` naming the dataset, the plans that include it and where to upgrade, and is not charged.\n\n**Coverage:** each n starts on its own date: n = 5 from 2025-12-27, n = 20 from 2026-01-11, n = 50 from 2026-02-10 and n = 200 from 2026-07-10, each at 00:00 UTC. \n\n**Credits:** 1 credit per request.",
        "operationId": "getHip3BreadthAboveMaCurrent",
        "parameters": [
          {
            "name": "n",
            "in": "query",
            "required": true,
            "description": "The moving average's length in days. Required; there is no default, because each length answers a different question and starts on its own date.",
            "schema": {
              "type": "integer",
              "enum": [
                5,
                20,
                50,
                200
              ]
            }
          }
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Current moving-average breadth reading",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseMaBreadthReading"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/breadth/above-ma": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Breadth"
        ],
        "summary": "Get HIP-3 breadth above the moving average history",
        "description": "Get the share of HIP-3 perps above their n-day moving average, bucket by bucket, with the quartiles of how far above or below they are. `n` is required: 5, 20, 50 or 200. Method `ma-breadth/1`: every perp HIP-3 builders have listed is a candidate from its first one-minute candle on. A candidate's price is its last one-minute close before the reading; one with no close in the 24 hours before is excluded as `excluded_stale_price`, which is where a delisted perp is counted. Its average is the mean of its daily closes (each UTC day's last one-minute close, carried through a day without one) over the n UTC days before the reading's day; a younger perp is excluded as `excluded_short_history`. `value_pct` and `distance` are null when nothing is eligible, never 0. `coverage_ratio` depends on n and falls as perps delist: it is not a data-quality measure and is not comparable with breadth above session VWAP. Included with the Build, Pro, Scale and Enterprise plans. A key on another plan receives 403 `forbidden` naming the dataset, the plans that include it and where to upgrade, and is not charged.\n\n**Coverage:** each n starts on its own date: n = 5 from 2025-12-27, n = 20 from 2026-01-11, n = 50 from 2026-02-10 and n = 200 from 2026-07-10, each at 00:00 UTC. A window that ends before its n's start is empty with `meta.coverage_from` and `meta.notice`; a window that straddles it is served from it.\n\n**Buckets:** each bucket carries its last reading, as of its end (`calculated_at`); the bucket still forming carries the reading as of the newest settled minute, about 4 minutes before now. Percentages are never averaged across buckets. Buckets open on UTC epoch boundaries (`1d` is the UTC day).\n\n**Pagination:** a page holds up to `limit` buckets whose open is in `[start, end]`, oldest first. Set both `start` and `end` when paging, because the default window moves with the clock, and pass `meta.next_cursor` back with the other parameters unchanged until `meta.has_more` is `false`. The cursor is opaque and is not a `calculated_at` value.\n\n**Finality:** `is_final` is true once every candle the reading uses is final; such a reading changes only if those candles are rebuilt.\n\n**Credits:** 1 credit per request.",
        "operationId": "getHip3BreadthAboveMa",
        "parameters": [
          {
            "name": "n",
            "in": "query",
            "required": true,
            "description": "The moving average's length in days. Required; there is no default, because each length answers a different question and starts on its own date.",
            "schema": {
              "type": "integer",
              "enum": [
                5,
                20,
                50,
                200
              ]
            }
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start of the window, inclusive. Defaults to 24 hours before `end`, so set it explicitly when paging: the default moves with the clock. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End of the window, inclusive. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "interval",
            "in": "query",
            "description": "Bucket width (default: 1m), on UTC epoch boundaries. Each bucket carries its last reading; percentages are never averaged.",
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "30m",
                "1h",
                "4h",
                "1d"
              ],
              "default": "1m"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Buckets per page (default: 100, max: 1,000). A larger value is read as 1,000.",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          }
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Moving-average breadth readings",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseMaBreadthReadingArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/instruments/{symbol}": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Instruments"
        ],
        "summary": "Get HIP-3 instrument",
        "description": "Get a specific HIP-3 instrument by coin name with latest market data. Coin names are case-sensitive (e.g., km:US500, xyz:XYZ100).",
        "operationId": "getHip3Instrument",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "HIP-3 symbol name (e.g., km:US500, xyz:XYZ100). Case-sensitive.",
            "example": "km:US500"
          }
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "HIP-3 instrument details",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseHip3Instrument"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/orderbook/{symbol}": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Order Book"
        ],
        "summary": "Get HIP-3 native L2 order book (20 levels)",
        "description": "Get the latest venue-native HIP-3 L2 order book snapshot, or a snapshot at a specific timestamp. This native route is capped at the 20 price levels per side provided by Hyperliquid source snapshots. Use `/v1/hyperliquid/hip3/orderbook/{symbol}/l2` for full-depth aggregated L2 derived from L4. Coverage is symbol-specific; inspect `/v1/symbols` `coverage_by_type.orderbook` before relying on historical availability.",
        "operationId": "getHip3Orderbook",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-3 symbol name (e.g., xyz:XYZ100)",
            "schema": {
              "type": "string",
              "example": "xyz:XYZ100"
            },
            "example": "km:US500"
          },
          {
            "name": "timestamp",
            "in": "query",
            "description": "Instant to read. If not provided, returns latest snapshot. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1739750400000
          },
          {
            "name": "depth",
            "in": "query",
            "description": "Requested price levels per side for this native venue snapshot. Hyperliquid native L2 data is capped at 20 levels per side; values above 20 do not return full depth on this route. Use the /l2 routes for full-depth aggregated L2.",
            "schema": {
              "type": "integer",
              "example": 20,
              "maximum": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Order book snapshot",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOrderBook"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/orderbook/{symbol}/history": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Order Book"
        ],
        "summary": "Get HIP-3 native L2 order book history (20 levels)",
        "description": "Get historical venue-native HIP-3 L2 order book snapshots within a time range. Historical windows use `start` and `end` Unix-millisecond query parameters. This native route is capped at 20 price levels per side; use `/v1/hyperliquid/hip3/orderbook/{symbol}/l2/history` for full-depth checkpoint history derived from L4.",
        "operationId": "getHip3OrderbookHistory",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "xyz:XYZ100"
            },
            "description": "Trading pair symbol (e.g., km:US500, xyz:XYZ100). HIP-3 symbols are case-sensitive.",
            "example": "km:US500"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24h ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 100, max: 1000)",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          },
          {
            "name": "depth",
            "in": "query",
            "description": "Requested price levels per side for this native venue snapshot. Hyperliquid native L2 data is capped at 20 levels per side; values above 20 do not return full depth on this route. Use the /l2 routes for full-depth aggregated L2.",
            "schema": {
              "type": "integer",
              "maximum": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of order book snapshots",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOrderBookArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/orderbook/{symbol}/l2": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Full-Depth L2 Order Book"
        ],
        "summary": "Get HIP-3 full-depth L2 order book",
        "description": "Get a full-depth aggregated L2 order book snapshot derived from L4 data for HIP-3. Use this route when you need full-depth aggregated L2 from March 11, 2026 01:03 UTC onward. The native /orderbook route remains capped at 20 venue-native levels.",
        "operationId": "getHip3FullDepthL2Orderbook",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-3 symbol (case-sensitive, e.g., hyna:BTC, km:US500)",
            "schema": {
              "type": "string",
              "example": "km:US500"
            },
            "example": "km:US500"
          },
          {
            "name": "timestamp",
            "in": "query",
            "description": "Instant to read. If not provided, returns the latest full-depth L2 snapshot. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767225600000
          },
          {
            "name": "depth",
            "in": "query",
            "description": "Requested aggregated L2 levels per side. This dedicated route returns all available aggregated levels for the selected symbol and checkpoint.",
            "schema": {
              "type": "integer",
              "example": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Full-depth L2 order book snapshot",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseFullDepthL2OrderBook"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/orderbook/{symbol}/l2/history": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Full-Depth L2 Order Book"
        ],
        "summary": "Get HIP-3 full-depth L2 order book history",
        "description": "Get paginated full-depth L2 checkpoint snapshots derived from L4 data for HIP-3 from March 11, 2026 01:03 UTC onward. The route returns full checkpoint depth; it does not currently accept a per-request depth override.",
        "operationId": "getHip3FullDepthL2History",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-3 symbol (case-sensitive, e.g., hyna:BTC, km:US500)",
            "schema": {
              "type": "string",
              "example": "km:US500"
            },
            "example": "km:US500"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24h ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767225600000
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767229200000
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of checkpoint snapshots (default: 100, max: 100).",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 100,
              "minimum": 1
            }
          },
          {
            "name": "depth",
            "in": "query",
            "required": false,
            "description": "Price levels per side in each snapshot, capped by the plan's order book depth. Omit it for the plan's depth. `bid_levels` and `ask_levels` still report the book's own level counts.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "example": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Full-depth L2 checkpoint snapshots",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseFullDepthL2OrderBookArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/orderbook/{symbol}/l2/diffs": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Full-Depth L2 Order Book"
        ],
        "summary": "Get HIP-3 full-depth L2 order book diffs",
        "description": "Get tick-level aggregate L2 diffs derived from L4 deltas for HIP-3.",
        "operationId": "getHip3FullDepthL2Diffs",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-3 symbol (case-sensitive, e.g., hyna:BTC, km:US500)",
            "schema": {
              "type": "string",
              "example": "km:US500"
            },
            "example": "km:US500"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24h ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767225600000
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767229200000
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of diff events (default: 100, max: 1000)",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Full-depth L2 diff events",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseL2OrderBookDiffArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/trades/{symbol}": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Trades"
        ],
        "summary": "Get HIP-3 trades",
        "description": "Get historical trades (fills) for a HIP-3 Builder Perps coin within a time range. Coverage is symbol-specific; inspect `/v1/symbols` `coverage_by_type.trades` before choosing a time range.\n\n**Pagination:** Use the `cursor` parameter with the value from the previous response's `next_cursor` for efficient pagination.",
        "operationId": "getHip3Trades",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "xyz:XYZ100"
            },
            "description": "Trading pair symbol (e.g., km:US500, xyz:XYZ100). HIP-3 symbols are case-sensitive.",
            "example": "km:US500"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24h ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "side",
            "in": "query",
            "required": false,
            "description": "Keep one side of the tape: `buy` or `sell` (case-insensitive). Omit it for both. The filter runs before paging, so a full page still holds `limit` matching trades and the cursor pages the filtered tape. Any other value answers 400 `invalid_parameter` with `param` and `valid_values`.",
            "schema": {
              "type": "string",
              "enum": [
                "buy",
                "sell"
              ]
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of trades (default: 100, max: 50000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 50000,
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of trades with cursor for next page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseTradeArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/trades/{symbol}/recent": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Trades"
        ],
        "summary": "Get recent HIP-3 trades",
        "description": "Get the most recent trades for a HIP-3 Builder Perps coin, ordered by timestamp descending. Coverage is symbol-specific; inspect `/v1/symbols` `coverage_by_type.trades` before relying on availability.",
        "operationId": "getHip3RecentTrades",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "xyz:XYZ100"
            },
            "description": "Trading pair symbol (e.g., km:US500, xyz:XYZ100). HIP-3 symbols are case-sensitive.",
            "example": "km:US500"
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of trades (default: 100, max: 50000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 50000,
              "minimum": 1
            }
          },
          {
            "name": "side",
            "in": "query",
            "required": false,
            "description": "Keep one side of the tape: `buy` or `sell` (case-insensitive). Omit it for both. The filter runs before paging, so a full page still holds `limit` matching trades and the cursor pages the filtered tape. Any other value answers 400 `invalid_parameter` with `param` and `valid_values`.",
            "schema": {
              "type": "string",
              "enum": [
                "buy",
                "sell"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of recent trades",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseTradeArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/candles/{symbol}": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Candles"
        ],
        "summary": "Get HIP-3 OHLCV candles",
        "description": "Get historical OHLCV candle data aggregated from HIP-3 trades. Coverage is symbol-specific; verify the selected market before choosing a time range.\n\n**Available Intervals:** 1m, 5m, 15m, 30m, 1h, 4h, 1d, 1w\n\n**Pagination:** Use the `cursor` parameter with the value from the previous response's `next_cursor` for efficient pagination.",
        "operationId": "getHip3Candles",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "km:US500"
            },
            "description": "Trading pair symbol (e.g., km:US500, xyz:XYZ100). HIP-3 symbols are case-sensitive.",
            "example": "km:US500"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24h ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "interval",
            "in": "query",
            "description": "Candle interval (default: 1h)",
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "30m",
                "1h",
                "4h",
                "1d",
                "1w"
              ],
              "default": "1h"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of candles (default: 100, max: 10000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 10000,
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of OHLCV candles with cursor for next page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseCandleArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/openinterest/{symbol}": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Open Interest"
        ],
        "summary": "Get HIP-3 open interest history",
        "description": "Get historical open interest data for a HIP-3 Builder Perps coin. Coverage is symbol-specific; inspect `/v1/symbols` `coverage_by_type.oi` before choosing a time range.",
        "operationId": "getHip3OpenInterest",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "xyz:XYZ100"
            },
            "description": "Trading pair symbol (e.g., km:US500, xyz:XYZ100). HIP-3 symbols are case-sensitive.",
            "example": "km:US500"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24h ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 100, max: 1000)",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          },
          {
            "name": "interval",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "30m",
                "1h",
                "4h",
                "1d"
              ]
            },
            "description": "Aggregation interval. When omitted, returns raw ~10 sec updates."
          }
        ],
        "responses": {
          "200": {
            "description": "Open interest data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOpenInterestArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/openinterest/{symbol}/current": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Open Interest"
        ],
        "summary": "Get current HIP-3 open interest",
        "description": "Get the latest open interest value for a HIP-3 Builder Perps coin. Availability is symbol-specific; inspect `/v1/symbols` `coverage_by_type.oi` before relying on the route.",
        "operationId": "getCurrentHip3OpenInterest",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "xyz:XYZ100"
            },
            "description": "Trading pair symbol (e.g., km:US500, xyz:XYZ100). HIP-3 symbols are case-sensitive.",
            "example": "km:US500"
          }
        ],
        "responses": {
          "200": {
            "description": "Current open interest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOpenInterest"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/funding/{symbol}": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Funding"
        ],
        "summary": "Get HIP-3 funding rate history",
        "description": "Get historical funding rates for a HIP-3 Builder Perps coin. Coverage is symbol-specific; inspect `/v1/symbols` `coverage_by_type.funding` before choosing a time range.",
        "operationId": "getHip3FundingHistory",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "xyz:XYZ100"
            },
            "description": "Trading pair symbol (e.g., km:US500, xyz:XYZ100). HIP-3 symbols are case-sensitive.",
            "example": "km:US500"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24h ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 100, max: 1000)",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          },
          {
            "name": "interval",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "30m",
                "1h",
                "4h",
                "1d"
              ]
            },
            "description": "Aggregation interval. When omitted, returns raw ~10 sec updates."
          }
        ],
        "responses": {
          "200": {
            "description": "Funding rate history",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseFundingRateArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/funding/{symbol}/current": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Funding"
        ],
        "summary": "Get current HIP-3 funding rate",
        "description": "Get the latest funding rate for a HIP-3 Builder Perps coin. Availability is symbol-specific; inspect `/v1/symbols` `coverage_by_type.funding` before relying on the route.",
        "operationId": "getCurrentHip3Funding",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "xyz:XYZ100"
            },
            "description": "Trading pair symbol (e.g., km:US500, xyz:XYZ100). HIP-3 symbols are case-sensitive.",
            "example": "km:US500"
          }
        ],
        "responses": {
          "200": {
            "description": "Current funding rate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseFundingRate"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/liquidations/{symbol}": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Liquidations"
        ],
        "summary": "Get HIP-3 liquidation events",
        "description": "Get liquidation-related fills for a HIP-3 symbol. Results can include liquidated-user rows plus counterparty/open-side rows. Coverage is symbol-specific; verify the selected market before choosing a time range.",
        "operationId": "getHip3Liquidations",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-3 trading pair symbol (e.g., hyna:BTC, km:US500). Case-sensitive.",
            "schema": {
              "type": "string",
              "example": "hyna:BTC"
            },
            "example": "hyna:BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24 hours ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1769922000000
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum records to return (default: 100, max: 1000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000,
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Liquidation events",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseLiquidationArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/liquidations/{symbol}/volume": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Liquidations"
        ],
        "summary": "Get HIP-3 aggregated liquidation volume",
        "description": "Get aggregated liquidation-related volume in time-bucketed intervals for a HIP-3 symbol. total_* covers all liquidation rows; long_* and short_* are directional-family subtotals and may not sum to total when upstream emits unclassified directions. Coverage is symbol-specific; verify the selected market before choosing a time range.",
        "operationId": "getHip3LiquidationVolume",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-3 trading pair symbol (e.g., hyna:BTC, km:US500). Case-sensitive.",
            "schema": {
              "type": "string",
              "example": "hyna:BTC"
            },
            "example": "hyna:BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24 hours ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1769922000000
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum buckets to return (default: 100, max: 1000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000,
              "minimum": 1
            }
          },
          {
            "name": "interval",
            "in": "query",
            "description": "Aggregation interval",
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "30m",
                "1h",
                "4h",
                "1d"
              ],
              "default": "1h"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Aggregated liquidation volume data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseLiquidationVolumeArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/freshness/{symbol}": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Convenience"
        ],
        "summary": "Get HIP-3 data freshness",
        "description": "Check when data was last updated for each data type for a specific HIP-3 coin. Coin names are case-sensitive.",
        "operationId": "getHip3Freshness",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-3 symbol (case-sensitive, e.g., km:US500)",
            "schema": {
              "type": "string",
              "example": "km:US500"
            },
            "example": "km:US500"
          }
        ],
        "responses": {
          "200": {
            "description": "Data freshness for the coin",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseCoinFreshness"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/summary/{symbol}": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Convenience"
        ],
        "summary": "Get HIP-3 market summary",
        "description": "Get a combined market summary including price, mid price, funding, and open interest in a single call.",
        "operationId": "getHip3Summary",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-3 symbol (case-sensitive, e.g., km:US500)",
            "schema": {
              "type": "string",
              "example": "km:US500"
            },
            "example": "km:US500"
          }
        ],
        "responses": {
          "200": {
            "description": "Market summary for the coin",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseCoinSummary"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/prices/{symbol}": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Convenience"
        ],
        "summary": "Get HIP-3 price history",
        "description": "Get mark/oracle/mid price history. Lightweight projection of open interest data. Coin names are case-sensitive.",
        "operationId": "getHip3PriceHistory",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-3 symbol (case-sensitive, e.g., km:US500)",
            "schema": {
              "type": "string",
              "example": "km:US500"
            },
            "example": "km:US500"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "interval",
            "in": "query",
            "description": "Aggregation interval",
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "30m",
                "1h",
                "4h",
                "1d"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 100, max: 1000)",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Price history data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponsePriceSnapshotArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/data-quality/status": {
      "get": {
        "tags": [
          "Data Quality"
        ],
        "summary": "Get system status",
        "description": "Get overall system health status including per-exchange and per-data-type status. Without `0xArchive-Version` the body is the route's own object plus `success` and `meta.request_id`; with `0xArchive-Version: 2026-10-01` it is the standard envelope with that object under `data`.",
        "operationId": "getDataQualityStatus",
        "responses": {
          "200": {
            "description": "System status",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "title": "Default shape",
                      "description": "Without `0xArchive-Version`: the route's own object plus `success` and `meta.request_id`.",
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/StatusResponse"
                        },
                        {
                          "$ref": "#/components/schemas/OutlierEnvelopeKeys"
                        }
                      ]
                    },
                    {
                      "title": "Version 2026-10-01",
                      "description": "With `0xArchive-Version: 2026-10-01`: the standard envelope, with the route's own object under `data`.",
                      "type": "object",
                      "required": [
                        "success",
                        "data",
                        "meta"
                      ],
                      "properties": {
                        "success": {
                          "type": "boolean",
                          "enum": [
                            true
                          ]
                        },
                        "data": {
                          "$ref": "#/components/schemas/StatusResponse"
                        },
                        "meta": {
                          "$ref": "#/components/schemas/ResponseMeta"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/data-quality/coverage": {
      "get": {
        "tags": [
          "Data Quality"
        ],
        "summary": "Get coverage summary",
        "description": "Get data coverage summary for supported venue families, including earliest/latest data, record counts, and completeness. Note: May take 30-60 seconds on first request (results are cached server-side for 5 minutes). Without `0xArchive-Version` the body is the route's own object plus `success` and `meta.request_id`; with `0xArchive-Version: 2026-10-01` it is the standard envelope with that object under `data`.",
        "operationId": "getDataQualityCoverage",
        "responses": {
          "200": {
            "description": "Coverage summary",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "title": "Default shape",
                      "description": "Without `0xArchive-Version`: the route's own object plus `success` and `meta.request_id`.",
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CoverageResponse"
                        },
                        {
                          "$ref": "#/components/schemas/OutlierEnvelopeKeys"
                        }
                      ]
                    },
                    {
                      "title": "Version 2026-10-01",
                      "description": "With `0xArchive-Version: 2026-10-01`: the standard envelope, with the route's own object under `data`.",
                      "type": "object",
                      "required": [
                        "success",
                        "data",
                        "meta"
                      ],
                      "properties": {
                        "success": {
                          "type": "boolean",
                          "enum": [
                            true
                          ]
                        },
                        "data": {
                          "$ref": "#/components/schemas/CoverageResponse"
                        },
                        "meta": {
                          "$ref": "#/components/schemas/ResponseMeta"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/data-quality/coverage/{exchange}": {
      "get": {
        "tags": [
          "Data Quality"
        ],
        "summary": "Get exchange coverage",
        "description": "Get data coverage for a specific exchange. Note: May take 30-60 seconds on first request (results are cached server-side for 5 minutes). Without `0xArchive-Version` the body is the route's own object plus `success` and `meta.request_id`; with `0xArchive-Version: 2026-10-01` it is the standard envelope with that object under `data`.",
        "operationId": "getExchangeCoverage",
        "parameters": [
          {
            "name": "exchange",
            "in": "path",
            "required": true,
            "description": "Exchange name",
            "schema": {
              "type": "string",
              "enum": [
                "hyperliquid",
                "lighter",
                "hip3",
                "spot",
                "hip4"
              ],
              "example": "hyperliquid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Exchange coverage",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "title": "Default shape",
                      "description": "Without `0xArchive-Version`: the route's own object plus `success` and `meta.request_id`.",
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ExchangeCoverageResponse"
                        },
                        {
                          "$ref": "#/components/schemas/OutlierEnvelopeKeys"
                        }
                      ]
                    },
                    {
                      "title": "Version 2026-10-01",
                      "description": "With `0xArchive-Version: 2026-10-01`: the standard envelope, with the route's own object under `data`.",
                      "type": "object",
                      "required": [
                        "success",
                        "data",
                        "meta"
                      ],
                      "properties": {
                        "success": {
                          "type": "boolean",
                          "enum": [
                            true
                          ]
                        },
                        "data": {
                          "$ref": "#/components/schemas/ExchangeCoverageResponse"
                        },
                        "meta": {
                          "$ref": "#/components/schemas/ResponseMeta"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/data-quality/coverage/{exchange}/{symbol}": {
      "get": {
        "tags": [
          "Data Quality"
        ],
        "summary": "Get symbol coverage with gaps",
        "description": "Get data coverage for a specific symbol on an exchange, including gap detection showing periods where data may be missing. Supports optional `from`/`to` query params (Unix ms) to bound the gap detection window (default: last 30 days). Returns empirical data cadence when sufficient data is available. Historical coverage uses hour-level granularity. Note: May take 30-60 seconds on first request (gap detection results are cached server-side for 1 hour). Without `0xArchive-Version` the body is the route's own object plus `success` and `meta.request_id`; with `0xArchive-Version: 2026-10-01` it is the standard envelope with that object under `data`.",
        "operationId": "getSymbolCoverage",
        "parameters": [
          {
            "name": "exchange",
            "in": "path",
            "required": true,
            "description": "Exchange name",
            "schema": {
              "type": "string",
              "enum": [
                "hyperliquid",
                "lighter",
                "hip3",
                "spot",
                "hip4"
              ],
              "example": "hyperliquid"
            }
          },
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Symbol name (e.g., BTC, ETH)",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "example": "BTC"
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Start of gap detection window (Unix milliseconds). Default: now - 30 days.",
            "schema": {
              "type": "integer",
              "format": "int64",
              "example": 1704067200000
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "End of gap detection window (Unix milliseconds). Default: now.",
            "schema": {
              "type": "integer",
              "format": "int64",
              "example": 1706745600000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Symbol coverage with gaps",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "title": "Default shape",
                      "description": "Without `0xArchive-Version`: the route's own object plus `success` and `meta.request_id`.",
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SymbolCoverageResponse"
                        },
                        {
                          "$ref": "#/components/schemas/OutlierEnvelopeKeys"
                        }
                      ]
                    },
                    {
                      "title": "Version 2026-10-01",
                      "description": "With `0xArchive-Version: 2026-10-01`: the standard envelope, with the route's own object under `data`.",
                      "type": "object",
                      "required": [
                        "success",
                        "data",
                        "meta"
                      ],
                      "properties": {
                        "success": {
                          "type": "boolean",
                          "enum": [
                            true
                          ]
                        },
                        "data": {
                          "$ref": "#/components/schemas/SymbolCoverageResponse"
                        },
                        "meta": {
                          "$ref": "#/components/schemas/ResponseMeta"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/data-quality/incidents": {
      "get": {
        "tags": [
          "Data Quality"
        ],
        "summary": "List incidents",
        "description": "List data quality incidents with filtering and pagination. Without `0xArchive-Version` the body is the route's own object plus `success` and `meta.request_id`; with `0xArchive-Version: 2026-10-01` it is the standard envelope with that object under `data`.",
        "operationId": "listIncidents",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "description": "Filter by incident status",
            "schema": {
              "type": "string",
              "enum": [
                "open",
                "investigating",
                "identified",
                "monitoring",
                "resolved"
              ]
            }
          },
          {
            "name": "exchange",
            "in": "query",
            "description": "Filter by exchange",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "since",
            "in": "query",
            "description": "Only show incidents starting after this timestamp (Unix ms)",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum results per page (default: 20, max: 100)",
            "schema": {
              "type": "integer",
              "default": 20,
              "maximum": 100
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Pagination offset",
            "schema": {
              "type": "integer",
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of incidents",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "title": "Default shape",
                      "description": "Without `0xArchive-Version`: the route's own object plus `success` and `meta.request_id`.",
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/IncidentsResponse"
                        },
                        {
                          "$ref": "#/components/schemas/OutlierEnvelopeKeys"
                        }
                      ]
                    },
                    {
                      "title": "Version 2026-10-01",
                      "description": "With `0xArchive-Version: 2026-10-01`: the standard envelope, with the route's own object under `data`.",
                      "type": "object",
                      "required": [
                        "success",
                        "data",
                        "meta"
                      ],
                      "properties": {
                        "success": {
                          "type": "boolean",
                          "enum": [
                            true
                          ]
                        },
                        "data": {
                          "$ref": "#/components/schemas/IncidentsResponse"
                        },
                        "meta": {
                          "$ref": "#/components/schemas/ResponseMeta"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/data-quality/incidents/{id}": {
      "get": {
        "tags": [
          "Data Quality"
        ],
        "summary": "Get incident",
        "description": "Get a specific incident by ID. Without `0xArchive-Version` the body is the route's own object plus `success` and `meta.request_id`; with `0xArchive-Version: 2026-10-01` it is the standard envelope with that object under `data`.",
        "operationId": "getIncident",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Incident ID",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Incident details",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "title": "Default shape",
                      "description": "Without `0xArchive-Version`: the route's own object plus `success` and `meta.request_id`.",
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Incident"
                        },
                        {
                          "$ref": "#/components/schemas/OutlierEnvelopeKeys"
                        }
                      ]
                    },
                    {
                      "title": "Version 2026-10-01",
                      "description": "With `0xArchive-Version: 2026-10-01`: the standard envelope, with the route's own object under `data`.",
                      "type": "object",
                      "required": [
                        "success",
                        "data",
                        "meta"
                      ],
                      "properties": {
                        "success": {
                          "type": "boolean",
                          "enum": [
                            true
                          ]
                        },
                        "data": {
                          "$ref": "#/components/schemas/Incident"
                        },
                        "meta": {
                          "$ref": "#/components/schemas/ResponseMeta"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/data-quality/latency": {
      "get": {
        "tags": [
          "Data Quality"
        ],
        "summary": "Get latency metrics",
        "description": "Get current latency metrics for supported venue families including WebSocket, REST API, and data freshness. Without `0xArchive-Version` the body is the route's own object plus `success` and `meta.request_id`; with `0xArchive-Version: 2026-10-01` it is the standard envelope with that object under `data`.",
        "operationId": "getLatencyMetrics",
        "responses": {
          "200": {
            "description": "Latency metrics",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "title": "Default shape",
                      "description": "Without `0xArchive-Version`: the route's own object plus `success` and `meta.request_id`.",
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/LatencyResponse"
                        },
                        {
                          "$ref": "#/components/schemas/OutlierEnvelopeKeys"
                        }
                      ]
                    },
                    {
                      "title": "Version 2026-10-01",
                      "description": "With `0xArchive-Version: 2026-10-01`: the standard envelope, with the route's own object under `data`.",
                      "type": "object",
                      "required": [
                        "success",
                        "data",
                        "meta"
                      ],
                      "properties": {
                        "success": {
                          "type": "boolean",
                          "enum": [
                            true
                          ]
                        },
                        "data": {
                          "$ref": "#/components/schemas/LatencyResponse"
                        },
                        "meta": {
                          "$ref": "#/components/schemas/ResponseMeta"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/data-quality/sla": {
      "get": {
        "tags": [
          "Data Quality"
        ],
        "summary": "Get SLA metrics",
        "description": "Get SLA compliance metrics for a specific month including uptime, completeness, and latency targets vs actuals. Without `0xArchive-Version` the body is the route's own object plus `success` and `meta.request_id`; with `0xArchive-Version: 2026-10-01` it is the standard envelope with that object under `data`.",
        "operationId": "getSlaMetrics",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "description": "Year (defaults to current year)",
            "schema": {
              "type": "integer",
              "example": 2026
            }
          },
          {
            "name": "month",
            "in": "query",
            "description": "Month 1-12 (defaults to current month)",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 12,
              "example": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "SLA metrics",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "title": "Default shape",
                      "description": "Without `0xArchive-Version`: the route's own object plus `success` and `meta.request_id`.",
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SlaResponse"
                        },
                        {
                          "$ref": "#/components/schemas/OutlierEnvelopeKeys"
                        }
                      ]
                    },
                    {
                      "title": "Version 2026-10-01",
                      "description": "With `0xArchive-Version: 2026-10-01`: the standard envelope, with the route's own object under `data`.",
                      "type": "object",
                      "required": [
                        "success",
                        "data",
                        "meta"
                      ],
                      "properties": {
                        "success": {
                          "type": "boolean",
                          "enum": [
                            true
                          ]
                        },
                        "data": {
                          "$ref": "#/components/schemas/SlaResponse"
                        },
                        "meta": {
                          "$ref": "#/components/schemas/ResponseMeta"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/auth/web3/challenge": {
      "post": {
        "tags": [
          "Web3 Authentication"
        ],
        "summary": "Get SIWE challenge message",
        "description": "Get a single-use SIWE (Sign-In with Ethereum) challenge message for existing-wallet sign-in, wallet key management, or paid x402 access. The nonce expires after 10 minutes. A challenge does not create a Free account.",
        "operationId": "web3Challenge",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Web3ChallengeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "SIWE challenge message",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Web3ChallengeResponse"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/web3/signup": {
      "post": {
        "tags": [
          "Web3 Authentication"
        ],
        "summary": "Wallet free signup retired",
        "description": "Compatibility tombstone for the retired wallet-only Free signup flow. This endpoint never creates an account or API key and always returns HTTP 410 with `wallet_free_signup_retired`. Create a standard Free account at https://0xarchive.io/signup, or use `/v1/web3/subscribe` for paid wallet access.",
        "operationId": "web3Signup",
        "security": [],
        "responses": {
          "410": {
            "description": "Wallet-only Free signup is retired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 410,
                  "error_code": "wallet_free_signup_retired",
                  "error": "Free wallet signup has been retired. Use standard signup for Free access or purchase paid wallet access.",
                  "request_id": "00000000-0000-0000-0000-000000000000"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          }
        },
        "deprecated": true
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/web3/keys": {
      "post": {
        "tags": [
          "Web3 Authentication"
        ],
        "summary": "List API keys for wallet",
        "description": "List all API keys belonging to the authenticated wallet. Requires a fresh SIWE challenge signed with `personal_sign` (EIP-191).",
        "operationId": "web3ListKeys",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Web3KeysRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "List of API keys",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Web3KeysResponse"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/web3/keys/revoke": {
      "post": {
        "tags": [
          "Web3 Authentication"
        ],
        "summary": "Revoke an API key",
        "description": "Revoke a specific API key by its ID. Requires a fresh SIWE challenge signed with `personal_sign` (EIP-191).",
        "operationId": "web3RevokeKey",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Web3RevokeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Key revoked successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Web3RevokeResponse"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/web3/subscribe": {
      "post": {
        "tags": [
          "Web3 Authentication"
        ],
        "summary": "Start Build or Pro access via x402 USDC payment",
        "description": "x402-protected endpoint for purchasing 30-day Build or Pro access with USDC on Base. Unknown wallets receive an account and API key only after successful payment settlement. Existing disabled wallets are rejected before facilitator verification or settlement.\n\n**Flow:**\n1. POST with `{ \"tier\": \"build\" }` (no payment header) \u2192 Server returns 402 with payment details (amount, pay_to address, network)\n2. Sign an EIP-712 `TransferWithAuthorization` (EIP-3009) on USDC Base for the specified amount\n3. Build x402 v2 payment payload, base64-encode it, and retry with `payment-signature` header\n4. Server verifies and settles payment via the facilitator \u2192 grants access \u2192 returns API key\n\nNo API key required. Payment establishes paid wallet access.",
        "operationId": "web3Subscribe",
        "security": [],
        "parameters": [
          {
            "name": "payment-signature",
            "in": "header",
            "description": "Base64-encoded x402 v2 payment payload containing the EIP-3009 signed USDC transfer authorization. Omit on first request to receive payment details.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Web3SubscribeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Subscription created successfully (returned when valid payment-signature header is provided)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Web3SubscribeResponse"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "402": {
            "description": "Payment required. Response includes payment details: amount (micro-USDC), pay_to address, and network. Sign and retry with payment-signature header.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "payment": {
                          "type": "object",
                          "properties": {
                            "amount": {
                              "type": "string",
                              "description": "Amount in micro-USDC (6 decimals)",
                              "example": "49000000"
                            },
                            "pay_to": {
                              "type": "string",
                              "description": "Treasury address to send USDC to",
                              "example": "0x..."
                            },
                            "network": {
                              "type": "string",
                              "description": "Blockchain network",
                              "example": "base"
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "403": {
            "description": "The existing wallet account is disabled. No facilitator verification or settlement is attempted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 403,
                  "error_code": "account_disabled",
                  "error": "Account is disabled",
                  "request_id": "00000000-0000-0000-0000-000000000000"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/orders/{symbol}/history": {
      "get": {
        "tags": [
          "Hyperliquid - Orders"
        ],
        "summary": "Get Hyperliquid order history",
        "description": "Get order lifecycle events for a symbol. Includes order placements, modifications, fills, cancellations, and triggers.",
        "operationId": "getHyperliquidOrderHistory",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Trading pair symbol (e.g., BTC, ETH, SOL)",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "example": "BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767225600000
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767225600000
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 1000, max: 10000)",
            "schema": {
              "type": "integer",
              "default": 1000,
              "maximum": 10000
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "Keep events whose status equals this value exactly (case-sensitive), as Hyperliquid names it: for example `open`, `filled`, `canceled`, `triggered`, `rejected`, `marginCanceled`, `reduceOnlyCanceled`, `selfTradeCanceled` or `siblingFilledCanceled`.",
            "schema": {
              "type": "string",
              "example": "filled"
            }
          },
          {
            "name": "order_type",
            "in": "query",
            "description": "Keep events whose order type equals this value exactly (case-sensitive), as Hyperliquid names it: for example `Limit`, `Stop Market`, `Stop Limit`, `Take Profit Market` or `Take Profit Limit`.",
            "schema": {
              "type": "string",
              "example": "Limit"
            }
          },
          {
            "name": "triggered",
            "in": "query",
            "description": "`true` keeps only events with status `triggered`; `false` keeps every other event. Omit it for all events.",
            "schema": {
              "type": "boolean"
            },
            "required": false
          },
          {
            "name": "user",
            "in": "query",
            "description": "Keep events for this wallet address. Exact match: send the address as it appears in responses (lowercase `0x` hex).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Order lifecycle events",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "count": {
                          "type": "integer"
                        },
                        "next_cursor": {
                          "type": "string"
                        },
                        "request_id": {
                          "type": "string",
                          "format": "uuid"
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/orders/{symbol}/flow": {
      "get": {
        "tags": [
          "Hyperliquid - Orders"
        ],
        "summary": "Get Hyperliquid order flow",
        "description": "Get order flow aggregation for a symbol, in buckets of `interval` (1m by default). Shows order placement and cancellation rates over time.\n\n**Buckets:** each bucket is labelled by its open time in UTC, and buckets open on multiples of the bucket width since the Unix epoch. A bucket with no order events is omitted. A bucket counts only the events inside `[start, end)`, so when `start` or `end` falls inside a bucket, that first or last bucket is partial; `start` and `end` on bucket opens give whole buckets.\n\n**Pagination:** results are oldest first. When `meta.has_more` is `true`, pass the string `meta.next_cursor` unchanged as `cursor` with the same filters to get the next page. Stop when `meta.has_more` is `false`.",
        "operationId": "getHyperliquidOrderFlow",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Trading pair symbol (e.g., BTC, ETH, SOL)",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "example": "BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp, inclusive (default: 24 hours before now). Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767225600000
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp, exclusive (default: now). Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767225600000
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Pagination cursor: use the string `meta.next_cursor` returned when `meta.has_more` is `true`, passed back unchanged with the same filters. Do not parse or construct it. Stop when `meta.has_more` is `false`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of buckets, oldest first (default: 1000, max: 10000)",
            "schema": {
              "type": "integer",
              "default": 1000,
              "maximum": 10000
            }
          },
          {
            "name": "interval",
            "in": "query",
            "required": false,
            "description": "Bucket width: `1m` (default), `5m`, `15m` or `1h`. Case-sensitive. Any other value answers 400.",
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "1h"
              ],
              "default": "1m"
            }
          },
          {
            "name": "granularity",
            "in": "query",
            "description": "Deprecated alias of `interval`. `interval` wins when both are sent.",
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "1h"
              ],
              "default": "1m"
            },
            "deprecated": true
          }
        ],
        "responses": {
          "200": {
            "description": "Order flow aggregation data",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "count": {
                          "type": "integer"
                        },
                        "next_cursor": {
                          "type": "string"
                        },
                        "request_id": {
                          "type": "string",
                          "format": "uuid"
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/orders/{symbol}/tpsl": {
      "get": {
        "tags": [
          "Hyperliquid - Orders"
        ],
        "summary": "Get Hyperliquid TP/SL orders",
        "description": "Get take-profit and stop-loss order events for a symbol. Shows TP/SL placements, triggers, and cancellations.",
        "operationId": "getHyperliquidTpsl",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Trading pair symbol (e.g., BTC, ETH, SOL)",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "example": "BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767225600000
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767225600000
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 1000, max: 10000)",
            "schema": {
              "type": "integer",
              "default": 1000,
              "maximum": 10000
            }
          },
          {
            "name": "user",
            "in": "query",
            "description": "Filter by user wallet address",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "triggered",
            "in": "query",
            "required": false,
            "description": "`true` keeps only events with status `triggered`; `false` keeps every other event. Omit it for all events.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "TP/SL order events",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "count": {
                          "type": "integer"
                        },
                        "next_cursor": {
                          "type": "string"
                        },
                        "request_id": {
                          "type": "string",
                          "format": "uuid"
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/orderbook/{symbol}/l4": {
      "get": {
        "tags": [
          "Hyperliquid - L4 Order Book"
        ],
        "summary": "Get Hyperliquid L4 orderbook",
        "description": "Get the all-level L4 (individual order-level) orderbook reconstruction for a symbol. Shows resting orders across all served levels with price, size, and order ID. Returns the latest snapshot if no timestamp is provided. Within each price level, bids and asks are ordered by true queue priority (ALO priority insertions included), not by placement time. Depth truncation is by order count, so the orders at a depth cut can differ from responses served before 2026-07-21.",
        "operationId": "getHyperliquidL4Orderbook",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Trading pair symbol (e.g., BTC, ETH, SOL)",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "example": "BTC"
          },
          {
            "name": "timestamp",
            "in": "query",
            "description": "Instant of the Hyperliquid snapshot. If omitted, returns the latest snapshot. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767225600000
          },
          {
            "name": "depth",
            "in": "query",
            "description": "Maximum number of resting orders retained per side for this Hyperliquid L4 snapshot. Omit for the full stored depth.",
            "schema": {
              "type": "integer",
              "format": "int64",
              "example": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Typed L4 orderbook snapshot",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseL4OrderBook"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/orderbook/{symbol}/l4/diffs": {
      "get": {
        "tags": [
          "Hyperliquid - L4 Order Book"
        ],
        "summary": "Get Hyperliquid L4 orderbook diffs",
        "description": "Get per-order diff events for the L4 orderbook. Each diff represents an individual order placement, modification, fill, or cancellation. Diff items may include an optional insert_before field (order ID or null): for a new ALO order granted queue priority, it names the resting order this one is inserted ahead of within its price level. null or absent means tail append. Present on data from 2026-07-21 onward.",
        "operationId": "getHyperliquidL4Diffs",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Trading pair symbol (e.g., BTC, ETH, SOL)",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "example": "BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start of the requested window. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767225600000
          },
          {
            "name": "end",
            "in": "query",
            "description": "End of the requested window. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767312000000
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 1000, max: 10000)",
            "schema": {
              "type": "integer",
              "default": 1000,
              "maximum": 10000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "L4 orderbook diff events",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "description": "A single L4 order book diff event.",
                        "properties": {
                          "timestamp": {
                            "type": "integer",
                            "format": "int64",
                            "description": "Event time in epoch milliseconds."
                          },
                          "block_number": {
                            "type": "integer",
                            "format": "int64",
                            "description": "Hyperliquid block number of the event."
                          },
                          "seq": {
                            "type": "integer",
                            "description": "Within-block sequence number."
                          },
                          "oid": {
                            "type": "integer",
                            "format": "int64",
                            "description": "Order ID."
                          },
                          "user_address": {
                            "type": "string",
                            "description": "Address that owns the order."
                          },
                          "coin": {
                            "type": "string"
                          },
                          "side": {
                            "type": "string",
                            "enum": [
                              "B",
                              "A"
                            ],
                            "description": "B = bid, A = ask."
                          },
                          "price": {
                            "type": "number"
                          },
                          "diff_type": {
                            "type": "string",
                            "enum": [
                              "new",
                              "update",
                              "remove"
                            ],
                            "description": "new = order joined the book, update = resting size changed, remove = filled or canceled."
                          },
                          "new_size": {
                            "type": "number",
                            "nullable": true,
                            "description": "Resting size after the event; null on remove."
                          },
                          "insert_before": {
                            "type": "integer",
                            "format": "int64",
                            "nullable": true,
                            "description": "ALO queue priority: the resting order ID this new order is inserted ahead of within its price level. null or absent means the order was appended at the queue tail. Populated on data from 2026-07-21 onward; absent on earlier history."
                          }
                        }
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "count": {
                          "type": "integer"
                        },
                        "next_cursor": {
                          "type": "string"
                        },
                        "request_id": {
                          "type": "string",
                          "format": "uuid"
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/orderbook/{symbol}/l4/history": {
      "get": {
        "tags": [
          "Hyperliquid - L4 Order Book"
        ],
        "summary": "Get Hyperliquid L4 orderbook history",
        "description": "Get historical L4 orderbook checkpoint list. Each checkpoint is a full L4 snapshot that can be used as a starting point for replay. Within each price level, bids and asks are ordered by true queue priority (ALO priority insertions included), not by placement time. Depth truncation is by order count, so the orders at a depth cut can differ from responses served before 2026-07-21.",
        "operationId": "getHyperliquidL4History",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Trading pair symbol (e.g., BTC, ETH, SOL)",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "example": "BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start of the requested window. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767225600000
          },
          {
            "name": "end",
            "in": "query",
            "description": "End of the requested window. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767312000000
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of checkpoints (default: 10, max: 10).",
            "schema": {
              "type": "integer",
              "default": 10,
              "maximum": 10,
              "format": "int64",
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Typed L4 orderbook checkpoint array",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseL4OrderBookArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/orders/{symbol}/history": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Orders"
        ],
        "summary": "Get HIP-3 order history",
        "description": "Get order lifecycle events for a HIP-3 symbol. Includes order placements, modifications, fills, cancellations, and triggers.",
        "operationId": "getHip3OrderHistory",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-3 symbol (case-sensitive, e.g., hyna:BTC, km:US500)",
            "schema": {
              "type": "string",
              "example": "hyna:BTC"
            },
            "example": "km:US500"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767225600000
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767225600000
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 1000, max: 10000)",
            "schema": {
              "type": "integer",
              "default": 1000,
              "maximum": 10000
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "Keep events whose status equals this value exactly (case-sensitive), as Hyperliquid names it: for example `open`, `filled`, `canceled`, `triggered`, `rejected`, `marginCanceled`, `reduceOnlyCanceled`, `selfTradeCanceled` or `siblingFilledCanceled`.",
            "schema": {
              "type": "string",
              "example": "filled"
            }
          },
          {
            "name": "order_type",
            "in": "query",
            "description": "Keep events whose order type equals this value exactly (case-sensitive), as Hyperliquid names it: for example `Limit`, `Stop Market`, `Stop Limit`, `Take Profit Market` or `Take Profit Limit`.",
            "schema": {
              "type": "string",
              "example": "Limit"
            }
          },
          {
            "name": "triggered",
            "in": "query",
            "description": "`true` keeps only events with status `triggered`; `false` keeps every other event. Omit it for all events.",
            "schema": {
              "type": "boolean"
            },
            "required": false
          },
          {
            "name": "user",
            "in": "query",
            "description": "Keep events for this wallet address. Exact match: send the address as it appears in responses (lowercase `0x` hex).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Order lifecycle events",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "count": {
                          "type": "integer"
                        },
                        "next_cursor": {
                          "type": "string"
                        },
                        "request_id": {
                          "type": "string",
                          "format": "uuid"
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/orders/{symbol}/flow": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Orders"
        ],
        "summary": "Get HIP-3 order flow",
        "description": "Get order flow aggregation for a HIP-3 symbol, in buckets of `interval` (1m by default). Shows order placement and cancellation rates over time.\n\n**Buckets:** each bucket is labelled by its open time in UTC, and buckets open on multiples of the bucket width since the Unix epoch. A bucket with no order events is omitted. A bucket counts only the events inside `[start, end)`, so when `start` or `end` falls inside a bucket, that first or last bucket is partial; `start` and `end` on bucket opens give whole buckets.\n\n**Pagination:** results are oldest first. When `meta.has_more` is `true`, pass the string `meta.next_cursor` unchanged as `cursor` with the same filters to get the next page. Stop when `meta.has_more` is `false`.",
        "operationId": "getHip3OrderFlow",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-3 symbol (case-sensitive, e.g., hyna:BTC, km:US500)",
            "schema": {
              "type": "string",
              "example": "hyna:BTC"
            },
            "example": "km:US500"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp, inclusive (default: 24 hours before now). Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767225600000
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp, exclusive (default: now). Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767225600000
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Pagination cursor: use the string `meta.next_cursor` returned when `meta.has_more` is `true`, passed back unchanged with the same filters. Do not parse or construct it. Stop when `meta.has_more` is `false`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of buckets, oldest first (default: 1000, max: 10000)",
            "schema": {
              "type": "integer",
              "default": 1000,
              "maximum": 10000
            }
          },
          {
            "name": "interval",
            "in": "query",
            "required": false,
            "description": "Bucket width: `1m` (default), `5m`, `15m` or `1h`. Case-sensitive. Any other value answers 400.",
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "1h"
              ],
              "default": "1m"
            }
          },
          {
            "name": "granularity",
            "in": "query",
            "description": "Deprecated alias of `interval`. `interval` wins when both are sent.",
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "1h"
              ],
              "default": "1m"
            },
            "deprecated": true
          }
        ],
        "responses": {
          "200": {
            "description": "Order flow aggregation data",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "count": {
                          "type": "integer"
                        },
                        "next_cursor": {
                          "type": "string"
                        },
                        "request_id": {
                          "type": "string",
                          "format": "uuid"
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/orders/{symbol}/tpsl": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Orders"
        ],
        "summary": "Get HIP-3 TP/SL orders",
        "description": "Get take-profit and stop-loss order events for a HIP-3 symbol. Shows TP/SL placements, triggers, and cancellations.",
        "operationId": "getHip3Tpsl",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-3 symbol (case-sensitive, e.g., hyna:BTC, km:US500)",
            "schema": {
              "type": "string",
              "example": "hyna:BTC"
            },
            "example": "km:US500"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767225600000
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767225600000
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 1000, max: 10000)",
            "schema": {
              "type": "integer",
              "default": 1000,
              "maximum": 10000
            }
          },
          {
            "name": "user",
            "in": "query",
            "description": "Filter by user wallet address",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "triggered",
            "in": "query",
            "required": false,
            "description": "`true` keeps only events with status `triggered`; `false` keeps every other event. Omit it for all events.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "TP/SL order events",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "count": {
                          "type": "integer"
                        },
                        "next_cursor": {
                          "type": "string"
                        },
                        "request_id": {
                          "type": "string",
                          "format": "uuid"
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/orderbook/{symbol}/l4": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - L4 Order Book"
        ],
        "summary": "Get HIP-3 L4 orderbook",
        "description": "Get the all-level L4 (individual order-level) orderbook reconstruction for a HIP-3 symbol. Shows resting orders across all served levels with price, size, and order ID. Returns the latest snapshot if no timestamp is provided. Within each price level, bids and asks are ordered by true queue priority (ALO priority insertions included), not by placement time. Depth truncation is by order count, so the orders at a depth cut can differ from responses served before 2026-07-21.",
        "operationId": "getHip3L4Orderbook",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-3 symbol (case-sensitive, e.g., hyna:BTC, km:US500)",
            "schema": {
              "type": "string",
              "example": "hyna:BTC"
            },
            "example": "km:US500"
          },
          {
            "name": "timestamp",
            "in": "query",
            "description": "Instant of the HIP-3 snapshot. If omitted, returns the latest snapshot. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767225600000
          },
          {
            "name": "depth",
            "in": "query",
            "description": "Maximum number of resting orders retained per side for this HIP-3 L4 snapshot. Omit for the full stored depth.",
            "schema": {
              "type": "integer",
              "format": "int64",
              "example": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Typed L4 orderbook snapshot",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseL4OrderBook"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/orderbook/{symbol}/l4/diffs": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - L4 Order Book"
        ],
        "summary": "Get HIP-3 L4 orderbook diffs",
        "description": "Get per-order diff events for the HIP-3 L4 orderbook. Each diff represents an individual order placement, modification, fill, or cancellation. Diff items may include an optional insert_before field (order ID or null): for a new ALO order granted queue priority, it names the resting order this one is inserted ahead of within its price level. null or absent means tail append. Present on data from 2026-07-21 onward.",
        "operationId": "getHip3L4Diffs",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-3 symbol (case-sensitive, e.g., hyna:BTC, km:US500)",
            "schema": {
              "type": "string",
              "example": "hyna:BTC"
            },
            "example": "km:US500"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start of the requested window. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767225600000
          },
          {
            "name": "end",
            "in": "query",
            "description": "End of the requested window. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767312000000
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 1000, max: 10000)",
            "schema": {
              "type": "integer",
              "default": 1000,
              "maximum": 10000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "L4 orderbook diff events",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "description": "A single L4 order book diff event.",
                        "properties": {
                          "timestamp": {
                            "type": "integer",
                            "format": "int64",
                            "description": "Event time in epoch milliseconds."
                          },
                          "block_number": {
                            "type": "integer",
                            "format": "int64",
                            "description": "Hyperliquid block number of the event."
                          },
                          "seq": {
                            "type": "integer",
                            "description": "Within-block sequence number."
                          },
                          "oid": {
                            "type": "integer",
                            "format": "int64",
                            "description": "Order ID."
                          },
                          "user_address": {
                            "type": "string",
                            "description": "Address that owns the order."
                          },
                          "coin": {
                            "type": "string"
                          },
                          "side": {
                            "type": "string",
                            "enum": [
                              "B",
                              "A"
                            ],
                            "description": "B = bid, A = ask."
                          },
                          "price": {
                            "type": "number"
                          },
                          "diff_type": {
                            "type": "string",
                            "enum": [
                              "new",
                              "update",
                              "remove"
                            ],
                            "description": "new = order joined the book, update = resting size changed, remove = filled or canceled."
                          },
                          "new_size": {
                            "type": "number",
                            "nullable": true,
                            "description": "Resting size after the event; null on remove."
                          },
                          "insert_before": {
                            "type": "integer",
                            "format": "int64",
                            "nullable": true,
                            "description": "ALO queue priority: the resting order ID this new order is inserted ahead of within its price level. null or absent means the order was appended at the queue tail. Populated on data from 2026-07-21 onward; absent on earlier history."
                          }
                        }
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "count": {
                          "type": "integer"
                        },
                        "next_cursor": {
                          "type": "string"
                        },
                        "request_id": {
                          "type": "string",
                          "format": "uuid"
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/orderbook/{symbol}/l4/history": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - L4 Order Book"
        ],
        "summary": "Get HIP-3 L4 orderbook history",
        "description": "Get historical L4 orderbook checkpoint list for a HIP-3 symbol. Each checkpoint is a full L4 snapshot that can be used as a starting point for replay. Within each price level, bids and asks are ordered by true queue priority (ALO priority insertions included), not by placement time. Depth truncation is by order count, so the orders at a depth cut can differ from responses served before 2026-07-21.",
        "operationId": "getHip3L4History",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-3 symbol (case-sensitive, e.g., hyna:BTC, km:US500)",
            "schema": {
              "type": "string",
              "example": "hyna:BTC"
            },
            "example": "km:US500"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start of the requested window. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767225600000
          },
          {
            "name": "end",
            "in": "query",
            "description": "End of the requested window. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767312000000
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of checkpoints (default: 10, max: 10).",
            "schema": {
              "type": "integer",
              "default": 10,
              "maximum": 10,
              "format": "int64",
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Typed L4 orderbook checkpoint array",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseL4OrderBookArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip4/outcomes": {
      "get": {
        "tags": [
          "HIP-4 Outcomes - Outcomes"
        ],
        "summary": "List HIP-4 outcomes",
        "description": "List HIP-4 outcome markets (one row per outcome, both sides combined). Optional `is_settled` filter. Cursor pagination. Response uses `Hip4OutcomeAggregate` and OMITS the `aggregated_oi` field. Use `/outcomes/{outcome_id}` to fetch a single outcome with `aggregated_oi` populated. Data available from May 2026.",
        "operationId": "listHip4Outcomes",
        "parameters": [
          {
            "name": "is_settled",
            "in": "query",
            "description": "Filter by settlement status. Omit to return both live and settled outcomes.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "slug",
            "in": "query",
            "required": false,
            "description": "Return only the outcome whose per-outcome or per-side slug matches (a list of at most one). ASCII, 1 to 200 characters. Combines with `is_settled`.",
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 100, max: 1000)",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          }
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "List of HIP-4 outcomes (without `aggregated_oi`)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseHip4OutcomeAggregateArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip4/outcomes/{outcome_id}": {
      "get": {
        "tags": [
          "HIP-4 Outcomes - Outcomes"
        ],
        "summary": "Get HIP-4 outcome detail",
        "description": "Get a single HIP-4 outcome by `outcome_id`. Response uses `Hip4OutcomeAggregate` WITH `aggregated_oi` populated: latest both-sides OI snapshot including `outcome_display_open_interest_contracts` (sum of side0 + side1), `paired_set_supply_contracts` (paired-set notional), and `side_supply_parity` (whether side0 == side1 within tolerance). Currency is always `USDH`. Data available from May 2026.",
        "operationId": "getHip4Outcome",
        "parameters": [
          {
            "name": "outcome_id",
            "in": "path",
            "required": true,
            "description": "Numeric outcome ID (integer >= 0). Each outcome has two sides: side 0 (Yes) and side 1 (No).",
            "schema": {
              "type": "integer",
              "format": "int64",
              "example": 0
            },
            "example": 0
          }
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "HIP-4 outcome detail (with `aggregated_oi`)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseHip4OutcomeAggregate"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip4/instruments": {
      "get": {
        "tags": [
          "HIP-4 Outcomes - Instruments"
        ],
        "summary": "List HIP-4 instruments",
        "description": "List all HIP-4 outcome-market per-side instruments (one row per `#N` coin). Each outcome has two sides: side 0 (Yes) and side 1 (No). Coins are `#`-prefixed.",
        "operationId": "listHip4Instruments",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "List of HIP-4 per-side instruments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseHip4OutcomeArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. Paging is opt-in: with neither `cursor` nor `limit` the whole universe is returned in one response.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Instruments per page when paging (default: 100, max: 1000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "minimum": 1,
              "maximum": 1000
            }
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip4/instruments/{symbol}": {
      "get": {
        "tags": [
          "HIP-4 Outcomes - Instruments"
        ],
        "summary": "Get HIP-4 instrument",
        "description": "Get a single HIP-4 per-side instrument by coin id (e.g., `0`, `1`). The `#`-prefixed form (`#0`, `#1`) is also accepted.",
        "operationId": "getHip4Instrument",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-4 coin id (e.g., `0` for outcome 0 Yes side, `1` for No side). The `#`-prefixed form (`#0`, `#1`) is also accepted.",
            "schema": {
              "type": "string",
              "example": "0"
            },
            "example": "0"
          }
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "HIP-4 instrument detail",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseHip4Outcome"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip4/orderbook/{symbol}": {
      "get": {
        "tags": [
          "HIP-4 Outcomes - Order Book"
        ],
        "summary": "Get HIP-4 order book",
        "description": "Get the latest L2 order book snapshot for a HIP-4 outcome side, or at a specific timestamp. Returns L2 depth with price, size, and order count at each level. Data available from May 2026.",
        "operationId": "getHip4Orderbook",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-4 coin id (e.g., `0` for outcome 0 Yes side, `1` for No side). The `#`-prefixed form (`#0`, `#1`) is also accepted.",
            "schema": {
              "type": "string",
              "example": "0"
            },
            "example": "0"
          },
          {
            "name": "timestamp",
            "in": "query",
            "description": "Instant to read. If not provided, returns latest snapshot. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "depth",
            "in": "query",
            "description": "Requested price levels per side. The HIP-4 native L2 route is capped at 20 levels per side.",
            "schema": {
              "type": "integer",
              "example": 20,
              "maximum": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Order book snapshot",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOrderBook"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip4/orderbook/{symbol}/history": {
      "get": {
        "tags": [
          "HIP-4 Outcomes - Order Book"
        ],
        "summary": "Get HIP-4 order book history",
        "description": "Get historical L2 order book snapshots within a time range with cursor pagination. Data available from May 2026.",
        "operationId": "getHip4OrderbookHistory",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-4 coin id (e.g., `0` for outcome 0 Yes side, `1` for No side). The `#`-prefixed form (`#0`, `#1`) is also accepted.",
            "schema": {
              "type": "string",
              "example": "0"
            },
            "example": "0"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24h ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 100, max: 1000)",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          },
          {
            "name": "depth",
            "in": "query",
            "description": "Requested price levels per side. The HIP-4 native L2 route is capped at 20 levels per side.",
            "schema": {
              "type": "integer",
              "maximum": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of order book snapshots",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOrderBookArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip4/orderbook/{symbol}/l4": {
      "get": {
        "tags": [
          "HIP-4 Outcomes - Order Book"
        ],
        "summary": "Get HIP-4 L4 orderbook",
        "description": "Get the full L4 (individual order-level) orderbook reconstruction for a HIP-4 outcome side. Returns the latest snapshot if no timestamp is provided. Within each price level, bids and asks are ordered by true queue priority (ALO priority insertions included), not by placement time. Depth truncation is by order count, so the orders at a depth cut can differ from responses served before 2026-07-21.",
        "operationId": "getHip4L4Orderbook",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-4 coin id (e.g., `0` for outcome 0 Yes side, `1` for No side). The `#`-prefixed form (`#0`, `#1`) is also accepted.",
            "schema": {
              "type": "string",
              "example": "0"
            },
            "example": "0"
          },
          {
            "name": "timestamp",
            "in": "query",
            "description": "Instant of the HIP-4 snapshot. If omitted, returns the latest snapshot. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1777680000000
          },
          {
            "name": "depth",
            "in": "query",
            "description": "Maximum number of resting orders retained per side for this HIP-4 L4 snapshot. Omit for the full stored depth.",
            "schema": {
              "type": "integer",
              "format": "int64",
              "example": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Typed L4 orderbook snapshot",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseL4OrderBook"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip4/orderbook/{symbol}/l4/diffs": {
      "get": {
        "tags": [
          "HIP-4 Outcomes - Order Book"
        ],
        "summary": "Get HIP-4 L4 orderbook diffs",
        "description": "Get per-order diff events for the HIP-4 L4 orderbook. Each diff represents an individual order placement, modification, fill, or cancellation. Diff items may include an optional insert_before field (order ID or null): for a new ALO order granted queue priority, it names the resting order this one is inserted ahead of within its price level. null or absent means tail append. Present on data from 2026-07-21 onward.",
        "operationId": "getHip4L4Diffs",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-4 coin id (e.g., `0` for outcome 0 Yes side, `1` for No side). The `#`-prefixed form (`#0`, `#1`) is also accepted.",
            "schema": {
              "type": "string",
              "example": "0"
            },
            "example": "0"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start of the requested window. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1777680000000
          },
          {
            "name": "end",
            "in": "query",
            "description": "End of the requested window. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1777766400000
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 1000, max: 10000)",
            "schema": {
              "type": "integer",
              "default": 1000,
              "maximum": 10000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "L4 orderbook diff events",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "description": "A single L4 order book diff event.",
                        "properties": {
                          "timestamp": {
                            "type": "integer",
                            "format": "int64",
                            "description": "Event time in epoch milliseconds."
                          },
                          "block_number": {
                            "type": "integer",
                            "format": "int64",
                            "description": "Hyperliquid block number of the event."
                          },
                          "seq": {
                            "type": "integer",
                            "description": "Within-block sequence number."
                          },
                          "oid": {
                            "type": "integer",
                            "format": "int64",
                            "description": "Order ID."
                          },
                          "user_address": {
                            "type": "string",
                            "description": "Address that owns the order."
                          },
                          "coin": {
                            "type": "string"
                          },
                          "side": {
                            "type": "string",
                            "enum": [
                              "B",
                              "A"
                            ],
                            "description": "B = bid, A = ask."
                          },
                          "price": {
                            "type": "number"
                          },
                          "diff_type": {
                            "type": "string",
                            "enum": [
                              "new",
                              "update",
                              "remove"
                            ],
                            "description": "new = order joined the book, update = resting size changed, remove = filled or canceled."
                          },
                          "new_size": {
                            "type": "number",
                            "nullable": true,
                            "description": "Resting size after the event; null on remove."
                          },
                          "insert_before": {
                            "type": "integer",
                            "format": "int64",
                            "nullable": true,
                            "description": "ALO queue priority: the resting order ID this new order is inserted ahead of within its price level. null or absent means the order was appended at the queue tail. Populated on data from 2026-07-21 onward; absent on earlier history."
                          }
                        }
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "count": {
                          "type": "integer"
                        },
                        "next_cursor": {
                          "type": "string"
                        },
                        "request_id": {
                          "type": "string",
                          "format": "uuid"
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip4/orderbook/{symbol}/l4/history": {
      "get": {
        "tags": [
          "HIP-4 Outcomes - Order Book"
        ],
        "summary": "Get HIP-4 L4 orderbook history",
        "description": "Get historical L4 orderbook checkpoint list for a HIP-4 outcome side. Each checkpoint is a full L4 snapshot that can be used as a starting point for replay. The `limit` parameter defaults to 100 and is capped at 1000. Within each price level, bids and asks are ordered by true queue priority (ALO priority insertions included), not by placement time. Depth truncation is by order count, so the orders at a depth cut can differ from responses served before 2026-07-21.",
        "operationId": "getHip4L4History",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-4 coin id (e.g., `0` for outcome 0 Yes side, `1` for No side). The `#`-prefixed form (`#0`, `#1`) is also accepted.",
            "schema": {
              "type": "string",
              "example": "0"
            },
            "example": "0"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start of the requested window. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1777680000000
          },
          {
            "name": "end",
            "in": "query",
            "description": "End of the requested window. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1777766400000
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of checkpoints (default: 10, max: 10).",
            "schema": {
              "type": "integer",
              "default": 10,
              "maximum": 10,
              "format": "int64",
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Typed L4 orderbook checkpoint array",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseL4OrderBookArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip4/trades/{symbol}": {
      "get": {
        "tags": [
          "HIP-4 Outcomes - Trades"
        ],
        "summary": "Get HIP-4 trades",
        "description": "Get historical trades (fills) for a HIP-4 outcome side within a time range. Data available from May 2026.\n\n**Pagination:** Use the `cursor` parameter with the value from the previous response's `next_cursor` for efficient pagination.",
        "operationId": "getHip4Trades",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-4 coin id (e.g., `0` for outcome 0 Yes side, `1` for No side). The `#`-prefixed form (`#0`, `#1`) is also accepted.",
            "schema": {
              "type": "string",
              "example": "0"
            },
            "example": "0"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24h ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "side",
            "in": "query",
            "required": false,
            "description": "Keep one side of the tape: `buy` or `sell` (case-insensitive). Omit it for both. The filter runs before paging, so a full page still holds `limit` matching trades and the cursor pages the filtered tape. Any other value answers 400 `invalid_parameter` with `param` and `valid_values`.",
            "schema": {
              "type": "string",
              "enum": [
                "buy",
                "sell"
              ]
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of trades (default: 100, max: 50000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 50000,
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of trades with cursor for next page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseTradeArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip4/trades/{symbol}/recent": {
      "get": {
        "tags": [
          "HIP-4 Outcomes - Trades"
        ],
        "summary": "Get recent HIP-4 trades",
        "description": "Get the most recent trades for a HIP-4 outcome side, ordered by timestamp descending. Data available from May 2026.",
        "operationId": "getHip4RecentTrades",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-4 coin id (e.g., `0` for outcome 0 Yes side, `1` for No side). The `#`-prefixed form (`#0`, `#1`) is also accepted.",
            "schema": {
              "type": "string",
              "example": "0"
            },
            "example": "0"
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of trades (default: 100, max: 50000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 50000,
              "minimum": 1
            }
          },
          {
            "name": "side",
            "in": "query",
            "required": false,
            "description": "Keep one side of the tape: `buy` or `sell` (case-insensitive). Omit it for both. The filter runs before paging, so a full page still holds `limit` matching trades and the cursor pages the filtered tape. Any other value answers 400 `invalid_parameter` with `param` and `valid_values`.",
            "schema": {
              "type": "string",
              "enum": [
                "buy",
                "sell"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of recent trades",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseTradeArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip4/openinterest/{symbol}": {
      "get": {
        "tags": [
          "HIP-4 Outcomes - Open Interest"
        ],
        "summary": "Get HIP-4 open interest history",
        "description": "Get historical per-side open interest data for a HIP-4 outcome side. Mirrors HIP-3 OI shape plus `outcome_id` and `side` fields. Display/paired/parity aggregates (sum across both sides, paired-set supply, side-supply parity check) live on `/outcomes/{outcome_id}.aggregated_oi`, NOT on this endpoint. Note: `mark_price` for HIP-4 outcomes is an implied probability in [0,1], not a USD price; same field name as perps because Hyperliquid upstream uses `markPx` for both. Data available from May 2026.",
        "operationId": "getHip4OpenInterest",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-4 coin id (e.g., `0` for outcome 0 Yes side, `1` for No side). The `#`-prefixed form (`#0`, `#1`) is also accepted.",
            "schema": {
              "type": "string",
              "example": "0"
            },
            "example": "0"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24h ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 100, max: 1000)",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          },
          {
            "name": "interval",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "30m",
                "1h",
                "4h",
                "1d"
              ]
            },
            "description": "Aggregation interval. When omitted, returns raw ~10 sec outcome-side open-interest updates."
          }
        ],
        "responses": {
          "200": {
            "description": "Open interest data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseHip4OpenInterestArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip4/openinterest/{symbol}/current": {
      "get": {
        "tags": [
          "HIP-4 Outcomes - Open Interest"
        ],
        "summary": "Get current HIP-4 open interest",
        "description": "Get the latest per-side open interest value for a HIP-4 outcome side. Mirrors HIP-3 OI shape plus `outcome_id` and `side` fields. Note: `mark_price` for HIP-4 outcomes is an implied probability in [0,1], not a USD price; same field name as perps because Hyperliquid upstream uses `markPx` for both.",
        "operationId": "getCurrentHip4OpenInterest",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-4 coin id (e.g., `0` for outcome 0 Yes side, `1` for No side). The `#`-prefixed form (`#0`, `#1`) is also accepted.",
            "schema": {
              "type": "string",
              "example": "0"
            },
            "example": "0"
          }
        ],
        "responses": {
          "200": {
            "description": "Current open interest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseHip4OpenInterest"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip4/freshness/{symbol}": {
      "get": {
        "tags": [
          "HIP-4 Outcomes - Convenience"
        ],
        "summary": "Get HIP-4 data freshness",
        "description": "Check when HIP-4 order book, trade, and outcome-side open-interest data was last updated. The shared freshness envelope can describe funding and liquidations for other families; those buckets are omitted for HIP-4 because HIP-4 has no funding dataset or liquidation endpoint.",
        "operationId": "getHip4Freshness",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-4 coin id (e.g., `0` for outcome 0 Yes side, `1` for No side). The `#`-prefixed form (`#0`, `#1`) is also accepted.",
            "schema": {
              "type": "string",
              "example": "0"
            },
            "example": "0"
          }
        ],
        "responses": {
          "200": {
            "description": "Data freshness for the coin",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseCoinFreshness"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip4/summary/{symbol}": {
      "get": {
        "tags": [
          "HIP-4 Outcomes - Convenience"
        ],
        "summary": "Get HIP-4 market summary",
        "description": "Get a combined market summary for a HIP-4 outcome side: latest mark price (implied probability in [0,1] for HIP-4, NOT USD), mid price, outcome-side open interest, and 24h volume. The shared summary schema retains optional funding, premium, oracle-price, and liquidation fields for compatibility across venue families; those fields are omitted for HIP-4 because they are not applicable. HIP-4 has no funding dataset or liquidation endpoint.",
        "operationId": "getHip4Summary",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-4 coin id (e.g., `0` for outcome 0 Yes side, `1` for No side). The `#`-prefixed form (`#0`, `#1`) is also accepted.",
            "schema": {
              "type": "string",
              "example": "0"
            },
            "example": "0"
          }
        ],
        "responses": {
          "200": {
            "description": "Market summary for the coin",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseCoinSummary"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip4/prices/{symbol}": {
      "get": {
        "tags": [
          "HIP-4 Outcomes - Convenience"
        ],
        "summary": "Get HIP-4 price history",
        "description": "Get mark/mid price history for a HIP-4 outcome side. Lightweight projection of open interest data. Note: `mark_price` for HIP-4 outcomes is an implied probability in [0,1], not a USD price; same field name as perps because Hyperliquid upstream uses `markPx` for both. `oracle_price` is omitted for HIP-4 (outcomes have no oracle feed).",
        "operationId": "getHip4PriceHistory",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-4 coin id (e.g., `0` for outcome 0 Yes side, `1` for No side). The `#`-prefixed form (`#0`, `#1`) is also accepted.",
            "schema": {
              "type": "string",
              "example": "0"
            },
            "example": "0"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "interval",
            "in": "query",
            "description": "Aggregation interval",
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "30m",
                "1h",
                "4h",
                "1d"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 100, max: 1000)",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Price history data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponsePriceSnapshotArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip4/orders/{symbol}/history": {
      "get": {
        "tags": [
          "HIP-4 Outcomes - Orders"
        ],
        "summary": "Get HIP-4 order history",
        "description": "Get order lifecycle events for a HIP-4 outcome side. Includes order placements, modifications, fills, cancellations, and triggers.",
        "operationId": "getHip4OrderHistory",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-4 coin id (e.g., `0` for outcome 0 Yes side, `1` for No side). The `#`-prefixed form (`#0`, `#1`) is also accepted.",
            "schema": {
              "type": "string",
              "example": "0"
            },
            "example": "0"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767225600000
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767225600000
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 1000, max: 10000)",
            "schema": {
              "type": "integer",
              "default": 1000,
              "maximum": 10000
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "Keep events whose status equals this value exactly (case-sensitive), as Hyperliquid names it: for example `open`, `filled`, `canceled`, `triggered`, `rejected`, `marginCanceled`, `reduceOnlyCanceled`, `selfTradeCanceled` or `siblingFilledCanceled`.",
            "schema": {
              "type": "string",
              "example": "filled"
            }
          },
          {
            "name": "order_type",
            "in": "query",
            "description": "Keep events whose order type equals this value exactly (case-sensitive), as Hyperliquid names it: for example `Limit`, `Stop Market`, `Stop Limit`, `Take Profit Market` or `Take Profit Limit`.",
            "schema": {
              "type": "string",
              "example": "Limit"
            }
          },
          {
            "name": "triggered",
            "in": "query",
            "description": "`true` keeps only events with status `triggered`; `false` keeps every other event. Omit it for all events.",
            "schema": {
              "type": "boolean"
            },
            "required": false
          },
          {
            "name": "user",
            "in": "query",
            "description": "Keep events for this wallet address. Exact match: send the address as it appears in responses (lowercase `0x` hex).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Order lifecycle events",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "count": {
                          "type": "integer"
                        },
                        "next_cursor": {
                          "type": "string"
                        },
                        "request_id": {
                          "type": "string",
                          "format": "uuid"
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip4/orders/{symbol}/flow": {
      "get": {
        "tags": [
          "HIP-4 Outcomes - Orders"
        ],
        "summary": "Get HIP-4 order flow",
        "description": "Get order flow aggregation for a HIP-4 outcome side, in buckets of `interval` (1m by default). Shows order placement and cancellation rates over time.\n\n**Buckets:** each bucket is labelled by its open time in UTC, and buckets open on multiples of the bucket width since the Unix epoch. A bucket with no order events is omitted. A bucket counts only the events inside `[start, end)`, so when `start` or `end` falls inside a bucket, that first or last bucket is partial; `start` and `end` on bucket opens give whole buckets.\n\n**Pagination:** results are oldest first. When `meta.has_more` is `true`, pass the string `meta.next_cursor` unchanged as `cursor` with the same filters to get the next page. Stop when `meta.has_more` is `false`.",
        "operationId": "getHip4OrderFlow",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-4 coin id (e.g., `0` for outcome 0 Yes side, `1` for No side). The `#`-prefixed form (`#0`, `#1`) is also accepted.",
            "schema": {
              "type": "string",
              "example": "0"
            },
            "example": "0"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp, inclusive (default: 24 hours before now). Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767225600000
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp, exclusive (default: now). Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767225600000
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Pagination cursor: use the string `meta.next_cursor` returned when `meta.has_more` is `true`, passed back unchanged with the same filters. Do not parse or construct it. Stop when `meta.has_more` is `false`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of buckets, oldest first (default: 1000, max: 10000)",
            "schema": {
              "type": "integer",
              "default": 1000,
              "maximum": 10000
            }
          },
          {
            "name": "interval",
            "in": "query",
            "required": false,
            "description": "Bucket width: `1m` (default), `5m`, `15m` or `1h`. Case-sensitive. Any other value answers 400.",
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "1h"
              ],
              "default": "1m"
            }
          },
          {
            "name": "granularity",
            "in": "query",
            "description": "Deprecated alias of `interval`. `interval` wins when both are sent.",
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "1h"
              ],
              "default": "1m"
            },
            "deprecated": true
          }
        ],
        "responses": {
          "200": {
            "description": "Order flow aggregation data",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "count": {
                          "type": "integer"
                        },
                        "next_cursor": {
                          "type": "string"
                        },
                        "request_id": {
                          "type": "string",
                          "format": "uuid"
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip4/orders/{symbol}/tpsl": {
      "get": {
        "tags": [
          "HIP-4 Outcomes - Orders"
        ],
        "summary": "Get HIP-4 TP/SL orders",
        "description": "Get take-profit and stop-loss order events for a HIP-4 outcome side. Shows TP/SL placements, triggers, and cancellations.",
        "operationId": "getHip4Tpsl",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-4 coin id (e.g., `0` for outcome 0 Yes side, `1` for No side). The `#`-prefixed form (`#0`, `#1`) is also accepted.",
            "schema": {
              "type": "string",
              "example": "0"
            },
            "example": "0"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767225600000
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767225600000
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 1000, max: 10000)",
            "schema": {
              "type": "integer",
              "default": 1000,
              "maximum": 10000
            }
          },
          {
            "name": "user",
            "in": "query",
            "description": "Filter by user wallet address",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "triggered",
            "in": "query",
            "required": false,
            "description": "`true` keeps only events with status `triggered`; `false` keeps every other event. Omit it for all events.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "TP/SL order events",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "count": {
                          "type": "integer"
                        },
                        "next_cursor": {
                          "type": "string"
                        },
                        "request_id": {
                          "type": "string",
                          "format": "uuid"
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/lighter/l3orderbook/{symbol}": {
      "get": {
        "tags": [
          "Lighter - L3 Order Book"
        ],
        "summary": "Get Lighter L3 orderbook",
        "description": "Get the current Lighter L3 order-level snapshot with price, remaining size, order_index, and owner_account_index. Returns up to 250 resting orders per side.",
        "operationId": "getLighterL3Orderbook",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Trading pair symbol (e.g., BTC, ETH, SOL)",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "example": "ETH"
          },
          {
            "name": "timestamp",
            "in": "query",
            "description": "Instant of the requested Lighter snapshot. If omitted, returns the latest snapshot. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1773273600000
          },
          {
            "name": "account",
            "in": "query",
            "description": "Optional numeric Lighter account index filter.",
            "schema": {
              "type": "integer",
              "format": "int64",
              "example": 281474976710654
            }
          },
          {
            "name": "depth",
            "in": "query",
            "description": "Optional maximum number of resting orders returned per side. Values are clamped to the 1\u2013250 ingestion cap.",
            "schema": {
              "type": "integer",
              "format": "int64",
              "example": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Typed L3 orderbook snapshot",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseL3OrderBook"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/lighter/l3orderbook/{symbol}/history": {
      "get": {
        "tags": [
          "Lighter - L3 Order Book"
        ],
        "summary": "Get Lighter L3 orderbook history",
        "description": "Get historical Lighter L3 order-level snapshots with price, remaining size, order_index, and owner_account_index. The public checkpoint-history response is an array of snapshots; each snapshot returns up to 250 resting orders per side. Snapshots are checkpoints; optional `account` filters by numeric account index. Data available from March 2026.",
        "operationId": "getLighterL3OrderbookHistory",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Trading pair symbol (e.g., BTC, ETH, SOL)",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "example": "ETH"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24 hours before the request. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1773273600000
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1773273900000
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of snapshots per response; effective values are clamped to 1\u20131000 (default: 100).",
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 100,
              "maximum": 1000
            }
          },
          {
            "name": "account",
            "in": "query",
            "description": "Optional numeric Lighter account index filter.",
            "schema": {
              "type": "integer",
              "format": "int64",
              "example": 281474976710654
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Typed historical L3 orderbook snapshot array",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseL3OrderBookArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/spot/pairs": {
      "get": {
        "tags": [
          "Hyperliquid Spot"
        ],
        "summary": "List Hyperliquid Spot pairs",
        "description": "List Hyperliquid Spot pairs available through 0xArchive.",
        "operationId": "getHyperliquidSpotPairs",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "List of Hyperliquid Spot pairs",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseSpotPairArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/spot/pairs/{symbol}": {
      "get": {
        "tags": [
          "Hyperliquid Spot"
        ],
        "summary": "Get Hyperliquid Spot pair metadata",
        "description": "Get metadata for one Hyperliquid Spot pair.",
        "operationId": "getHyperliquidSpotPair",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Hyperliquid Spot pair symbol, for example HYPE-USDC",
            "schema": {
              "type": "string",
              "example": "HYPE-USDC"
            },
            "example": "HYPE-USDC"
          }
        ],
        "responses": {
          "200": {
            "description": "Hyperliquid Spot pair metadata",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseSpotPair"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/spot/orderbook/{symbol}": {
      "get": {
        "tags": [
          "Hyperliquid Spot"
        ],
        "summary": "Get Hyperliquid Spot order book",
        "description": "Get the latest Hyperliquid Spot order book snapshot for a pair, or a historical snapshot when timestamp is supplied.",
        "operationId": "getHyperliquidSpotOrderbook",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Hyperliquid Spot pair symbol, for example HYPE-USDC",
            "schema": {
              "type": "string",
              "example": "HYPE-USDC"
            },
            "example": "HYPE-USDC"
          },
          {
            "name": "timestamp",
            "in": "query",
            "description": "Instant for the historical lookup. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1704067200000
          },
          {
            "name": "depth",
            "in": "query",
            "description": "Number of price levels per side.",
            "schema": {
              "type": "integer",
              "example": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Order book snapshot",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOrderBook"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/spot/trades/{symbol}": {
      "get": {
        "tags": [
          "Hyperliquid Spot"
        ],
        "summary": "Get Hyperliquid Spot trades",
        "description": "Get bounded historical trades for a Hyperliquid Spot pair.",
        "operationId": "getHyperliquidSpotTrades",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Hyperliquid Spot pair symbol, for example HYPE-USDC",
            "schema": {
              "type": "string",
              "example": "HYPE-USDC"
            },
            "example": "HYPE-USDC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp for bounded historical queries. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1704067200000
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp for bounded historical queries. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1704070800000
          },
          {
            "name": "side",
            "in": "query",
            "required": false,
            "description": "Keep one side of the tape: `buy` or `sell` (case-insensitive). Omit it for both. The filter runs before paging, so a full page still holds `limit` matching trades and the cursor pages the filtered tape. Any other value answers 400 `invalid_parameter` with `param` and `valid_values`.",
            "schema": {
              "type": "string",
              "enum": [
                "buy",
                "sell"
              ]
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of trades (default: 100, max: 50000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 50000,
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of trades with cursor for next page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseTradeArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/spot/trades/{symbol}/recent": {
      "get": {
        "tags": [
          "Hyperliquid Spot"
        ],
        "summary": "Get recent Hyperliquid spot trades",
        "description": "Get the most recent trades for a Hyperliquid spot pair, ordered by timestamp descending.",
        "operationId": "getSpotTradesRecent",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "HYPE-USDC"
            },
            "description": "Spot trading pair symbol in dashed form (e.g., HYPE-USDC, PURR-USDC)",
            "example": "HYPE-USDC"
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of trades (default: 100, max: 50000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 50000,
              "minimum": 1
            }
          },
          {
            "name": "side",
            "in": "query",
            "required": false,
            "description": "Keep one side of the tape: `buy` or `sell` (case-insensitive). Omit it for both. The filter runs before paging, so a full page still holds `limit` matching trades and the cursor pages the filtered tape. Any other value answers 400 `invalid_parameter` with `param` and `valid_values`.",
            "schema": {
              "type": "string",
              "enum": [
                "buy",
                "sell"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of recent trades",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseTradeArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/spot/orderbook/{symbol}/l4": {
      "get": {
        "tags": [
          "Hyperliquid Spot"
        ],
        "summary": "Get Hyperliquid Spot L4 order book",
        "description": "Get the L4 order-level reconstruction checkpoint for a Hyperliquid Spot pair. Within each price level, bids and asks are ordered by true queue priority (ALO priority insertions included), not by placement time. Depth truncation is by order count, so the orders at a depth cut can differ from responses served before 2026-07-21.",
        "operationId": "getHyperliquidSpotL4Orderbook",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Hyperliquid Spot pair symbol, for example HYPE-USDC",
            "schema": {
              "type": "string",
              "example": "HYPE-USDC"
            },
            "example": "HYPE-USDC"
          },
          {
            "name": "timestamp",
            "in": "query",
            "description": "Instant of the Hyperliquid Spot snapshot. If omitted, returns the latest snapshot. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767225600000
          },
          {
            "name": "depth",
            "in": "query",
            "description": "Maximum number of resting orders retained per side for this Hyperliquid Spot L4 snapshot. Omit for the full stored depth.",
            "schema": {
              "type": "integer",
              "format": "int64",
              "example": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Typed L4 orderbook snapshot",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseL4OrderBook"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/spot/orderbook/{symbol}/l4/diffs": {
      "get": {
        "tags": [
          "Hyperliquid Spot"
        ],
        "summary": "Get Hyperliquid Spot L4 order book diffs",
        "description": "Get per-order diff events for Hyperliquid Spot L4 reconstruction. Diff items may include an optional insert_before field (order ID or null): for a new ALO order granted queue priority, it names the resting order this one is inserted ahead of within its price level. null or absent means tail append. Present on data from 2026-07-21 onward.",
        "operationId": "getHyperliquidSpotL4Diffs",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Hyperliquid Spot pair symbol, for example HYPE-USDC",
            "schema": {
              "type": "string",
              "example": "HYPE-USDC"
            },
            "example": "HYPE-USDC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start of the requested window. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1704067200000
          },
          {
            "name": "end",
            "in": "query",
            "description": "End of the requested window. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1704070800000
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of diffs (default: 1000, max: 10000).",
            "schema": {
              "type": "integer",
              "default": 1000,
              "maximum": 10000,
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "L4 orderbook diff events",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "description": "A single L4 order book diff event.",
                        "properties": {
                          "timestamp": {
                            "type": "integer",
                            "format": "int64",
                            "description": "Event time in epoch milliseconds."
                          },
                          "block_number": {
                            "type": "integer",
                            "format": "int64",
                            "description": "Hyperliquid block number of the event."
                          },
                          "seq": {
                            "type": "integer",
                            "description": "Within-block sequence number."
                          },
                          "oid": {
                            "type": "integer",
                            "format": "int64",
                            "description": "Order ID."
                          },
                          "user_address": {
                            "type": "string",
                            "description": "Address that owns the order."
                          },
                          "coin": {
                            "type": "string"
                          },
                          "side": {
                            "type": "string",
                            "enum": [
                              "B",
                              "A"
                            ],
                            "description": "B = bid, A = ask."
                          },
                          "price": {
                            "type": "number"
                          },
                          "diff_type": {
                            "type": "string",
                            "enum": [
                              "new",
                              "update",
                              "remove"
                            ],
                            "description": "new = order joined the book, update = resting size changed, remove = filled or canceled."
                          },
                          "new_size": {
                            "type": "number",
                            "nullable": true,
                            "description": "Resting size after the event; null on remove."
                          },
                          "insert_before": {
                            "type": "integer",
                            "format": "int64",
                            "nullable": true,
                            "description": "ALO queue priority: the resting order ID this new order is inserted ahead of within its price level. null or absent means the order was appended at the queue tail. Populated on data from 2026-07-21 onward; absent on earlier history."
                          }
                        }
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "count": {
                          "type": "integer"
                        },
                        "next_cursor": {
                          "type": "string"
                        },
                        "request_id": {
                          "type": "string",
                          "format": "uuid"
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/spot/orderbook/{symbol}/l4/history": {
      "get": {
        "tags": [
          "Hyperliquid Spot"
        ],
        "summary": "Get Hyperliquid Spot L4 order book history",
        "description": "Get historical Hyperliquid Spot L4 order book reconstruction windows. Within each price level, bids and asks are ordered by true queue priority (ALO priority insertions included), not by placement time. Depth truncation is by order count, so the orders at a depth cut can differ from responses served before 2026-07-21.",
        "operationId": "getHyperliquidSpotL4History",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Hyperliquid Spot pair symbol, for example HYPE-USDC",
            "schema": {
              "type": "string",
              "example": "HYPE-USDC"
            },
            "example": "HYPE-USDC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start of the requested window. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1704067200000
          },
          {
            "name": "end",
            "in": "query",
            "description": "End of the requested window. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1704070800000
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of checkpoints (default: 10, max: 10).",
            "schema": {
              "type": "integer",
              "default": 10,
              "maximum": 10,
              "format": "int64",
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Typed L4 orderbook checkpoint array",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseL4OrderBookArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/spot/orders/{symbol}/history": {
      "get": {
        "tags": [
          "Hyperliquid Spot"
        ],
        "summary": "Get Hyperliquid Spot order history",
        "description": "Get historical order events for a Hyperliquid Spot pair.",
        "operationId": "getHyperliquidSpotOrderHistory",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Hyperliquid Spot pair symbol, for example HYPE-USDC",
            "schema": {
              "type": "string",
              "example": "HYPE-USDC"
            },
            "example": "HYPE-USDC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767225600000
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1767225600000
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of records (default: 100, max: 1000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000,
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Order lifecycle events",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "count": {
                          "type": "integer"
                        },
                        "next_cursor": {
                          "type": "string"
                        },
                        "request_id": {
                          "type": "string",
                          "format": "uuid"
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/spot/twap/{symbol}": {
      "get": {
        "tags": [
          "Hyperliquid Spot"
        ],
        "summary": "Get Hyperliquid Spot TWAP",
        "description": "Get TWAP data for a Hyperliquid Spot pair.",
        "operationId": "getHyperliquidSpotTwap",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Hyperliquid Spot pair symbol, for example HYPE-USDC",
            "schema": {
              "type": "string",
              "example": "HYPE-USDC"
            },
            "example": "HYPE-USDC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp for bounded historical queries. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1704067200000
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp for bounded historical queries. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1704070800000
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of records (default: 100, max: 1000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000,
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Hyperliquid Spot TWAP data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseSpotTwapArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/spot/twap/user/{user}": {
      "get": {
        "tags": [
          "Hyperliquid Spot"
        ],
        "summary": "Get Hyperliquid Spot user TWAP",
        "description": "Get TWAP data scoped to a Hyperliquid user address.",
        "operationId": "getHyperliquidSpotUserTwap",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user",
            "in": "path",
            "required": true,
            "description": "Hyperliquid user address.",
            "schema": {
              "type": "string",
              "example": "0x0000000000000000000000000000000000000000"
            },
            "example": "0x0000000000000000000000000000000000000000"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp for bounded historical queries. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1704067200000
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp for bounded historical queries. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1704070800000
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of records (default: 100, max: 1000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000,
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Hyperliquid Spot user TWAP data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseSpotTwapArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/spot/freshness/{symbol}": {
      "get": {
        "tags": [
          "Hyperliquid Spot"
        ],
        "summary": "Get Hyperliquid Spot freshness",
        "description": "Check when Spot order book, trade, L4, orders, and TWAP data was last updated for a Hyperliquid Spot pair.",
        "operationId": "getHyperliquidSpotFreshness",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Hyperliquid Spot pair symbol, for example HYPE-USDC",
            "schema": {
              "type": "string",
              "example": "HYPE-USDC"
            },
            "example": "HYPE-USDC"
          }
        ],
        "responses": {
          "200": {
            "description": "Hyperliquid Spot freshness data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseSpotFreshness"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/spot/candles/{symbol}": {
      "get": {
        "tags": [
          "Hyperliquid Spot - Candles"
        ],
        "summary": "Get spot OHLCV candles",
        "description": "Historical OHLCV candle data for a Hyperliquid spot pair, aggregated from archived spot trade data. Coverage matches archived spot trade history, beginning 2025-03-22.\n\n**Available Intervals:** 1m, 5m, 15m, 30m, 1h, 4h, 1d, 1w\n\n**Pagination:** Use the `cursor` parameter with the value from the previous response's `next_cursor`.",
        "operationId": "getSpotCandles",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Spot pair symbol. Accepts dashed canonical (`PURR-USDC`, `HYPE-USDC`), the wire-format coin (`@107`), or a bare base-token name (`HFUN`).",
            "schema": {
              "type": "string",
              "example": "PURR-USDC"
            },
            "example": "PURR-USDC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24h ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "interval",
            "in": "query",
            "description": "Candle interval (default: 1h)",
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "30m",
                "1h",
                "4h",
                "1d",
                "1w"
              ],
              "default": "1h"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of candles (default: 100, max: 10000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 10000,
              "minimum": 1
            }
          }
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "List of OHLCV candles with cursor for next page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseCandleArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip4/candles/{symbol}": {
      "get": {
        "tags": [
          "HIP-4 Outcomes - Candles"
        ],
        "summary": "Get HIP-4 OHLCV candles",
        "description": "Historical OHLCV candle data for a HIP-4 outcome side, aggregated from archived HIP-4 trade data. Coverage begins 2026-05-02 (HIP-4 mainnet launch).\n\n**Note on HIP-4 prices:** HIP-4 prices are implied probabilities (0..1), not USD. `quote_volume` is denominated in USDH (the collateral). The OHLCV shape is identical to perp candles so SDKs work unchanged.\n\n**Available Intervals:** 1m, 5m, 15m, 30m, 1h, 4h, 1d, 1w\n\n**Pagination:** Use the `cursor` parameter with the value from the previous response's `next_cursor`.",
        "operationId": "getHip4Candles",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-4 coin id (numeric `0`, `1`, `10`, `11`, ...) where id = `10*outcome_id + side`. The `#`-prefixed form (`#0`, `#10`) is also accepted.",
            "schema": {
              "type": "string",
              "example": "0"
            },
            "example": "0"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24h ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "interval",
            "in": "query",
            "description": "Candle interval (default: 1h)",
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "30m",
                "1h",
                "4h",
                "1d",
                "1w"
              ],
              "default": "1h"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of candles (default: 100, max: 10000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 10000,
              "minimum": 1
            }
          }
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "List of OHLCV candles with cursor for next page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseCandleArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/cvd/{symbol}": {
      "get": {
        "tags": [
          "Hyperliquid - Convenience"
        ],
        "summary": "Get Hyperliquid cumulative volume delta",
        "description": "Get cumulative volume delta buckets for a Hyperliquid core symbol: taker buy and sell notional per bucket, their difference, and a running total. Intervals of 1h and longer roll up hourly totals; 1m, 5m, 15m and 30m are summed from taker fills. Live responses currently meter this route at 1 credit per request. Use `start`, `end`, and `interval` to bound the returned window.\n\n**Buckets:** each bucket is labelled by its open time in UTC and is omitted when it holds no trades. 4h, 1d and 1w buckets open on UTC epoch boundaries, so 1w buckets open on Thursdays. Below 1h, a bucket is returned when it opens inside `[start, end]`, and it always covers its full interval. From 1h up, each bucket sums the hours that open inside `[start, end]`, so at 4h, 1d and 1w the first and last buckets of a window can be partial.\n\n**Pagination:** a page holds up to `limit` buckets (default 500, max 10000). While more buckets may follow inside `[start, end]`, `meta.next_cursor` is set: pass it back as `cursor` with `start`, `end` and `interval` unchanged, and stop when it is absent. Below 1h a page can hold fewer than `limit` buckets and still carry a cursor, so stop on the cursor, not on a short page. At the default `limit`, a window of up to 500 buckets is always one page. Without `start` or `cursor`, the response is the newest `limit` buckets of the 24 hours before `end` (or before now, when `end` is later), with no cursor.\n\n**Running total:** `cumulative_delta` is a running total of `delta` from the first bucket of each response, so it restarts on every page. To join pages, rebuild it from `delta`. A response that is one page of several says so in `meta.notice`.",
        "operationId": "getHyperliquidCvd",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Trading pair symbol (e.g., BTC, ETH)",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "example": "BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. When omitted, and no `cursor` is sent, the window is the 24 hours before `end` and the newest `limit` buckets of it are returned. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "interval",
            "in": "query",
            "description": "Bucket width (default: 1h). Intervals of 1h and longer roll up hourly totals; 1m, 5m, 15m and 30m are summed from taker fills. Any other value returns 400.",
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "30m",
                "1h",
                "4h",
                "1d",
                "1w"
              ],
              "default": "1h"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. Returns the buckets that open after it. Send it with the same `start`, `end` and `interval`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Buckets per page (default: 500, max: 10000)",
            "schema": {
              "type": "integer",
              "default": 500,
              "maximum": 10000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "CVD buckets",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseCvdBucketArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/trade-intent/{symbol}": {
      "get": {
        "tags": [
          "Hyperliquid - Trade Intent"
        ],
        "summary": "Get Hyperliquid trade intent",
        "description": "Get, bucket by bucket, why one Hyperliquid core market traded: USD volume of new longs and shorts (`open_long`, `open_short`), profit taken (`tp_long`, `tp_short`), stopped out (`stop_long`, `stop_short`, liquidations and auto-deleveraging included) and flips through zero (`flip_ls`, `flip_sl`). Both sides of every trade are counted; market makers' volume is in `mm_usd` instead of an intent bucket. Each bucket also carries the market's winners and losers over the trailing 72 hours as aggregates (no wallet is named): their net and gross position, how many count at full weight, and their flow. Included with the Build, Pro, Scale and Enterprise plans. A key on another plan receives 403 `forbidden` naming the dataset, the plans that include it and where to upgrade, and is not charged.\n\n**Coverage:** `1h`, `4h` and `1d` from 2025-05-25 15:00 UTC; `1m`, `5m` and `15m` from 2026-07-14 00:00 UTC; `1s`, `5s` and `15s` for the last 3 days. A window that ends before its interval's coverage is empty with `meta.coverage_from` and `meta.notice`; a window that straddles it is served from it.\n\n**Gaps:** a market that did not trade for more than 7 days has no buckets for that time: a gap, not zero. A second without trades has no record: up to `meta.built_through` it had no trades, after it nothing is known yet. Second records carry no `close`, `price_source`, cohort positions or counts.\n\n**Pagination:** a page holds up to `limit` buckets whose open is in `[start, end]`, oldest first, never past the bucket holding now; the bucket holding `end` is served whole. Set both `start` and `end` when paging, because the default window moves with the clock. Pass `meta.next_cursor` back with the other parameters unchanged and stop when it is absent: a page can hold fewer than `limit` buckets, or none, and still carry a cursor.\n\n**Finality:** a bucket with `is_final` true does not change. Buckets after the archive's end are `preliminary`: computed live, and replaced by the archived figures once those hours are built. `meta.preliminary_row_count` counts them.\n\n**Credits:** 1 credit per request.",
        "operationId": "getHyperliquidTradeIntent",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Hyperliquid core perp symbol (e.g., BTC, ETH).",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "example": "BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start of the window, inclusive. Defaults to 24 hours before `end`, so set it explicitly when paging: the default moves with the clock. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End of the window, inclusive. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "interval",
            "in": "query",
            "description": "Bucket width (default: 1h), on UTC epoch boundaries. Each family has its own coverage: see the description.",
            "schema": {
              "type": "string",
              "enum": [
                "1s",
                "5s",
                "15s",
                "1m",
                "5m",
                "15m",
                "1h",
                "4h",
                "1d"
              ],
              "default": "1h"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. It is the next page's first bucket open.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Buckets per page (default: 500, max: 2,000). A larger value is read as 2,000.",
            "schema": {
              "type": "integer",
              "default": 500,
              "maximum": 2000
            }
          }
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Trade intent buckets",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseTradeIntentBucketArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/cvd/{symbol}": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Convenience"
        ],
        "summary": "Get HIP-3 cumulative volume delta",
        "description": "Get cumulative volume delta buckets for a HIP-3 builder-perp symbol: taker buy and sell notional per bucket, their difference, and a running total. Intervals of 1h and longer roll up hourly totals; 1m, 5m, 15m and 30m are summed from taker fills. Live responses currently meter this route at 1 credit per request. Preserve the builder prefix and symbol case.\n\n**Buckets:** each bucket is labelled by its open time in UTC and is omitted when it holds no trades. 4h, 1d and 1w buckets open on UTC epoch boundaries, so 1w buckets open on Thursdays. Below 1h, a bucket is returned when it opens inside `[start, end]`, and it always covers its full interval. From 1h up, each bucket sums the hours that open inside `[start, end]`, so at 4h, 1d and 1w the first and last buckets of a window can be partial.\n\n**Pagination:** a page holds up to `limit` buckets (default 500, max 10000). While more buckets may follow inside `[start, end]`, `meta.next_cursor` is set: pass it back as `cursor` with `start`, `end` and `interval` unchanged, and stop when it is absent. Below 1h a page can hold fewer than `limit` buckets and still carry a cursor, so stop on the cursor, not on a short page. At the default `limit`, a window of up to 500 buckets is always one page. Without `start` or `cursor`, the response is the newest `limit` buckets of the 24 hours before `end` (or before now, when `end` is later), with no cursor.\n\n**Running total:** `cumulative_delta` is a running total of `delta` from the first bucket of each response, so it restarts on every page. To join pages, rebuild it from `delta`. A response that is one page of several says so in `meta.notice`.",
        "operationId": "getHip3Cvd",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-3 symbol with builder prefix. Case-sensitive.",
            "schema": {
              "type": "string",
              "example": "km:US500"
            },
            "example": "km:US500"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. When omitted, and no `cursor` is sent, the window is the 24 hours before `end` and the newest `limit` buckets of it are returned. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "interval",
            "in": "query",
            "description": "Bucket width (default: 1h). Intervals of 1h and longer roll up hourly totals; 1m, 5m, 15m and 30m are summed from taker fills. Any other value returns 400.",
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "30m",
                "1h",
                "4h",
                "1d",
                "1w"
              ],
              "default": "1h"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. Returns the buckets that open after it. Send it with the same `start`, `end` and `interval`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Buckets per page (default: 500, max: 10000)",
            "schema": {
              "type": "integer",
              "default": 500,
              "maximum": 10000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "HIP-3 CVD buckets",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseCvdBucketArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/trade-intent/{symbol}": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Trade Intent"
        ],
        "summary": "Get HIP-3 trade intent",
        "description": "Get, bucket by bucket, why one HIP-3 market traded: USD volume of new longs and shorts (`open_long`, `open_short`), profit taken (`tp_long`, `tp_short`), stopped out (`stop_long`, `stop_short`, liquidations and auto-deleveraging included) and flips through zero (`flip_ls`, `flip_sl`). Both sides of every trade are counted; market makers' volume is in `mm_usd` instead of an intent bucket. Each bucket also carries the market's winners and losers over the trailing 72 hours as aggregates (no wallet is named): their net and gross position, how many count at full weight, and their flow. HIP-3 symbols keep their builder prefix and case. Included with the Build, Pro, Scale and Enterprise plans. A key on another plan receives 403 `forbidden` naming the dataset, the plans that include it and where to upgrade, and is not charged.\n\n**Coverage:** `1h`, `4h` and `1d` from 2025-10-13 12:00 UTC; `1m`, `5m` and `15m` from 2026-07-14 00:00 UTC; `1s`, `5s` and `15s` for the last 3 days. A window that ends before its interval's coverage is empty with `meta.coverage_from` and `meta.notice`; a window that straddles it is served from it.\n\n**Gaps:** a market that did not trade for more than 7 days has no buckets for that time: a gap, not zero. A second without trades has no record: up to `meta.built_through` it had no trades, after it nothing is known yet. Second records carry no `close`, `price_source`, cohort positions or counts.\n\n**Pagination:** a page holds up to `limit` buckets whose open is in `[start, end]`, oldest first, never past the bucket holding now; the bucket holding `end` is served whole. Set both `start` and `end` when paging, because the default window moves with the clock. Pass `meta.next_cursor` back with the other parameters unchanged and stop when it is absent: a page can hold fewer than `limit` buckets, or none, and still carry a cursor.\n\n**Finality:** a bucket with `is_final` true does not change. Buckets after the archive's end are `preliminary`: computed live, and replaced by the archived figures once those hours are built. `meta.preliminary_row_count` counts them.\n\n**Credits:** 1 credit per request.",
        "operationId": "getHip3TradeIntent",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-3 symbol with its builder prefix, case-sensitive (e.g., xyz:XYZ100). A renamed market's display name reads its on-chain name.",
            "schema": {
              "type": "string",
              "example": "xyz:XYZ100"
            },
            "example": "xyz:XYZ100"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start of the window, inclusive. Defaults to 24 hours before `end`, so set it explicitly when paging: the default moves with the clock. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End of the window, inclusive. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "interval",
            "in": "query",
            "description": "Bucket width (default: 1h), on UTC epoch boundaries. Each family has its own coverage: see the description.",
            "schema": {
              "type": "string",
              "enum": [
                "1s",
                "5s",
                "15s",
                "1m",
                "5m",
                "15m",
                "1h",
                "4h",
                "1d"
              ],
              "default": "1h"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. It is the next page's first bucket open.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Buckets per page (default: 500, max: 2,000). A larger value is read as 2,000.",
            "schema": {
              "type": "integer",
              "default": 500,
              "maximum": 2000
            }
          }
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Trade intent buckets",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseTradeIntentBucketArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/liquidations/{symbol}/levels": {
      "get": {
        "tags": [
          "Hyperliquid - Liquidations"
        ],
        "summary": "Get Hyperliquid liquidation levels",
        "description": "Projected forced-liquidation levels computed from clearinghouse positions and margin state, aggregated into price buckets around the snapshot mark price. Snapshots are computed roughly every 5 minutes; the response's snapshot_ts identifies the snapshot served. Historical snapshots are retained from 2026-07-27: use the at parameter for a point-in-time read, or the /history variant to enumerate snapshots with cursor pagination. Available on every plan; the endpoint carries a premium per-request credit cost. Note: before 2026-07-23 this path served a pending trigger-order map; that data now lives at /orders/{symbol}/trigger-levels.",
        "operationId": "getHyperliquidLiquidationLevels",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Trading pair symbol.",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "example": "BTC"
          },
          {
            "name": "range_pct",
            "in": "query",
            "description": "Percentage range around the snapshot mid/mark price. Clamped between 1 and 50. Default 10.",
            "schema": {
              "type": "number",
              "default": 10,
              "minimum": 1,
              "maximum": 50
            }
          },
          {
            "name": "buckets",
            "in": "query",
            "description": "Number of price buckets. Clamped between 10 and 200. Default 50.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 10,
              "maximum": 200
            }
          },
          {
            "name": "side",
            "in": "query",
            "description": "Optional side filter. bid/buy/B keeps the long (or bid) side, ask/sell/A keeps the short (or ask) side; the other side is zeroed.",
            "schema": {
              "type": "string",
              "enum": [
                "bid",
                "ask",
                "buy",
                "sell",
                "B",
                "A"
              ]
            }
          },
          {
            "name": "at",
            "in": "query",
            "description": "Point-in-time read. Serves the newest snapshot at or before this instant. Omit for the latest snapshot. History begins 2026-07-27; earlier instants return 404. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get Hyperliquid liquidation levels",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseLiquidationLevels"
                },
                "examples": {
                  "raw": {
                    "summary": "Representative current response sourced from raw liquidation levels",
                    "value": {
                      "success": true,
                      "data": {
                        "mid_price": 64234,
                        "snapshot_ts": "2026-08-06 13:20:14.000",
                        "block_number": 1100170000,
                        "total_long": 826442891,
                        "total_short": 940536199.24,
                        "flagged_notional": 121607711.81,
                        "levels": [
                          {
                            "price": 63655.89,
                            "long_notional": 7411401.14,
                            "short_notional": 0,
                            "long_count": 190,
                            "short_count": 0
                          },
                          {
                            "price": 63784.36,
                            "long_notional": 6715249.11,
                            "short_notional": 0,
                            "long_count": 458,
                            "short_count": 0
                          },
                          {
                            "price": 63912.83,
                            "long_notional": 4028699.95,
                            "short_notional": 0,
                            "long_count": 344,
                            "short_count": 0
                          },
                          {
                            "price": 64041.3,
                            "long_notional": 1387884.13,
                            "short_notional": 0,
                            "long_count": 171,
                            "short_count": 0
                          },
                          {
                            "price": 64169.77,
                            "long_notional": 742482.09,
                            "short_notional": 0,
                            "long_count": 86,
                            "short_count": 0
                          },
                          {
                            "price": 64298.23,
                            "long_notional": 0,
                            "short_notional": 64234,
                            "long_count": 0,
                            "short_count": 1
                          },
                          {
                            "price": 64426.7,
                            "long_notional": 0,
                            "short_notional": 0,
                            "long_count": 0,
                            "short_count": 0
                          },
                          {
                            "price": 64555.17,
                            "long_notional": 0,
                            "short_notional": 0,
                            "long_count": 0,
                            "short_count": 0
                          },
                          {
                            "price": 64683.64,
                            "long_notional": 0,
                            "short_notional": 0,
                            "long_count": 0,
                            "short_count": 0
                          },
                          {
                            "price": 64812.11,
                            "long_notional": 0,
                            "short_notional": 0,
                            "long_count": 0,
                            "short_count": 0
                          }
                        ],
                        "source": "raw"
                      },
                      "meta": {
                        "count": 10,
                        "request_id": "a1b2c3d4-e5f6-4789-8abc-def012345678"
                      }
                    }
                  },
                  "histogram": {
                    "summary": "Representative current response sourced from a stored histogram",
                    "value": {
                      "success": true,
                      "data": {
                        "mid_price": 63871,
                        "snapshot_ts": "2026-08-02 16:25:06.000",
                        "block_number": 1095490000,
                        "total_long": 785802121.2,
                        "total_short": 834739310.48,
                        "flagged_notional": 0,
                        "levels": [
                          {
                            "price": 58122.61,
                            "long_notional": 83958706.7,
                            "short_notional": 18054.42,
                            "long_count": 1231,
                            "short_count": 2
                          },
                          {
                            "price": 59400.03,
                            "long_notional": 73999154.77,
                            "short_notional": 50.46,
                            "long_count": 753,
                            "short_count": 1
                          },
                          {
                            "price": 60677.45,
                            "long_notional": 47854533.03,
                            "short_notional": 0,
                            "long_count": 935,
                            "short_count": 0
                          },
                          {
                            "price": 61954.87,
                            "long_notional": 39840093.21,
                            "short_notional": 24801.11,
                            "long_count": 2402,
                            "short_count": 2
                          },
                          {
                            "price": 63232.29,
                            "long_notional": 1919748.29,
                            "short_notional": 7224430.93,
                            "long_count": 457,
                            "short_count": 556
                          },
                          {
                            "price": 64509.71,
                            "long_notional": 90958.69,
                            "short_notional": 57214522.14,
                            "long_count": 4,
                            "short_count": 1311
                          },
                          {
                            "price": 65787.13,
                            "long_notional": 5074713.82,
                            "short_notional": 31458405.35,
                            "long_count": 3,
                            "short_count": 558
                          },
                          {
                            "price": 67064.55,
                            "long_notional": 1156673.15,
                            "short_notional": 66646595.42,
                            "long_count": 4,
                            "short_count": 454
                          },
                          {
                            "price": 68341.97,
                            "long_notional": 434765.43,
                            "short_notional": 107401882.13,
                            "long_count": 10,
                            "short_count": 992
                          },
                          {
                            "price": 69619.39,
                            "long_notional": 110833.43,
                            "short_notional": 69719137.34,
                            "long_count": 6,
                            "short_count": 582
                          }
                        ],
                        "source": "histogram",
                        "source_bin_width": 319.355
                      },
                      "meta": {
                        "count": 10,
                        "request_id": "b2c3d4e5-f6a7-4890-9bcd-ef0123456789"
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/liquidations/{symbol}/levels": {
      "get": {
        "tags": [
          "HIP-3 - Liquidations"
        ],
        "summary": "Get HIP-3 liquidation levels",
        "description": "Projected forced-liquidation levels computed from clearinghouse positions and margin state, aggregated into price buckets around the snapshot mark price. Snapshots are computed roughly every 5 minutes; the response's snapshot_ts identifies the snapshot served. Historical snapshots are retained from 2026-07-27: use the at parameter for a point-in-time read, or the /history variant to enumerate snapshots with cursor pagination. Available on every plan; the endpoint carries a premium per-request credit cost. Note: before 2026-07-27 this path served a pending trigger-order map; that data now lives at /orders/{symbol}/trigger-levels. For HIP-3, cross-margined exposure is reported in flagged_notional and excluded from buckets.",
        "operationId": "getHip3LiquidationLevels",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Trading pair symbol.",
            "schema": {
              "type": "string",
              "example": "xyz:TSLA"
            },
            "example": "xyz:TSLA"
          },
          {
            "name": "range_pct",
            "in": "query",
            "description": "Percentage range around the snapshot mid/mark price. Clamped between 1 and 50. Default 10.",
            "schema": {
              "type": "number",
              "default": 10,
              "minimum": 1,
              "maximum": 50
            }
          },
          {
            "name": "buckets",
            "in": "query",
            "description": "Number of price buckets. Clamped between 10 and 200. Default 50.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 10,
              "maximum": 200
            }
          },
          {
            "name": "side",
            "in": "query",
            "description": "Optional side filter. bid/buy/B keeps the long (or bid) side, ask/sell/A keeps the short (or ask) side; the other side is zeroed.",
            "schema": {
              "type": "string",
              "enum": [
                "bid",
                "ask",
                "buy",
                "sell",
                "B",
                "A"
              ]
            }
          },
          {
            "name": "at",
            "in": "query",
            "description": "Point-in-time read. Serves the newest snapshot at or before this instant. Omit for the latest snapshot. History begins 2026-07-27; earlier instants return 404. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get HIP-3 liquidation levels",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseLiquidationLevels"
                },
                "examples": {
                  "raw": {
                    "summary": "Representative current response sourced from raw liquidation levels",
                    "value": {
                      "success": true,
                      "data": {
                        "mid_price": 318.98,
                        "snapshot_ts": "2026-08-06 13:20:14.000",
                        "block_number": 1100170000,
                        "total_long": 9439936.86,
                        "total_short": 12457314.46,
                        "flagged_notional": 15437186.38,
                        "levels": [
                          {
                            "price": 316.1092,
                            "long_notional": 2947.38,
                            "short_notional": 0,
                            "long_count": 4,
                            "short_count": 0
                          },
                          {
                            "price": 316.7471,
                            "long_notional": 5528.56,
                            "short_notional": 0,
                            "long_count": 6,
                            "short_count": 0
                          },
                          {
                            "price": 317.3851,
                            "long_notional": 0,
                            "short_notional": 0,
                            "long_count": 0,
                            "short_count": 0
                          },
                          {
                            "price": 318.0231,
                            "long_notional": 2001.92,
                            "short_notional": 0,
                            "long_count": 4,
                            "short_count": 0
                          },
                          {
                            "price": 318.661,
                            "long_notional": 0,
                            "short_notional": 0,
                            "long_count": 0,
                            "short_count": 0
                          },
                          {
                            "price": 319.299,
                            "long_notional": 0,
                            "short_notional": 0,
                            "long_count": 0,
                            "short_count": 0
                          },
                          {
                            "price": 319.9369,
                            "long_notional": 0,
                            "short_notional": 0,
                            "long_count": 0,
                            "short_count": 0
                          },
                          {
                            "price": 320.5749,
                            "long_notional": 0,
                            "short_notional": 0,
                            "long_count": 0,
                            "short_count": 0
                          },
                          {
                            "price": 321.2129,
                            "long_notional": 0,
                            "short_notional": 0,
                            "long_count": 0,
                            "short_count": 0
                          },
                          {
                            "price": 321.8508,
                            "long_notional": 0,
                            "short_notional": 0,
                            "long_count": 0,
                            "short_count": 0
                          }
                        ],
                        "source": "raw"
                      },
                      "meta": {
                        "count": 10,
                        "request_id": "c3d4e5f6-a7b8-4901-abcd-f0123456789a"
                      }
                    }
                  },
                  "histogram": {
                    "summary": "Representative current response sourced from a stored histogram",
                    "value": {
                      "success": true,
                      "data": {
                        "mid_price": 322.86,
                        "snapshot_ts": "2026-08-02 18:46:43.000",
                        "block_number": 1095610000,
                        "total_long": 9707806.14,
                        "total_short": 13189198.41,
                        "flagged_notional": 15254536.42,
                        "levels": [
                          {
                            "price": 293.8026,
                            "long_notional": 221368.31,
                            "short_notional": 0,
                            "long_count": 64,
                            "short_count": 0
                          },
                          {
                            "price": 300.2598,
                            "long_notional": 120836.17,
                            "short_notional": 0,
                            "long_count": 35,
                            "short_count": 0
                          },
                          {
                            "price": 306.717,
                            "long_notional": 6712.26,
                            "short_notional": 0,
                            "long_count": 15,
                            "short_count": 0
                          },
                          {
                            "price": 313.1742,
                            "long_notional": 0,
                            "short_notional": 48.75,
                            "long_count": 0,
                            "short_count": 1
                          },
                          {
                            "price": 319.6314,
                            "long_notional": 0,
                            "short_notional": 327341.3,
                            "long_count": 0,
                            "short_count": 10
                          },
                          {
                            "price": 326.0886,
                            "long_notional": 0,
                            "short_notional": 3690.61,
                            "long_count": 0,
                            "short_count": 4
                          },
                          {
                            "price": 332.5458,
                            "long_notional": 0,
                            "short_notional": 59987.71,
                            "long_count": 0,
                            "short_count": 10
                          },
                          {
                            "price": 339.003,
                            "long_notional": 0,
                            "short_notional": 55121.89,
                            "long_count": 0,
                            "short_count": 3
                          },
                          {
                            "price": 345.4602,
                            "long_notional": 0,
                            "short_notional": 461.37,
                            "long_count": 0,
                            "short_count": 3
                          },
                          {
                            "price": 351.9174,
                            "long_notional": 0,
                            "short_notional": 374.52,
                            "long_count": 0,
                            "short_count": 4
                          }
                        ],
                        "source": "histogram",
                        "source_bin_width": 1.6143
                      },
                      "meta": {
                        "count": 10,
                        "request_id": "d4e5f6a7-b8c9-4012-bcde-0123456789ab"
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/oracle/external-price/{symbol}": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Oracle"
        ],
        "summary": "Get HIP-3 oracle external price",
        "description": "Get the latest deployer-pushed external reference price and mark price for a HIP-3 market. Live responses currently meter this route at 1 credit per request.",
        "operationId": "getHip3OracleExternalPrice",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-3 symbol with builder prefix. Case-sensitive.",
            "schema": {
              "type": "string",
              "example": "km:US500"
            },
            "example": "km:US500"
          }
        ],
        "responses": {
          "200": {
            "description": "HIP-3 oracle external price",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseHip3OracleExternalPrice"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/oracle/discovery-bounds/{symbol}": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Oracle"
        ],
        "summary": "Get HIP-3 oracle discovery bounds",
        "description": "Get the instantaneous discovery bounds for a HIP-3 market using the current reference price and max leverage. The full ratcheted range can be wider when deployer-specific reset config applies. Live responses currently meter this route at 1 credit per request.",
        "operationId": "getHip3OracleDiscoveryBounds",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-3 symbol with builder prefix. Case-sensitive.",
            "schema": {
              "type": "string",
              "example": "km:US500"
            },
            "example": "km:US500"
          }
        ],
        "responses": {
          "200": {
            "description": "HIP-3 oracle discovery bounds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseHip3OracleDiscoveryBounds"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip4/outcomes/by-slug/{slug}": {
      "get": {
        "tags": [
          "HIP-4 Outcomes - Outcomes"
        ],
        "summary": "Get HIP-4 outcome by slug",
        "description": "Look up a HIP-4 outcome aggregate by synthesized outcome slug or side slug, for example `btc-above-78213-may-04-0600` or `btc-above-78213-yes-may-04-0600`. Returns the same aggregate shape as `/outcomes/{outcome_id}` with `aggregated_oi` populated when available.",
        "operationId": "getHip4OutcomeBySlug",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "HIP-4 outcome or side slug.",
            "schema": {
              "type": "string",
              "example": "btc-above-78213-may-04-0600"
            },
            "example": "btc-above-78213-may-04-0600"
          }
        ],
        "responses": {
          "200": {
            "description": "HIP-4 outcome aggregate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseHip4OutcomeAggregate"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip4/questions": {
      "get": {
        "tags": [
          "HIP-4 Outcomes - Questions"
        ],
        "summary": "List HIP-4 questions",
        "description": "List HIP-4 question groupings. A question groups one or more binary outcome markets. Use cursor pagination for full crawls.",
        "operationId": "listHip4Questions",
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 100, max: 1000)",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "HIP-4 questions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseHip4QuestionArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip4/questions/{question_id}": {
      "get": {
        "tags": [
          "HIP-4 Outcomes - Questions"
        ],
        "summary": "Get a single HIP-4 question",
        "description": "Get one HIP-4 question grouping by question ID.",
        "operationId": "getHip4Question",
        "parameters": [
          {
            "name": "question_id",
            "in": "path",
            "required": true,
            "description": "Numeric HIP-4 question ID.",
            "schema": {
              "type": "integer",
              "format": "int64",
              "example": 0
            },
            "example": 0
          }
        ],
        "responses": {
          "200": {
            "description": "HIP-4 question",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseHip4Question"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/spot/orderbook/{symbol}/history": {
      "get": {
        "tags": [
          "Hyperliquid Spot - Order Book"
        ],
        "summary": "Get Hyperliquid Spot order book history",
        "description": "Get historical Hyperliquid Spot L2 order book snapshots for a pair. The route is scoped to Spot pair symbols such as `HYPE-USDC`; do not use core perp symbols or HIP identifiers. Explicit endpoint cost is 5 credits per request.",
        "operationId": "getHyperliquidSpotOrderbookHistory",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Hyperliquid Spot pair symbol, for example HYPE-USDC.",
            "schema": {
              "type": "string",
              "example": "HYPE-USDC"
            },
            "example": "HYPE-USDC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults depend on the route family. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 100, max: 1000)",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          },
          {
            "name": "depth",
            "in": "query",
            "description": "Number of price levels per side.",
            "schema": {
              "type": "integer",
              "example": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Spot order book snapshots",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOrderBookArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/lighter/liquidations/{symbol}": {
      "get": {
        "tags": [
          "Lighter - Liquidations"
        ],
        "summary": "Get Lighter liquidation events",
        "description": "Get Lighter liquidation events in a bounded time range using cursor pagination. Lighter liquidations are available only from the start of live capture; no public historical backfill is available before that window. Explicit endpoint cost is 3 credits per request.",
        "operationId": "getLighterLiquidations",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Lighter market symbol.",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "example": "BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults depend on the route family. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 100, max: 1000)",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Lighter liquidation events",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseLighterLiquidationArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/lighter/liquidations/{symbol}/volume": {
      "get": {
        "tags": [
          "Lighter - Liquidations"
        ],
        "summary": "Get Lighter liquidation volume",
        "description": "Get aggregated Lighter liquidation volume in time-bucketed intervals. Long/short classification follows Lighter liquidation trade semantics. Explicit endpoint cost is 3 credits per request.",
        "operationId": "getLighterLiquidationVolume",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Lighter market symbol.",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "example": "BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults depend on the route family. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 100, max: 1000)",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          },
          {
            "name": "interval",
            "in": "query",
            "description": "Aggregation interval. Defaults to 1h.",
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "30m",
                "1h",
                "4h",
                "1d"
              ],
              "default": "1h"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Lighter liquidation volume buckets",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseLighterLiquidationVolumeArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/wallets/classify": {
      "get": {
        "tags": [
          "Hyperliquid - Wallets"
        ],
        "summary": "Classify Hyperliquid wallets",
        "description": "Return precomputed daily behavioral metrics for active Hyperliquid wallets with filtering, sorting, and pagination. Explicit endpoint cost is 10 credits per request, with row-based metering applied to returned wallet count where enabled.",
        "operationId": "classifyHyperliquidWallets",
        "parameters": [
          {
            "name": "min_orders",
            "in": "query",
            "description": "Minimum order count. Default 100.",
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 100
            }
          },
          {
            "name": "min_volume_usd",
            "in": "query",
            "description": "Minimum fill volume in USD.",
            "schema": {
              "type": "number",
              "default": 0
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "Metric to sort by.",
            "schema": {
              "type": "string",
              "default": "total_orders",
              "enum": [
                "total_orders",
                "total_fills",
                "total_volume",
                "total_volume_usd",
                "cancel_rate",
                "fill_rate",
                "maker_ratio",
                "avg_order_size_usd",
                "avg_order_notional",
                "max_order_size_usd",
                "max_order_notional",
                "active_hours",
                "unique_coins",
                "total_fees",
                "total_fees_usd",
                "realized_pnl",
                "realized_pnl_usd",
                "median_cancel_speed_ms",
                "twap_fills",
                "total_priority_gas",
                "total_priority_gas_paid",
                "total_builder_fees",
                "total_builder_fees_paid"
              ]
            }
          },
          {
            "name": "order",
            "in": "query",
            "description": "Sort order.",
            "schema": {
              "type": "string",
              "default": "desc",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum wallets to return (default: 100, max: 1000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "minimum": 1,
              "maximum": 1000
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Pagination offset. Capped at 100000.",
            "schema": {
              "type": "integer",
              "default": 0,
              "maximum": 100000
            }
          },
          {
            "name": "uses_twap",
            "in": "query",
            "description": "Filter wallets by TWAP usage.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "uses_priority_gas",
            "in": "query",
            "description": "Filter wallets by priority-gas usage.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "min_cancel_rate",
            "in": "query",
            "description": "Minimum cancel rate, from 0.0 to 1.0.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1
            }
          },
          {
            "name": "max_cancel_rate",
            "in": "query",
            "description": "Maximum cancel rate, from 0.0 to 1.0.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1
            }
          },
          {
            "name": "date",
            "in": "query",
            "description": "Daily snapshot date (YYYY-MM-DD). Defaults to yesterday.",
            "schema": {
              "type": "string",
              "format": "date",
              "example": "2026-06-16"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Wallet classification results",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseWalletClassifyData"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/positioning": {
      "get": {
        "tags": [
          "Hyperliquid - Positioning"
        ],
        "summary": "Get Hyperliquid positioning",
        "description": "Get every listed Hyperliquid core perp over a trailing window in one response: open interest and mark at the window's start and end, taker buy and sell notional, long and short liquidations, and the market's typical move over windows of the same length, so Hyperliquid core markets can be ranked or grouped by positioning without a history read per market. Included with the Build, Pro, Scale and Enterprise plans. A key on another plan receives 403 `forbidden` naming the dataset, the plans that include it and where to upgrade, and is not charged.\n\n**Window:** `window` is required: `1h`, `4h` or `24h`. The window is `[window_start, window_end)` and ends at the newest 5-minute boundary at least 4 minutes old; `meta.as_of` names it. Shortly after a new boundary a response can still describe the previous one while the next is prepared, so compare `meta.as_of` across responses. Current window only: history is not served, and every parameter other than `window` is refused with 400 `invalid_parameter` naming it.\n\n**Records:** one per market, sorted by symbol, not paged. `oi_start` and `mark_start` are the 5-minute readings of the bucket before the window, `oi_end` and `mark_end` those of its last bucket; each is null, never 0, when its bucket has no reading. `typical_price`, `typical_oi` and `typical_flow` are the median absolute move over every window of the same length sliding by 5 minutes through the last 2,000 five-minute buckets (about 6.9 days); under 288 counted windows they are null.\n\nIf the cross-section is still being prepared, the route answers 503 `upstream_unavailable` with `Retry-After`.\n\n**Credits:** 1 credit per request.",
        "operationId": "getPositioning",
        "parameters": [
          {
            "name": "window",
            "in": "query",
            "required": true,
            "description": "The trailing window. Required.",
            "schema": {
              "type": "string",
              "enum": [
                "1h",
                "4h",
                "24h"
              ]
            }
          }
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "One positioning record per listed perp",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponsePositioningArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/wallets/classify": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Wallets"
        ],
        "summary": "Classify HIP-3 wallets",
        "description": "Return precomputed daily behavioral metrics for active HIP-3 wallets with filtering, sorting, and pagination. Explicit endpoint cost is 10 credits per request, with row-based metering applied to returned wallet count where enabled.",
        "operationId": "classifyHip3Wallets",
        "parameters": [
          {
            "name": "min_orders",
            "in": "query",
            "description": "Minimum order count. Default 100.",
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 100
            }
          },
          {
            "name": "min_volume_usd",
            "in": "query",
            "description": "Minimum fill volume in USD.",
            "schema": {
              "type": "number",
              "default": 0
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "Metric to sort by.",
            "schema": {
              "type": "string",
              "default": "total_orders",
              "enum": [
                "total_orders",
                "total_fills",
                "total_volume",
                "total_volume_usd",
                "cancel_rate",
                "fill_rate",
                "maker_ratio",
                "avg_order_size_usd",
                "avg_order_notional",
                "max_order_size_usd",
                "max_order_notional",
                "active_hours",
                "unique_coins",
                "total_fees",
                "total_fees_usd",
                "realized_pnl",
                "realized_pnl_usd",
                "median_cancel_speed_ms",
                "twap_fills",
                "total_priority_gas",
                "total_priority_gas_paid",
                "total_builder_fees",
                "total_builder_fees_paid"
              ]
            }
          },
          {
            "name": "order",
            "in": "query",
            "description": "Sort order.",
            "schema": {
              "type": "string",
              "default": "desc",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum wallets to return (default: 100, max: 1000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "minimum": 1,
              "maximum": 1000
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Pagination offset. Capped at 100000.",
            "schema": {
              "type": "integer",
              "default": 0,
              "maximum": 100000
            }
          },
          {
            "name": "uses_twap",
            "in": "query",
            "description": "Filter wallets by TWAP usage.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "uses_priority_gas",
            "in": "query",
            "description": "Filter wallets by priority-gas usage.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "min_cancel_rate",
            "in": "query",
            "description": "Minimum cancel rate, from 0.0 to 1.0.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1
            }
          },
          {
            "name": "max_cancel_rate",
            "in": "query",
            "description": "Maximum cancel rate, from 0.0 to 1.0.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1
            }
          },
          {
            "name": "date",
            "in": "query",
            "description": "Daily snapshot date (YYYY-MM-DD). Defaults to yesterday.",
            "schema": {
              "type": "string",
              "format": "date",
              "example": "2026-06-16"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "HIP-3 wallet classification results",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseWalletClassifyData"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/positioning": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Positioning"
        ],
        "summary": "Get HIP-3 positioning",
        "description": "Get every HIP-3 perp with open interest in the last hour over a trailing window in one response: open interest and mark at the window's start and end, taker buy and sell notional, long and short liquidations, and the market's typical move over windows of the same length, so HIP-3 markets can be ranked or grouped by positioning without a history read per market. Included with the Build, Pro, Scale and Enterprise plans. A key on another plan receives 403 `forbidden` naming the dataset, the plans that include it and where to upgrade, and is not charged.\n\n**Window:** `window` is required: `1h`, `4h` or `24h`. The window is `[window_start, window_end)` and ends at the newest 5-minute boundary at least 4 minutes old; `meta.as_of` names it. Shortly after a new boundary a response can still describe the previous one while the next is prepared, so compare `meta.as_of` across responses. Current window only: history is not served, and every parameter other than `window` is refused with 400 `invalid_parameter` naming it.\n\n**Records:** one per market, sorted by symbol, not paged. `oi_start` and `mark_start` are the 5-minute readings of the bucket before the window, `oi_end` and `mark_end` those of its last bucket; each is null, never 0, when its bucket has no reading. `typical_price`, `typical_oi` and `typical_flow` are the median absolute move over every window of the same length sliding by 5 minutes through the last 2,000 five-minute buckets (about 6.9 days); under 288 counted windows they are null.\n\nIf the cross-section is still being prepared, the route answers 503 `upstream_unavailable` with `Retry-After`.\n\n**Credits:** 1 credit per request.",
        "operationId": "getHip3Positioning",
        "parameters": [
          {
            "name": "window",
            "in": "query",
            "required": true,
            "description": "The trailing window. Required.",
            "schema": {
              "type": "string",
              "enum": [
                "1h",
                "4h",
                "24h"
              ]
            }
          }
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "One positioning record per HIP-3 perp",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponsePositioningArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/symbols": {
      "get": {
        "tags": [
          "System"
        ],
        "summary": "List public symbols",
        "description": "List the public market symbol universe across supported 0xArchive venue families. This no-auth feed powers website discovery and can be used before choosing a venue-specific route. It is a public utility route, not a legacy alias. Without `0xArchive-Version` the entries are under `symbols`; with `0xArchive-Version: 2026-10-01` the body is the standard envelope with the entries under `data`.",
        "operationId": "listSymbols",
        "security": [],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Public symbol universe",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/SymbolsResponse"
                    },
                    {
                      "$ref": "#/components/schemas/SymbolsEnvelope"
                    }
                  ]
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/stats": {
      "get": {
        "tags": [
          "System"
        ],
        "summary": "Get public API stats",
        "description": "Get lightweight public statistics used by website/product surfaces. This is a no-auth public utility route, not a legacy alias.",
        "operationId": "getPublicStats",
        "security": [],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Public statistics",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatsResponse"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/status/coverage": {
      "get": {
        "tags": [
          "System"
        ],
        "summary": "Get public coverage status",
        "description": "Get the public coverage summary used by status and discovery surfaces. Response is cached by the API for five minutes. This no-auth public utility route reuses the data-quality coverage shape and is not a legacy alias. Without `0xArchive-Version` the body is the route's own object plus `success` and `meta.request_id`; with `0xArchive-Version: 2026-10-01` it is the standard envelope with that object under `data`.",
        "operationId": "getPublicCoverageStatus",
        "security": [],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Public coverage status",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "title": "Default shape",
                      "description": "Without `0xArchive-Version`: the route's own object plus `success` and `meta.request_id`.",
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CoverageResponse"
                        },
                        {
                          "$ref": "#/components/schemas/OutlierEnvelopeKeys"
                        }
                      ]
                    },
                    {
                      "title": "Version 2026-10-01",
                      "description": "With `0xArchive-Version: 2026-10-01`: the standard envelope, with the route's own object under `data`.",
                      "type": "object",
                      "required": [
                        "success",
                        "data",
                        "meta"
                      ],
                      "properties": {
                        "success": {
                          "type": "boolean",
                          "enum": [
                            true
                          ]
                        },
                        "data": {
                          "$ref": "#/components/schemas/CoverageResponse"
                        },
                        "meta": {
                          "$ref": "#/components/schemas/ResponseMeta"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/status/incidents": {
      "get": {
        "tags": [
          "System"
        ],
        "summary": "List public incidents",
        "description": "List recent data incidents for status pages and monitors, newest first. No API key is needed and no credits are used. Responses may be cached for up to 60 seconds. The body is always the standard envelope, with the same object as `/v1/data-quality/incidents` under `data`. Read-only: use `/v1/data-quality/incidents` for filtering by exchange or time and for paging.",
        "operationId": "listPublicIncidents",
        "security": [],
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "description": "Return only incidents in this status. Omit it for every status.",
            "schema": {
              "type": "string",
              "enum": [
                "open",
                "investigating",
                "identified",
                "monitoring",
                "resolved"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of incidents to return (default: 5, max: 20)",
            "schema": {
              "type": "integer",
              "default": 5,
              "minimum": 1,
              "maximum": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Recent incidents",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "$ref": "#/components/schemas/IncidentsResponse"
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ResponseMeta"
                    }
                  }
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/status/incidents/{id}": {
      "get": {
        "tags": [
          "System"
        ],
        "summary": "Get public incident",
        "description": "Get one data incident by ID for status pages and monitors. No API key is needed and no credits are used. Responses may be cached for up to 60 seconds. The body is always the standard envelope, with the same object as `/v1/data-quality/incidents/{id}` under `data`.",
        "operationId": "getPublicIncident",
        "security": [],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Incident ID",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Incident details",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "$ref": "#/components/schemas/Incident"
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ResponseMeta"
                    }
                  }
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/capabilities": {
      "get": {
        "tags": [
          "System"
        ],
        "summary": "List capabilities",
        "description": "What each venue serves: one row per venue and datatype, with its REST routes, WebSocket channels, whether it streams live and replays history, the first served instant, cadence, page limit and accepted intervals. It is the source for coverage tables and channel lists; `/v1/symbols` gives per-symbol coverage. Public: no API key and no credits. Cached for five minutes. L4 and full-depth WebSocket replay is bulk (speed is ignored) and single-channel only; the `notes` of those rows say so.",
        "operationId": "listCapabilities",
        "security": [],
        "parameters": [],
        "responses": {
          "200": {
            "description": "One row per venue and datatype",
            "headers": {
              "Cache-Control": {
                "description": "`public, max-age=300, s-maxage=300`.",
                "schema": {
                  "type": "string"
                }
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseCapabilityArray"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/auth/web3/verify": {
      "post": {
        "tags": [
          "Web3 Authentication"
        ],
        "summary": "Verify SIWE signature",
        "description": "Verify a signed SIWE message for an existing active wallet account, consume the single-use nonce, and set auth cookies for browser/session flows. Unknown wallets receive HTTP 403 with `wallet_account_required`; verification never creates a Free account. Standard Free signup is available at https://0xarchive.io/signup and paid wallet access at `/v1/web3/subscribe`.",
        "operationId": "web3Verify",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Web3VerifyRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "SIWE verification succeeded and session cookies were set.",
            "headers": {
              "Set-Cookie": {
                "schema": {
                  "type": "string"
                },
                "description": "Authentication cookies for browser/session clients."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Web3AuthResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "description": "The wallet does not have an existing account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 403,
                  "error_code": "wallet_account_required",
                  "error": "This wallet does not have an existing account. Use standard signup for Free access or purchase paid wallet access.",
                  "request_id": "00000000-0000-0000-0000-000000000000"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/liquidations/{symbol}/levels/history": {
      "get": {
        "tags": [
          "Hyperliquid - Liquidations"
        ],
        "summary": "Get Hyperliquid liquidation levels history",
        "description": "Historical liquidation-levels snapshots (about every 5 minutes, retained from 2026-07-27), ascending by `snapshot_ts`. Cursor pagination: pass `start`/`end`/`limit` and follow `meta.next_cursor` as the `cursor` parameter. `summary=true` omits only `levels` while retaining `snapshot_ts`, `block_number`, `mid_price`, `total_long`, `total_short`, and `flagged_notional`.",
        "operationId": "getHyperliquidLiquidationLevelsHistory",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Trading pair symbol.",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "example": "BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Range start, inclusive. Default: 24 hours before end. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "Range end, inclusive. Default: now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. The page continues strictly after it.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Snapshots per page. Default 24, maximum 100. When a page is full, meta.next_cursor carries the cursor for the next page.",
            "schema": {
              "type": "integer",
              "default": 24,
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "summary",
            "in": "query",
            "description": "When true, omits only `levels` while retaining `snapshot_ts`, `block_number`, `mid_price`, `total_long`, `total_short`, and `flagged_notional`. Cheap way to discover which snapshots exist before fetching full histograms.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "range_pct",
            "in": "query",
            "description": "Percentage range around the snapshot mid/mark price. Clamped between 1 and 50. Default 10.",
            "schema": {
              "type": "number",
              "default": 10,
              "minimum": 1,
              "maximum": 50
            }
          },
          {
            "name": "buckets",
            "in": "query",
            "description": "Number of price buckets. Clamped between 10 and 200. Default 50.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 10,
              "maximum": 200
            }
          },
          {
            "name": "side",
            "in": "query",
            "description": "Optional side filter. bid/buy/B keeps the long (or bid) side, ask/sell/A keeps the short (or ask) side; the other side is zeroed.",
            "schema": {
              "type": "string",
              "enum": [
                "bid",
                "ask",
                "buy",
                "sell",
                "B",
                "A"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get Hyperliquid liquidation levels history",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseLiquidationLevelsHistory"
                },
                "examples": {
                  "historical": {
                    "summary": "Representative historical response after proportional re-binning",
                    "value": {
                      "success": true,
                      "data": [
                        {
                          "snapshot_ts": "2026-08-05 14:03:07.000",
                          "block_number": 1099000000,
                          "mid_price": 64281,
                          "total_long": 792122474.4,
                          "total_short": 875697280.92,
                          "flagged_notional": 137629962.54,
                          "levels": [
                            {
                              "price": 58495.71,
                              "long_notional": 89531699.15,
                              "short_notional": 0,
                              "long_count": 1328,
                              "short_count": 0
                            },
                            {
                              "price": 59781.33,
                              "long_notional": 25152539.49,
                              "short_notional": 0,
                              "long_count": 624,
                              "short_count": 0
                            },
                            {
                              "price": 61066.95,
                              "long_notional": 37926175.04,
                              "short_notional": 0,
                              "long_count": 795,
                              "short_count": 0
                            },
                            {
                              "price": 62352.57,
                              "long_notional": 26595035.98,
                              "short_notional": 0,
                              "long_count": 1019,
                              "short_count": 0
                            },
                            {
                              "price": 63638.19,
                              "long_notional": 26376652.21,
                              "short_notional": 0,
                              "long_count": 1143,
                              "short_count": 0
                            },
                            {
                              "price": 64923.81,
                              "long_notional": 0,
                              "short_notional": 158162269.8,
                              "long_count": 0,
                              "short_count": 3049
                            },
                            {
                              "price": 66209.43,
                              "long_notional": 0,
                              "short_notional": 42138204.92,
                              "long_count": 0,
                              "short_count": 1201
                            },
                            {
                              "price": 67495.05,
                              "long_notional": 0,
                              "short_notional": 98948611.74,
                              "long_count": 0,
                              "short_count": 641
                            },
                            {
                              "price": 68780.67,
                              "long_notional": 0,
                              "short_notional": 46481321.12,
                              "long_count": 0,
                              "short_count": 750
                            },
                            {
                              "price": 70066.29,
                              "long_notional": 0,
                              "short_notional": 134790633.49,
                              "long_count": 0,
                              "short_count": 1031
                            }
                          ]
                        }
                      ],
                      "meta": {
                        "count": 1,
                        "request_id": "e5f6a7b8-c9d0-4123-8def-123456789abc",
                        "has_more": false
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/liquidations/{symbol}/levels/history": {
      "get": {
        "tags": [
          "HIP-3 - Liquidations"
        ],
        "summary": "Get HIP-3 liquidation levels history",
        "description": "Historical liquidation-levels snapshots (about every 5 minutes, retained from 2026-07-27), ascending by `snapshot_ts`. Cursor pagination: pass `start`/`end`/`limit` and follow `meta.next_cursor` as the `cursor` parameter. `summary=true` omits only `levels` while retaining `snapshot_ts`, `block_number`, `mid_price`, `total_long`, `total_short`, and `flagged_notional`.",
        "operationId": "getHip3LiquidationLevelsHistory",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Trading pair symbol.",
            "schema": {
              "type": "string",
              "example": "xyz:TSLA"
            },
            "example": "xyz:TSLA"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Range start, inclusive. Default: 24 hours before end. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "Range end, inclusive. Default: now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. The page continues strictly after it.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Snapshots per page. Default 24, maximum 100. When a page is full, meta.next_cursor carries the cursor for the next page.",
            "schema": {
              "type": "integer",
              "default": 24,
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "summary",
            "in": "query",
            "description": "When true, omits only `levels` while retaining `snapshot_ts`, `block_number`, `mid_price`, `total_long`, `total_short`, and `flagged_notional`. Cheap way to discover which snapshots exist before fetching full histograms.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "range_pct",
            "in": "query",
            "description": "Percentage range around the snapshot mid/mark price. Clamped between 1 and 50. Default 10.",
            "schema": {
              "type": "number",
              "default": 10,
              "minimum": 1,
              "maximum": 50
            }
          },
          {
            "name": "buckets",
            "in": "query",
            "description": "Number of price buckets. Clamped between 10 and 200. Default 50.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 10,
              "maximum": 200
            }
          },
          {
            "name": "side",
            "in": "query",
            "description": "Optional side filter. bid/buy/B keeps the long (or bid) side, ask/sell/A keeps the short (or ask) side; the other side is zeroed.",
            "schema": {
              "type": "string",
              "enum": [
                "bid",
                "ask",
                "buy",
                "sell",
                "B",
                "A"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get HIP-3 liquidation levels history",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseLiquidationLevelsHistory"
                },
                "examples": {
                  "historical": {
                    "summary": "Representative historical response after proportional re-binning",
                    "value": {
                      "success": true,
                      "data": [
                        {
                          "snapshot_ts": "2026-08-05 14:03:07.000",
                          "block_number": 1099000000,
                          "mid_price": 325.07,
                          "total_long": 9851910.14,
                          "total_short": 12394193.54,
                          "flagged_notional": 15392787.78,
                          "levels": [
                            {
                              "price": 295.8137,
                              "long_notional": 124883.12,
                              "short_notional": 0,
                              "long_count": 33,
                              "short_count": 0
                            },
                            {
                              "price": 302.3151,
                              "long_notional": 106188.67,
                              "short_notional": 0,
                              "long_count": 51,
                              "short_count": 0
                            },
                            {
                              "price": 308.8165,
                              "long_notional": 76139.52,
                              "short_notional": 0,
                              "long_count": 14,
                              "short_count": 0
                            },
                            {
                              "price": 315.3179,
                              "long_notional": 48138.32,
                              "short_notional": 0,
                              "long_count": 47,
                              "short_count": 0
                            },
                            {
                              "price": 321.8193,
                              "long_notional": 1856.47,
                              "short_notional": 0,
                              "long_count": 5,
                              "short_count": 0
                            },
                            {
                              "price": 328.3207,
                              "long_notional": 0,
                              "short_notional": 870.54,
                              "long_count": 0,
                              "short_count": 2
                            },
                            {
                              "price": 334.8221,
                              "long_notional": 0,
                              "short_notional": 32169.58,
                              "long_count": 0,
                              "short_count": 11
                            },
                            {
                              "price": 341.3235,
                              "long_notional": 0,
                              "short_notional": 17878.85,
                              "long_count": 0,
                              "short_count": 1
                            },
                            {
                              "price": 347.8249,
                              "long_notional": 0,
                              "short_notional": 25706.21,
                              "long_count": 0,
                              "short_count": 9
                            },
                            {
                              "price": 354.3263,
                              "long_notional": 0,
                              "short_notional": 1654.61,
                              "long_count": 0,
                              "short_count": 10
                            }
                          ]
                        }
                      ],
                      "meta": {
                        "count": 1,
                        "request_id": "f6a7b8c9-d0e1-4234-9efa-23456789abcd",
                        "has_more": false
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/orders/{symbol}/trigger-levels": {
      "get": {
        "tags": [
          "Hyperliquid - Orders"
        ],
        "summary": "Get Hyperliquid trigger levels",
        "description": "Currently pending stop-loss and take-profit trigger orders grouped into price buckets near the current mid/mark price. These are voluntary trigger orders, not projected forced liquidations; for forced-liquidation levels use /liquidations/{symbol}/levels. Current-state map with an as_of freshness timestamp. Historical snapshots (15-minute cadence, retained from 2026-07-27) are at the /history variant.",
        "operationId": "getHyperliquidTriggerLevels",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Trading pair symbol.",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "example": "BTC"
          },
          {
            "name": "range_pct",
            "in": "query",
            "description": "Percentage range around the snapshot mid/mark price. Clamped between 1 and 50. Default 10.",
            "schema": {
              "type": "number",
              "default": 10,
              "minimum": 1,
              "maximum": 50
            }
          },
          {
            "name": "buckets",
            "in": "query",
            "description": "Number of price buckets. Clamped between 10 and 200. Default 50.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 10,
              "maximum": 200
            }
          },
          {
            "name": "side",
            "in": "query",
            "description": "Optional side filter. bid/buy/B keeps the long (or bid) side, ask/sell/A keeps the short (or ask) side; the other side is zeroed.",
            "schema": {
              "type": "string",
              "enum": [
                "bid",
                "ask",
                "buy",
                "sell",
                "B",
                "A"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get Hyperliquid trigger levels",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseTriggerLevels"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/orders/{symbol}/trigger-levels": {
      "get": {
        "tags": [
          "HIP-3 - Orders"
        ],
        "summary": "Get HIP-3 trigger levels",
        "description": "Currently pending stop-loss and take-profit trigger orders grouped into price buckets near the current mid/mark price. These are voluntary trigger orders, not projected forced liquidations; for forced-liquidation levels use /liquidations/{symbol}/levels. Current-state map with an as_of freshness timestamp. Historical snapshots (15-minute cadence, retained from 2026-07-27) are at the /history variant.",
        "operationId": "getHip3TriggerLevels",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Trading pair symbol.",
            "schema": {
              "type": "string",
              "example": "xyz:TSLA"
            },
            "example": "xyz:TSLA"
          },
          {
            "name": "range_pct",
            "in": "query",
            "description": "Percentage range around the snapshot mid/mark price. Clamped between 1 and 50. Default 10.",
            "schema": {
              "type": "number",
              "default": 10,
              "minimum": 1,
              "maximum": 50
            }
          },
          {
            "name": "buckets",
            "in": "query",
            "description": "Number of price buckets. Clamped between 10 and 200. Default 50.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 10,
              "maximum": 200
            }
          },
          {
            "name": "side",
            "in": "query",
            "description": "Optional side filter. bid/buy/B keeps the long (or bid) side, ask/sell/A keeps the short (or ask) side; the other side is zeroed.",
            "schema": {
              "type": "string",
              "enum": [
                "bid",
                "ask",
                "buy",
                "sell",
                "B",
                "A"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get HIP-3 trigger levels",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseTriggerLevels"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/orders/{symbol}/trigger-levels/history": {
      "get": {
        "tags": [
          "Hyperliquid - Orders"
        ],
        "summary": "Get Hyperliquid trigger levels history",
        "description": "Historical trigger-levels snapshots (15-minute cadence, retained from 2026-07-27), ascending by snapshot_ts. Cursor pagination: pass start/end/limit and follow meta.next_cursor as the cursor parameter. summary=true lists snapshots cheaply without histograms.",
        "operationId": "getHyperliquidTriggerLevelsHistory",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Trading pair symbol.",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "example": "BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Range start, inclusive. Default: 24 hours before end. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "Range end, inclusive. Default: now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. The page continues strictly after it.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Snapshots per page. Default 24, maximum 100. When a page is full, meta.next_cursor carries the cursor for the next page.",
            "schema": {
              "type": "integer",
              "default": 24,
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "summary",
            "in": "query",
            "description": "When true, items contain snapshot_ts, mid price and totals only (no levels array). Cheap way to discover which snapshots exist before fetching full histograms.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "range_pct",
            "in": "query",
            "description": "Percentage range around the snapshot mid/mark price. Clamped between 1 and 50. Default 10.",
            "schema": {
              "type": "number",
              "default": 10,
              "minimum": 1,
              "maximum": 50
            }
          },
          {
            "name": "buckets",
            "in": "query",
            "description": "Number of price buckets. Clamped between 10 and 200. Default 50.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 10,
              "maximum": 200
            }
          },
          {
            "name": "side",
            "in": "query",
            "description": "Optional side filter. bid/buy/B keeps the long (or bid) side, ask/sell/A keeps the short (or ask) side; the other side is zeroed.",
            "schema": {
              "type": "string",
              "enum": [
                "bid",
                "ask",
                "buy",
                "sell",
                "B",
                "A"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get Hyperliquid trigger levels history",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseTriggerLevelsHistory"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/orders/{symbol}/trigger-levels/history": {
      "get": {
        "tags": [
          "HIP-3 - Orders"
        ],
        "summary": "Get HIP-3 trigger levels history",
        "description": "Historical trigger-levels snapshots (15-minute cadence, retained from 2026-07-27), ascending by snapshot_ts. Cursor pagination: pass start/end/limit and follow meta.next_cursor as the cursor parameter. summary=true lists snapshots cheaply without histograms.",
        "operationId": "getHip3TriggerLevelsHistory",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Trading pair symbol.",
            "schema": {
              "type": "string",
              "example": "xyz:TSLA"
            },
            "example": "xyz:TSLA"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Range start, inclusive. Default: 24 hours before end. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "Range end, inclusive. Default: now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. The page continues strictly after it.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Snapshots per page. Default 24, maximum 100. When a page is full, meta.next_cursor carries the cursor for the next page.",
            "schema": {
              "type": "integer",
              "default": 24,
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "summary",
            "in": "query",
            "description": "When true, items contain snapshot_ts, mid price and totals only (no levels array). Cheap way to discover which snapshots exist before fetching full histograms.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "range_pct",
            "in": "query",
            "description": "Percentage range around the snapshot mid/mark price. Clamped between 1 and 50. Default 10.",
            "schema": {
              "type": "number",
              "default": 10,
              "minimum": 1,
              "maximum": 50
            }
          },
          {
            "name": "buckets",
            "in": "query",
            "description": "Number of price buckets. Clamped between 10 and 200. Default 50.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 10,
              "maximum": 200
            }
          },
          {
            "name": "side",
            "in": "query",
            "description": "Optional side filter. bid/buy/B keeps the long (or bid) side, ask/sell/A keeps the short (or ask) side; the other side is zeroed.",
            "schema": {
              "type": "string",
              "enum": [
                "bid",
                "ask",
                "buy",
                "sell",
                "B",
                "A"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get HIP-3 trigger levels history",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseTriggerLevelsHistory"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/webhooks/event-types": {
      "get": {
        "tags": [
          "Webhooks - Catalog and Limits"
        ],
        "summary": "List webhook event types",
        "description": "Return the served event catalog: one declaration per event type, carrying its scope, covered venues, accepted filters, tunable parameters, the metrics conditions may be written against, the operator vocabulary for each metric type, and the smallest occurrence the type reports. Subscriptions are validated against these declarations, so this is the authority on what a configuration may contain. Types marked `live: false` are published but do not yet accept subscriptions. Authenticate with an API key or a signed-in dashboard session. Costs no credits.",
        "operationId": "listWebhookEventTypes",
        "responses": {
          "200": {
            "description": "The served webhook event catalog",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseWebhookEventTypeArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/webhooks/limits": {
      "get": {
        "tags": [
          "Webhooks - Catalog and Limits"
        ],
        "summary": "Get webhook plan limits and usage",
        "description": "What this plan allows for webhooks and what is currently in use: endpoints, subscriptions, watched wallets, today's delivery budget and how many subscriptions are paused. Free has no webhook delivery, so `included` is false and every cap is zero. Build allows 1 endpoint, 8 subscriptions, 2 watched wallets and 5,000 deliveries a day; Pro allows 4, 40, 15 and 50,000; Scale allows 12, 200, 50 and 500,000; Enterprise allows 100, 2,000, 250 and deliveries without a daily ceiling. The estimate and the dry-run stay available on every plan, so `preview_included` is always true. The delivery budget resets on its own and a paused subscription does not, which is why the paused count is reported here next to it. Authenticate with an API key or a signed-in dashboard session. Costs no credits.",
        "operationId": "getWebhookLimits",
        "responses": {
          "200": {
            "description": "Webhook plan limits and current usage",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseWebhookLimits"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/webhooks/endpoints": {
      "get": {
        "tags": [
          "Webhooks - Endpoints"
        ],
        "summary": "List webhook endpoints",
        "description": "Your delivery destinations, oldest first. The signing secret is never returned here: it is shown once when an endpoint is created and again when it is rotated. Authenticate with an API key or a signed-in dashboard session. Costs no credits.",
        "operationId": "listWebhookEndpoints",
        "responses": {
          "200": {
            "description": "Your webhook delivery endpoints",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseWebhookEndpointArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "tags": [
          "Webhooks - Endpoints"
        ],
        "summary": "Create a webhook endpoint",
        "description": "Register an HTTPS destination and get its signing secret. The secret is returned in this response and in a rotation, and nowhere else, so store it now. Destinations that resolve to a private or internal address are refused, at creation and again on every delivery. A plan without webhook delivery, or one already at its endpoint cap, is refused with the reason and the way forward. Authenticate with an API key or a signed-in dashboard session. Costs no credits. Deliveries are signed with the secret in the `0xa-signature` header (see the `delivery` callback).",
        "operationId": "createWebhookEndpoint",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEndpointCreateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The new endpoint and its signing secret",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseWebhookEndpointCreated"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "callbacks": {
          "delivery": {
            "{$request.body#/url}": {
              "post": {
                "summary": "Webhook delivery",
                "description": "How 0xArchive delivers an event to a `json`, `discord` or `slack` endpoint. Any 2xx response acknowledges it. Redirects are not followed. Each attempt times out after 10 seconds. A failed delivery is retried after 5 s, 30 s, 2 min, 10 min, 1 h and then hourly, for up to 24 hours; a `Retry-After` header on a non-2xx response (1 to 300 seconds) replaces the next step. After at least 10 consecutive failures spanning six hours the endpoint is `auto_disabled`. Telegram endpoints receive a chat message instead, without these headers.",
                "operationId": "receiveWebhookDelivery",
                "parameters": [
                  {
                    "name": "0xa-signature",
                    "in": "header",
                    "required": true,
                    "description": "Signature of the delivery, in the form `t=<unix seconds>,v1=<hex>`. `v1` is the lowercase hex HMAC-SHA256 of the string `<t>.<raw body>`, keyed with the endpoint's signing secret (the full `whsec_...` string as UTF-8 bytes). Verify over the raw request bytes before parsing them. For 24 hours after a secret rotation the header carries two `v1` values, `t=<t>,v1=<new secret>,v1=<previous secret>`; accept the delivery when either matches. `t` is set on each attempt, so compare it with your clock to reject replays.",
                    "schema": {
                      "type": "string",
                      "example": "t=1767225600,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"
                    }
                  },
                  {
                    "name": "0xa-event-id",
                    "in": "header",
                    "required": true,
                    "description": "Event identifier; equals the body `id` and is stable across retries.",
                    "schema": {
                      "type": "string",
                      "format": "uuid"
                    }
                  },
                  {
                    "name": "0xa-event-type",
                    "in": "header",
                    "required": true,
                    "description": "Event type; equals the body `type`.",
                    "schema": {
                      "type": "string",
                      "example": "market.liquidation"
                    }
                  },
                  {
                    "name": "User-Agent",
                    "in": "header",
                    "required": false,
                    "description": "`0xArchive-Webhooks/1.0`.",
                    "schema": {
                      "type": "string"
                    }
                  }
                ],
                "requestBody": {
                  "required": true,
                  "content": {
                    "application/json": {
                      "schema": {
                        "$ref": "#/components/schemas/WebhookDeliveryEnvelope"
                      }
                    }
                  }
                },
                "responses": {
                  "2XX": {
                    "description": "Delivered. The response body is ignored."
                  },
                  "default": {
                    "description": "Not delivered; the event is retried on the schedule above."
                  }
                }
              }
            }
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/webhooks/endpoints/{id}": {
      "delete": {
        "tags": [
          "Webhooks - Endpoints"
        ],
        "summary": "Delete a webhook endpoint",
        "description": "Remove a delivery destination and every subscription pointing at it. Authenticate with an API key or a signed-in dashboard session. Costs no credits.",
        "operationId": "deleteWebhookEndpoint",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Endpoint identifier.",
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "3c1f0a52-8d6b-4f0e-9b1a-6f2c4d8e9a10"
            },
            "example": "3c1f0a52-8d6b-4f0e-9b1a-6f2c4d8e9a10"
          }
        ],
        "responses": {
          "200": {
            "description": "The endpoint was deleted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseWebhookAck"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/webhooks/endpoints/{id}/rotate": {
      "post": {
        "tags": [
          "Webhooks - Endpoints"
        ],
        "summary": "Rotate a webhook endpoint secret",
        "description": "Issue a new signing secret for the endpoint and return it. The previous secret keeps verifying for 24 hours, so a receiver can accept both while it rolls over. This and endpoint creation are the only responses that carry a secret. Authenticate with an API key or a signed-in dashboard session. Costs no credits.",
        "operationId": "rotateWebhookEndpointSecret",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Endpoint identifier.",
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "3c1f0a52-8d6b-4f0e-9b1a-6f2c4d8e9a10"
            },
            "example": "3c1f0a52-8d6b-4f0e-9b1a-6f2c4d8e9a10"
          }
        ],
        "responses": {
          "200": {
            "description": "The new signing secret",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseWebhookEndpointSecret"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/webhooks/endpoints/{id}/enable": {
      "post": {
        "tags": [
          "Webhooks - Endpoints"
        ],
        "summary": "Enable a webhook endpoint",
        "description": "Put an endpoint back into service after you switched it off, or after a long run of failed deliveries switched it off for you. Deliveries resume on the next matching event; nothing that happened while it was off is replayed. Authenticate with an API key or a signed-in dashboard session. Costs no credits.",
        "operationId": "enableWebhookEndpoint",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Endpoint identifier.",
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "3c1f0a52-8d6b-4f0e-9b1a-6f2c4d8e9a10"
            },
            "example": "3c1f0a52-8d6b-4f0e-9b1a-6f2c4d8e9a10"
          }
        ],
        "responses": {
          "200": {
            "description": "The endpoint is active again",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseWebhookAck"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/webhooks/endpoints/{id}/test": {
      "post": {
        "tags": [
          "Webhooks - Endpoints"
        ],
        "summary": "Send a test delivery",
        "description": "Queue a `webhook.test` event to the endpoint so you can confirm your receiver and your signature verification work end to end. The delivery appears in the endpoint's delivery log like any other. It is a real signed delivery, so it is priced like one: it counts against today's delivery budget, and it is refused on a plan without webhook delivery or once that budget is spent. A refusal here never pauses a subscription. Authenticate with an API key or a signed-in dashboard session. Costs no credits.",
        "operationId": "testWebhookEndpoint",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Endpoint identifier.",
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "3c1f0a52-8d6b-4f0e-9b1a-6f2c4d8e9a10"
            },
            "example": "3c1f0a52-8d6b-4f0e-9b1a-6f2c4d8e9a10"
          }
        ],
        "responses": {
          "200": {
            "description": "The test delivery was queued",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseWebhookDeliveryQueued"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "Today's delivery budget is already spent, so the test event was not queued. Send it after the budget resets.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 409,
                  "error_code": "conflict",
                  "error": "The account is at today's limit of 5000 webhook deliveries. A test event counts against that limit, so it would not be sent. The daily allowance resets at 2026-09-21 00:00 UTC.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/webhooks/endpoints/{id}/deliveries": {
      "get": {
        "tags": [
          "Webhooks - Deliveries"
        ],
        "summary": "List deliveries for an endpoint",
        "description": "The endpoint's delivery log, newest first, with the event payload as sent, the attempt count, the status your receiver returned and the timing of the last attempt. One event and one endpoint share a single record for their whole life, so a repeat delivery rewrites that record rather than adding another. Authenticate with an API key or a signed-in dashboard session. Costs no credits.",
        "operationId": "listWebhookDeliveries",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Endpoint identifier.",
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "3c1f0a52-8d6b-4f0e-9b1a-6f2c4d8e9a10"
            },
            "example": "3c1f0a52-8d6b-4f0e-9b1a-6f2c4d8e9a10"
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Deliveries to return, newest first. Values outside the range are clamped to it.",
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The endpoint's delivery log",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseWebhookDeliveryArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/webhooks/deliveries/{id}/redeliver": {
      "post": {
        "tags": [
          "Webhooks - Deliveries"
        ],
        "summary": "Send a past delivery again",
        "description": "Queue a delivery that has already been attempted for another attempt. The delivery and event identifiers are unchanged, so a receiver that already processed the event can deduplicate on the event identifier. The record is reset in place: the retry window and the attempt counter start again from now, and the previous attempt's status, error and timing are cleared, so the log entry then describes the repeat rather than the original failure. If the delivery's endpoint is switched off the request is refused rather than queued, because nothing would be sent. A repeat delivery is a real signed delivery, so it counts against today's delivery budget, and it is refused on a plan without webhook delivery or once that budget is spent. Authenticate with an API key or a signed-in dashboard session. Costs no credits.",
        "operationId": "redeliverWebhookDelivery",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Delivery identifier.",
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "3c1f0a52-8d6b-4f0e-9b1a-6f2c4d8e9a10"
            },
            "example": "3c1f0a52-8d6b-4f0e-9b1a-6f2c4d8e9a10"
          }
        ],
        "responses": {
          "200": {
            "description": "The delivery was queued for another attempt",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseWebhookRedelivery"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "Nothing was queued, either because the delivery's endpoint is switched off or because today's delivery budget is already spent.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "endpointSwitchedOff": {
                    "summary": "The delivery's endpoint is switched off, so nothing would be sent",
                    "value": {
                      "success": false,
                      "code": 409,
                      "error_code": "conflict",
                      "error": "This delivery's endpoint is disabled, so nothing would be sent. Re-enable it with POST /v1/webhooks/endpoints/3c1f0a52-8d6b-4f0e-9b1a-6f2c4d8e9a10/enable, then redeliver.",
                      "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                    }
                  },
                  "budgetSpent": {
                    "summary": "Today's delivery budget is already spent",
                    "value": {
                      "success": false,
                      "code": 409,
                      "error_code": "conflict",
                      "error": "The account is at today's limit of 5000 webhook deliveries. This redelivery counts against that limit, so it would not be sent. The daily allowance resets at 2026-09-21 00:00 UTC.",
                      "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                    }
                  }
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/webhooks/subscriptions": {
      "get": {
        "tags": [
          "Webhooks - Subscriptions"
        ],
        "summary": "List webhook subscriptions",
        "description": "Your rules across every endpoint, with their configuration and their pause state. A paused rule also carries `pause_message`, which says why it is paused and what clears it. Authenticate with an API key or a signed-in dashboard session. Costs no credits.",
        "operationId": "listWebhookSubscriptions",
        "responses": {
          "200": {
            "description": "Your webhook subscriptions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseWebhookSubscriptionArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "tags": [
          "Webhooks - Subscriptions"
        ],
        "summary": "Create a webhook subscription",
        "description": "Subscribe an endpoint to an event type. The configuration is checked against the event type's catalog declaration before anything is stored, so an unknown key, an undeclared parameter, an out of range value or a condition on a metric the event does not carry is refused rather than quietly dropped. The endpoint must be one of yours. Addresses used in the configuration must already be on your watched list. A plan without webhook delivery, or one already at its subscription cap, is refused with the reason and the way forward. Authenticate with an API key or a signed-in dashboard session. Costs no credits.",
        "operationId": "createWebhookSubscription",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookSubscriptionCreateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The new subscription",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseWebhookSubscription"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/webhooks/subscriptions/dry-run": {
      "post": {
        "tags": [
          "Webhooks - Previews"
        ],
        "summary": "Dry-run a webhook subscription",
        "description": "Which occurrences in the last `lookback_s` seconds would this configuration have delivered? The configuration is validated and normalised exactly as a create, then evaluated against recent history. Nothing is stored and no delivery is sent. Available for `account.fill`, `account.transfer` and `market.liquidation`; another type is refused with the list of the ones that work. An address scoped type needs at least one watched wallet to report on. Authenticate with an API key or a signed-in dashboard session. Available on every plan, including Free, and metered like the market data it returns. At most six estimates and dry-runs a minute per account, shared between the two.",
        "operationId": "dryRunWebhookSubscription",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookDryRunRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Occurrences the configuration would have delivered",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseWebhookDryRun"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "The dry-run could not be produced right now. Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "upstream_unavailable",
                  "error": "dry-run is temporarily unavailable",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "504": {
            "description": "The scan ran out of time before it could answer. Narrow the window or the configuration and try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 504,
                  "error_code": "upstream_unavailable",
                  "error": "dry-run timed out before it could scan the whole window; try a shorter lookback_s",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/webhooks/subscriptions/estimate": {
      "post": {
        "tags": [
          "Webhooks - Previews"
        ],
        "summary": "Estimate a webhook subscription",
        "description": "How often would this configuration have fired over the last `lookback_days`? Returns the total, a count per day of the window, the median and busiest day, the distribution of the event's primary metric, a ladder of what the daily rate would be at other thresholds, and a sample of real matches, so a threshold can be chosen against history rather than guessed. The configuration is validated and normalised exactly as a create. Nothing is stored and no delivery is sent. Available for `account.fill`, `account.transfer`, `account.liquidated`, `market.liquidation`, `market.pga_payment`, `hip4.settlement`, `market.liquidation_burst`, `market.oi_delta`, `oracle.jump` and `market.funding_flip`; another type is refused with the list of the ones that work. An address scoped type needs at least one watched wallet to report on. Authenticate with an API key or a signed-in dashboard session. Available on every plan, including Free, and metered like the market data it returns. At most six estimates and dry-runs a minute per account, shared between the two.",
        "operationId": "estimateWebhookSubscription",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEstimateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "How often the configuration would have fired",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseWebhookEstimate"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "The estimate could not be produced right now. Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "upstream_unavailable",
                  "error": "estimate is temporarily unavailable",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/webhooks/subscriptions/resume": {
      "post": {
        "tags": [
          "Webhooks - Subscriptions"
        ],
        "summary": "Resume every paused subscription",
        "description": "Put every paused rule on the account back into service in one call. The daily delivery limit is counted per account while the pause is written per rule, so one busy rule can pause all of them; this is how an account comes back without a call per rule. Nothing is buffered while a rule is paused, so the response hands back the window that was missed instead of replaying it. If nothing is paused, nothing changes and the response says so. If resuming would be undone within seconds, because the plan has no webhook delivery or today's budget is already spent, the request is refused with the reason rather than granted and reversed. Authenticate with an API key or a signed-in dashboard session. Costs no credits.",
        "operationId": "resumeAllWebhookSubscriptions",
        "responses": {
          "200": {
            "description": "The rules that were put back into service, and the window they missed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseWebhookSubscriptionResumeAll"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "409": {
            "description": "Today's delivery budget is already spent, so the rules would pause again immediately. Resume after the budget resets.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 409,
                  "error_code": "conflict",
                  "error": "You are still at today's delivery limit. These rules would pause again immediately. Resume after 2026-09-21 00:00 UTC.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/webhooks/subscriptions/{id}": {
      "patch": {
        "tags": [
          "Webhooks - Subscriptions"
        ],
        "summary": "Update a webhook subscription",
        "description": "Edit a rule in place. A configuration you send replaces the stored one and is validated exactly as it was at create; `enabled` switches the rule on or off without touching its configuration. A field you leave out is left alone. Authenticate with an API key or a signed-in dashboard session. Costs no credits.",
        "operationId": "updateWebhookSubscription",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Subscription identifier.",
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "3c1f0a52-8d6b-4f0e-9b1a-6f2c4d8e9a10"
            },
            "example": "3c1f0a52-8d6b-4f0e-9b1a-6f2c4d8e9a10"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookSubscriptionUpdateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated subscription",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseWebhookSubscription"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "delete": {
        "tags": [
          "Webhooks - Subscriptions"
        ],
        "summary": "Delete a webhook subscription",
        "description": "Remove a rule. Its endpoint and any other rule pointing at it are untouched. Authenticate with an API key or a signed-in dashboard session. Costs no credits.",
        "operationId": "deleteWebhookSubscription",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Subscription identifier.",
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "3c1f0a52-8d6b-4f0e-9b1a-6f2c4d8e9a10"
            },
            "example": "3c1f0a52-8d6b-4f0e-9b1a-6f2c4d8e9a10"
          }
        ],
        "responses": {
          "200": {
            "description": "The subscription was deleted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseWebhookAck"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/webhooks/subscriptions/{id}/resume": {
      "post": {
        "tags": [
          "Webhooks - Subscriptions"
        ],
        "summary": "Resume a paused subscription",
        "description": "Put one paused rule back into service. Nothing is buffered while a rule is paused, so the response hands back the window that was missed, how much of it was counted and what can be re-read from the REST routes, instead of replaying it. A rule that is already serving is left exactly as it is, with `gap` null. If resuming would be undone within seconds, because the plan has no webhook delivery or today's budget is already spent, the request is refused with the reason rather than granted and reversed. Your own on and off switch is never touched by a resume. Authenticate with an API key or a signed-in dashboard session. Costs no credits.",
        "operationId": "resumeWebhookSubscription",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Subscription identifier.",
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "3c1f0a52-8d6b-4f0e-9b1a-6f2c4d8e9a10"
            },
            "example": "3c1f0a52-8d6b-4f0e-9b1a-6f2c4d8e9a10"
          }
        ],
        "responses": {
          "200": {
            "description": "The subscription, and the window it missed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseWebhookSubscriptionResume"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "Today's delivery budget is already spent, so the rule would pause again immediately. Resume after the budget resets.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 409,
                  "error_code": "conflict",
                  "error": "You are still at today's delivery limit. This rule would pause again immediately. Resume after 2026-09-21 00:00 UTC.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/webhooks/addresses": {
      "get": {
        "tags": [
          "Webhooks - Watched Addresses"
        ],
        "summary": "List watched wallet addresses",
        "description": "The wallets address scoped event types report on, with the number of wallets this plan allows. Authenticate with an API key or a signed-in dashboard session. Costs no credits.",
        "operationId": "listWebhookWatchedAddresses",
        "responses": {
          "200": {
            "description": "Your watched wallet addresses",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseWebhookWatchedAddressArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "tags": [
          "Webhooks - Watched Addresses"
        ],
        "summary": "Add a watched wallet address",
        "description": "Add a wallet so address scoped event types can report on it. Adding a wallet that is already watched changes nothing and does not count against the cap again. Hyperliquid bridge system addresses are refused, because such an address is a counterparty to every bridge movement of its token rather than an account. A plan without webhook delivery, or one already at its watched wallet cap, is refused with the reason and the way forward. Authenticate with an API key or a signed-in dashboard session. Costs no credits.",
        "operationId": "addWebhookWatchedAddress",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookWatchedAddressCreateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The watched wallet address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseWebhookWatchedAddress"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/webhooks/addresses/{id}": {
      "delete": {
        "tags": [
          "Webhooks - Watched Addresses"
        ],
        "summary": "Delete a watched wallet address",
        "description": "Stop watching a wallet. Subscriptions that named it keep their stored configuration, so remove the address from those rules too if you no longer want them to reference it. Authenticate with an API key or a signed-in dashboard session. Costs no credits.",
        "operationId": "deleteWebhookWatchedAddress",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Watched address identifier.",
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "3c1f0a52-8d6b-4f0e-9b1a-6f2c4d8e9a10"
            },
            "example": "3c1f0a52-8d6b-4f0e-9b1a-6f2c4d8e9a10"
          }
        ],
        "responses": {
          "200": {
            "description": "The watched wallet address was removed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseWebhookAck"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/feedback": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ],
      "post": {
        "tags": [
          "Feedback"
        ],
        "summary": "Submit product feedback",
        "description": "Anonymous submissions are allowed. If credentials are supplied via X-API-Key, Authorization: Bearer, or the ox_access_token browser cookie, they must validate; an authenticated submission is associated only with the server-validated account. OAuth access tokens require the mcp:feedback.write scope. The optional email field is for anonymous contact and never establishes account identity; authenticated submissions use the account email. type accepts bug, feature, question, or other. For security reports send type=other and category=security. category defaults to support. Reproduction details should be appended to message; this endpoint has no free-text context field. The message is limited to 5,000 UTF-8 bytes. Do not include secrets.",
        "operationId": "submitFeedback",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Optional key with 8-128 visible ASCII characters (0x21-0x7e). Reuse it only for an identical retry; a different request with the same key returns 409.",
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 128,
              "pattern": "^[!-~]{8,128}$"
            }
          }
        ],
        "security": [
          {},
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          },
          {
            "BrowserSessionCookieAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FeedbackSubmissionRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "HTTP 202: feedback accepted with a receipt identifier.",
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeedbackSubmissionResponse"
                },
                "example": {
                  "success": true,
                  "data": {
                    "id": "53f2a55a-72b9-43e6-a182-f266bc47e302",
                    "status": "received"
                  },
                  "meta": {
                    "count": 1,
                    "request_id": "9b2f4f0e-3c55-4a7a-9d0e-6a1c2b7e5f10"
                  },
                  "message": "Thank you for your feedback!"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "description": "A supplied X-API-Key, bearer token, or browser session cookie is invalid or expired.",
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "The authenticated credential is valid but does not have permission to submit feedback.",
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "The same Idempotency-Key was already used for a different feedback request.",
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "description": "The feedback submission could not be accepted due to a server error.",
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/rh-lighter/instruments": {
      "get": {
        "tags": [
          "Lighter on Robinhood Chain - Instruments"
        ],
        "summary": "List Lighter on Robinhood Chain instruments",
        "description": "List every Lighter on Robinhood Chain market with its specification: 84 USDG-quoted markets, 57 perpetuals (`market_type: perp`, uppercase symbols such as BTC) and 27 spot pairs (`market_type: spot`, dashed symbols such as AAPL-USDG). Returns `LighterInstrument` objects with fees, market IDs, and minimum order amounts. Symbols can match Lighter mainnet symbols but name different markets.",
        "operationId": "listRhLighterInstruments",
        "responses": {
          "200": {
            "description": "List of Lighter instruments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseLighterInstrumentArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/rh-lighter/instruments/{symbol}": {
      "get": {
        "tags": [
          "Lighter on Robinhood Chain - Instruments"
        ],
        "summary": "Get Lighter on Robinhood Chain instrument",
        "description": "Get the specification of one Lighter on Robinhood Chain market. Returns a `LighterInstrument` object with fees, market ID, and minimum order amounts.",
        "operationId": "getRhLighterInstrument",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "description": "Market symbol on Lighter on Robinhood Chain. Perpetuals use the uppercase base symbol (BTC); spot pairs are dashed and USDG-quoted (AAPL-USDG). List markets with GET /v1/rh-lighter/instruments.",
            "example": "BTC"
          }
        ],
        "responses": {
          "200": {
            "description": "Lighter instrument details",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseLighterInstrument"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/rh-lighter/orderbook/{symbol}": {
      "get": {
        "tags": [
          "Lighter on Robinhood Chain - Order Book"
        ],
        "summary": "Get Lighter on Robinhood Chain order book",
        "description": "Get the latest Lighter on Robinhood Chain L2 order book, or the book at a specific timestamp. Returns price, size, and order count at each level. Served from August 22, 2026 18:43 UTC.",
        "operationId": "getRhLighterOrderbook",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Market symbol on Lighter on Robinhood Chain. Perpetuals use the uppercase base symbol (BTC); spot pairs are dashed and USDG-quoted (AAPL-USDG). List markets with GET /v1/rh-lighter/instruments.",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "example": "BTC"
          },
          {
            "name": "timestamp",
            "in": "query",
            "description": "Instant to read. If not provided, returns latest snapshot. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": 1788000000000
          },
          {
            "name": "depth",
            "in": "query",
            "description": "Requested price levels per side. The Lighter native L2 route includes all served levels.",
            "schema": {
              "type": "integer",
              "example": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Order book snapshot",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOrderBook"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/rh-lighter/orderbook/{symbol}/history": {
      "get": {
        "tags": [
          "Lighter on Robinhood Chain - Order Book"
        ],
        "summary": "Get Lighter on Robinhood Chain order book history",
        "description": "Get historical Lighter on Robinhood Chain L2 order book snapshots within a time range with configurable resolution. History starts August 22, 2026 18:43 UTC at every granularity. Use the `granularity` parameter to control data resolution.\n\n**Tick-Level Data:**\nWhen `granularity=tick`, the response format changes. Instead of returning snapshots in the `data` array, it returns:\n- `checkpoint`: Full orderbook state at the start of the time range\n- `deltas`: Array of incremental changes to apply to the checkpoint\n\nThis is the most efficient format for reconstructing high-frequency orderbook states. Use the SDK's `OrderBookReconstructor` class for client-side reconstruction.",
        "operationId": "getRhLighterOrderbookHistory",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "description": "Market symbol on Lighter on Robinhood Chain. Perpetuals use the uppercase base symbol (BTC); spot pairs are dashed and USDG-quoted (AAPL-USDG). List markets with GET /v1/rh-lighter/instruments.",
            "example": "BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24h ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor_seq",
            "in": "query",
            "required": false,
            "description": "`granularity=tick` only: the `data.next_cursor_seq` of the previous page, sent with `cursor`. Many deltas share a millisecond, so tick paging needs both. Ignored at other granularities.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 100, max: 1000)",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          },
          {
            "name": "depth",
            "in": "query",
            "description": "Requested price levels per side. The Lighter native L2 route includes all served levels.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "granularity",
            "in": "query",
            "description": "Data resolution: checkpoint (1min, default), 30s, 10s, 1s, tick. History starts August 22, 2026 18:43 UTC at every granularity. Billed per row returned (about 1 credit per 1,000 rows, minimum 1 credit per request). Higher resolutions return more rows. **Note:** When granularity=tick, the response format changes to return `checkpoint` and `deltas` instead of a `data` array. `60s` and `1m` are accepted for `checkpoint`, and `delta` and `deltas` for `tick`. An unrecognised value is currently served as `checkpoint`.",
            "schema": {
              "type": "string",
              "enum": [
                "checkpoint",
                "30s",
                "10s",
                "1s",
                "tick"
              ],
              "default": "checkpoint"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of order book snapshots",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOrderBookArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/rh-lighter/trades/{symbol}": {
      "get": {
        "tags": [
          "Lighter on Robinhood Chain - Trades"
        ],
        "summary": "Get Lighter on Robinhood Chain trades",
        "description": "Get canonical Lighter on Robinhood Chain trades (two fill rows per trade, one per account) within a time range. Served from the venue launch on June 26, 2026 20:10:26 UTC. History is canonical only: `end` is clamped to `meta.finalized_through`, about a day behind real time, and `meta.requested_end` plus `meta.clamped_to` report a clamp. Use `/recent` for the preliminary tier.\n\n**Pagination:** Use the `cursor` parameter with the value from the previous response's `next_cursor` for efficient pagination.",
        "operationId": "getRhLighterTrades",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "description": "Market symbol on Lighter on Robinhood Chain. Perpetuals use the uppercase base symbol (BTC); spot pairs are dashed and USDG-quoted (AAPL-USDG). List markets with GET /v1/rh-lighter/instruments.",
            "example": "BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24h ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "side",
            "in": "query",
            "required": false,
            "description": "Keep one side of the tape: `buy` or `sell` (case-insensitive). Omit it for both. The filter runs before paging, so a full page still holds `limit` matching trades and the cursor pages the filtered tape. Any other value answers 400 `invalid_parameter` with `param` and `valid_values`.",
            "schema": {
              "type": "string",
              "enum": [
                "buy",
                "sell"
              ]
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of trades (default: 100, max: 50000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 50000,
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of trades with cursor for next page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseLighterTradeArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/rh-lighter/trades/{symbol}/recent": {
      "get": {
        "tags": [
          "Lighter on Robinhood Chain - Trades"
        ],
        "summary": "Get recent Lighter on Robinhood Chain trades",
        "description": "Get the most recent Lighter on Robinhood Chain trades, ordered by timestamp descending. Includes preliminary real-time rows (`source: \"ws\"`) past `meta.finalized_through`; `meta.preliminary_row_count` reports how many rows in the page are not final yet.",
        "operationId": "getRhLighterRecentTrades",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "description": "Market symbol on Lighter on Robinhood Chain. Perpetuals use the uppercase base symbol (BTC); spot pairs are dashed and USDG-quoted (AAPL-USDG). List markets with GET /v1/rh-lighter/instruments.",
            "example": "BTC"
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of trades (default: 100, max: 50000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 50000,
              "minimum": 1
            }
          },
          {
            "name": "side",
            "in": "query",
            "required": false,
            "description": "Keep one side of the tape: `buy` or `sell` (case-insensitive). Omit it for both. The filter runs before paging, so a full page still holds `limit` matching trades and the cursor pages the filtered tape. Any other value answers 400 `invalid_parameter` with `param` and `valid_values`.",
            "schema": {
              "type": "string",
              "enum": [
                "buy",
                "sell"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of recent trades",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseLighterTradeArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/rh-lighter/candles/{symbol}": {
      "get": {
        "tags": [
          "Lighter on Robinhood Chain - Candles"
        ],
        "summary": "Get Lighter on Robinhood Chain OHLCV candles",
        "description": "Get Lighter on Robinhood Chain OHLCV candles derived from canonical trades, from June 26, 2026. Supports intervals from 1 minute to 1 week. Until candles are enabled for this deployment the route answers with an error instead of empty data.\n\n**Available Intervals:** 1m, 5m, 15m, 30m, 1h, 4h, 1d, 1w\n\n**Pagination:** Use the `cursor` parameter with the value from the previous response's `next_cursor` for efficient pagination.",
        "operationId": "getRhLighterCandles",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "description": "Market symbol on Lighter on Robinhood Chain. Perpetuals use the uppercase base symbol (BTC); spot pairs are dashed and USDG-quoted (AAPL-USDG). List markets with GET /v1/rh-lighter/instruments.",
            "example": "BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24h ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "interval",
            "in": "query",
            "description": "Candle interval (default: 1h)",
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "30m",
                "1h",
                "4h",
                "1d",
                "1w"
              ],
              "default": "1h"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of candles (default: 100, max: 10000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 10000,
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of OHLCV candles with cursor for next page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseCandleArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/rh-lighter/openinterest/{symbol}": {
      "get": {
        "tags": [
          "Lighter on Robinhood Chain - Open Interest"
        ],
        "summary": "Get Lighter on Robinhood Chain open interest history",
        "description": "Get historical Lighter on Robinhood Chain open interest for a perpetual market. Data available from August 22, 2026 18:43 UTC.",
        "operationId": "getRhLighterOpenInterest",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "description": "Perpetual market symbol on Lighter on Robinhood Chain (uppercase, e.g. BTC). Spot pairs have no open interest, funding, or liquidations.",
            "example": "BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24h ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 100, max: 1000)",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          },
          {
            "name": "interval",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "30m",
                "1h",
                "4h",
                "1d"
              ]
            },
            "description": "Aggregation interval. When omitted, returns raw ~10 sec updates."
          }
        ],
        "responses": {
          "200": {
            "description": "Open interest data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOpenInterestArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/rh-lighter/openinterest/{symbol}/current": {
      "get": {
        "tags": [
          "Lighter on Robinhood Chain - Open Interest"
        ],
        "summary": "Get current Lighter on Robinhood Chain open interest",
        "description": "Get the latest Lighter on Robinhood Chain open interest value for a perpetual market.",
        "operationId": "getCurrentRhLighterOpenInterest",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "description": "Perpetual market symbol on Lighter on Robinhood Chain (uppercase, e.g. BTC). Spot pairs have no open interest, funding, or liquidations.",
            "example": "BTC"
          }
        ],
        "responses": {
          "200": {
            "description": "Current open interest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOpenInterest"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/rh-lighter/funding/{symbol}": {
      "get": {
        "tags": [
          "Lighter on Robinhood Chain - Funding"
        ],
        "summary": "Get Lighter on Robinhood Chain funding rate history",
        "description": "Get historical Lighter on Robinhood Chain funding rates for a perpetual market. `funding_rate` is a fractional, non-annualized decimal, not percentage points. Data available from August 22, 2026 18:43 UTC.",
        "operationId": "getRhLighterFundingHistory",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "description": "Perpetual market symbol on Lighter on Robinhood Chain (uppercase, e.g. BTC). Spot pairs have no open interest, funding, or liquidations.",
            "example": "BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults to 24h ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 100, max: 1000)",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          },
          {
            "name": "interval",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "30m",
                "1h",
                "4h",
                "1d"
              ]
            },
            "description": "Aggregation interval. When omitted, returns raw ~10 sec updates."
          }
        ],
        "responses": {
          "200": {
            "description": "Funding rate history",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseFundingRateArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/rh-lighter/funding/{symbol}/current": {
      "get": {
        "tags": [
          "Lighter on Robinhood Chain - Funding"
        ],
        "summary": "Get current Lighter on Robinhood Chain funding rate",
        "description": "Get the latest Lighter on Robinhood Chain funding rate for a perpetual market. `funding_rate` is a fractional, non-annualized decimal, not percentage points.",
        "operationId": "getCurrentRhLighterFunding",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "description": "Perpetual market symbol on Lighter on Robinhood Chain (uppercase, e.g. BTC). Spot pairs have no open interest, funding, or liquidations.",
            "example": "BTC"
          }
        ],
        "responses": {
          "200": {
            "description": "Current funding rate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseFundingRate"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/rh-lighter/liquidations/{symbol}": {
      "get": {
        "tags": [
          "Lighter on Robinhood Chain - Liquidations"
        ],
        "summary": "Get Lighter on Robinhood Chain liquidation events",
        "description": "Get Lighter on Robinhood Chain liquidation events in a bounded time range using cursor pagination. Served from June 26, 2026 20:10:26 UTC. Rows from before live capture began on August 22, 2026 carry `source: \"bucket\"` and an empty `raw_json`, and live-captured rows carry `source: \"ws\"` and the venue's raw JSON. The earlier rows were backfilled from the venue's finalized export. Explicit endpoint cost is 3 credits per request.",
        "operationId": "getRhLighterLiquidations",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Perpetual market symbol on Lighter on Robinhood Chain (uppercase, e.g. BTC). Spot pairs have no open interest, funding, or liquidations.",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "example": "BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults depend on the route family. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 100, max: 1000)",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Lighter liquidation events",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseLighterLiquidationArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/rh-lighter/liquidations/{symbol}/volume": {
      "get": {
        "tags": [
          "Lighter on Robinhood Chain - Liquidations"
        ],
        "summary": "Get Lighter on Robinhood Chain liquidation volume",
        "description": "Get aggregated Lighter on Robinhood Chain liquidation volume in time-bucketed intervals, from June 26, 2026 20:10:26 UTC. Volume before live capture began on August 22, 2026 comes from rows backfilled from the venue's finalized export. Long/short classification follows Lighter liquidation trade semantics. Explicit endpoint cost is 3 credits per request.",
        "operationId": "getRhLighterLiquidationVolume",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Perpetual market symbol on Lighter on Robinhood Chain (uppercase, e.g. BTC). Spot pairs have no open interest, funding, or liquidations.",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "example": "BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Defaults depend on the route family. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 100, max: 1000)",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          },
          {
            "name": "interval",
            "in": "query",
            "description": "Aggregation interval. Defaults to 1h.",
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "30m",
                "1h",
                "4h",
                "1d"
              ],
              "default": "1h"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Lighter liquidation volume buckets",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseLighterLiquidationVolumeArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/rh-lighter/freshness/{symbol}": {
      "get": {
        "tags": [
          "Lighter on Robinhood Chain - Convenience"
        ],
        "summary": "Get Lighter on Robinhood Chain data freshness",
        "description": "Check when data was last updated for each data type for one Lighter on Robinhood Chain market.",
        "operationId": "getRhLighterFreshness",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Market symbol on Lighter on Robinhood Chain. Perpetuals use the uppercase base symbol (BTC); spot pairs are dashed and USDG-quoted (AAPL-USDG). List markets with GET /v1/rh-lighter/instruments.",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "example": "BTC"
          }
        ],
        "responses": {
          "200": {
            "description": "Data freshness for the coin",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseCoinFreshness"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/rh-lighter/summary/{symbol}": {
      "get": {
        "tags": [
          "Lighter on Robinhood Chain - Convenience"
        ],
        "summary": "Get Lighter on Robinhood Chain market summary",
        "description": "Get a combined Lighter on Robinhood Chain market summary including price, funding, and open interest in a single call.",
        "operationId": "getRhLighterSummary",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Market symbol on Lighter on Robinhood Chain. Perpetuals use the uppercase base symbol (BTC); spot pairs are dashed and USDG-quoted (AAPL-USDG). List markets with GET /v1/rh-lighter/instruments.",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "example": "BTC"
          }
        ],
        "responses": {
          "200": {
            "description": "Market summary for the coin",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseCoinSummary"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/rh-lighter/prices/{symbol}": {
      "get": {
        "tags": [
          "Lighter on Robinhood Chain - Convenience"
        ],
        "summary": "Get Lighter on Robinhood Chain price history",
        "description": "Get Lighter on Robinhood Chain mark and oracle price history. Lightweight projection of open interest data returning only price fields, from August 22, 2026 18:43 UTC.",
        "operationId": "getRhLighterPriceHistory",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Perpetual market symbol on Lighter on Robinhood Chain (uppercase, e.g. BTC). Spot pairs have no open interest, funding, or liquidations.",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "example": "BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start timestamp. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End timestamp. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "interval",
            "in": "query",
            "description": "Aggregation interval",
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "30m",
                "1h",
                "4h",
                "1d"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (default: 100, max: 1000)",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Price history data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponsePriceSnapshotArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/wallets/{address}/positions": {
      "get": {
        "tags": [
          "Hyperliquid - Positions"
        ],
        "summary": "Get Hyperliquid wallet positions",
        "description": "Open positions of one wallet: the latest live snapshot, or the state at `timestamp`. Hyperliquid core also returns the account summary on the first page of a snapshot read. An empty result reports `account_seen`. The change log starts May 25, 2025 15:00 UTC, so as-of reads reach back to then; hourly history starts June 7, 2026 18:00 UTC; live snapshots refresh every 5 minutes. Billed at 1 credit per 1,000 rows returned, minimum 1 credit per request.",
        "operationId": "getHyperliquidWalletPositions",
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "description": "Wallet address: 0x followed by 40 hex characters (case-insensitive).",
            "schema": {
              "type": "string",
              "pattern": "^0x[0-9a-fA-F]{40}$",
              "example": "0x31ca8395cf837de08b24da3f660e77761dfb974b"
            },
            "required": true,
            "example": "0x31ca8395cf837de08b24da3f660e77761dfb974b"
          },
          {
            "name": "timestamp",
            "in": "query",
            "description": "As-of instant: the state after every event before it. An exact hour with a committed snapshot serves that snapshot; any other instant is reconstructed (`meta.source: reconstructed`) and clamped to `meta.built_through`. Omit for the latest live snapshot. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "symbol",
            "in": "query",
            "description": "Only this perpetual (e.g. BTC).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum rows per page (default 500, max 5000).",
            "schema": {
              "type": "integer",
              "default": 500,
              "minimum": 1,
              "maximum": 5000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. Keep every other parameter unchanged.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get Hyperliquid wallet positions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseWalletPositions"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Positions, pagination, or an as-of reconstruction are temporarily unavailable (`error_code` `positions_unavailable`, `pagination_unavailable`, or `reconstruction_unavailable`). Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "positions_unavailable",
                  "error": "Account positions are not available right now.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/wallets/{address}/positions/history": {
      "get": {
        "tags": [
          "Hyperliquid - Positions"
        ],
        "summary": "Get Hyperliquid wallet position history",
        "description": "Hourly position rows of one wallet in `[start, end)`, one row per open position per committed hour, each with `snapshot_ts`. The change log starts May 25, 2025 15:00 UTC, so as-of reads reach back to then; hourly history starts June 7, 2026 18:00 UTC; live snapshots refresh every 5 minutes. Billed at 1 credit per 1,000 rows returned, minimum 1 credit per request.",
        "operationId": "getHyperliquidWalletPositionsHistory",
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "description": "Wallet address: 0x followed by 40 hex characters (case-insensitive).",
            "schema": {
              "type": "string",
              "pattern": "^0x[0-9a-fA-F]{40}$",
              "example": "0x31ca8395cf837de08b24da3f660e77761dfb974b"
            },
            "required": true,
            "example": "0x31ca8395cf837de08b24da3f660e77761dfb974b"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Inclusive start. Defaults to 24 hours before `end`. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "Exclusive end. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "symbol",
            "in": "query",
            "description": "Only this perpetual (e.g. BTC).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum rows per page (default 500, max 5000).",
            "schema": {
              "type": "integer",
              "default": 500,
              "minimum": 1,
              "maximum": 5000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. Keep every other parameter unchanged.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get Hyperliquid wallet position history",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponsePositionArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Positions, pagination, or an as-of reconstruction are temporarily unavailable (`error_code` `positions_unavailable`, `pagination_unavailable`, or `reconstruction_unavailable`). Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "positions_unavailable",
                  "error": "Account positions are not available right now.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/wallets/{address}/positions/changes": {
      "get": {
        "tags": [
          "Hyperliquid - Positions"
        ],
        "summary": "Get Hyperliquid wallet position changes",
        "description": "Position change log of one wallet in `[start, end)`: every trade, liquidation, deleverage, or settlement leg with the position before and after, in timestamp order. `end` is clamped to `meta.built_through`. A window too large to answer in time returns an error asking for a narrower one. The change log starts May 25, 2025 15:00 UTC, so as-of reads reach back to then; hourly history starts June 7, 2026 18:00 UTC; live snapshots refresh every 5 minutes. Billed at 1 credit per 1,000 rows returned, minimum 1 credit per request.",
        "operationId": "getHyperliquidWalletPositionChanges",
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "description": "Wallet address: 0x followed by 40 hex characters (case-insensitive).",
            "schema": {
              "type": "string",
              "pattern": "^0x[0-9a-fA-F]{40}$",
              "example": "0x31ca8395cf837de08b24da3f660e77761dfb974b"
            },
            "required": true,
            "example": "0x31ca8395cf837de08b24da3f660e77761dfb974b"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Inclusive start. Defaults to 24 hours before `end`. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "Exclusive end. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "symbol",
            "in": "query",
            "description": "Only this perpetual (e.g. BTC).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum rows per page (default 500, max 5000).",
            "schema": {
              "type": "integer",
              "default": 500,
              "minimum": 1,
              "maximum": 5000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. Keep every other parameter unchanged.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get Hyperliquid wallet position changes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponsePositionChangeArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Positions, pagination, or an as-of reconstruction are temporarily unavailable (`error_code` `positions_unavailable`, `pagination_unavailable`, or `reconstruction_unavailable`). Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "positions_unavailable",
                  "error": "Account positions are not available right now.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/wallets/{address}/funding": {
      "get": {
        "tags": [
          "Hyperliquid - Positions"
        ],
        "summary": "Get Hyperliquid wallet funding payments",
        "description": "Funding one wallet paid or received in `[start, end)`: one row per position per hourly settlement, ordered by timestamp, then symbol. `funding_amount` is the wallet's cash flow in the market's collateral: positive when received, negative when paid. One request covers at most 31 days; page through longer histories one window at a time. Funding payments start September 27, 2025 10:00 UTC; an empty window before that carries `meta.coverage_from` and `meta.notice`. Billed at 1 credit per 1,000 rows returned, minimum 1 credit per request.",
        "operationId": "getHyperliquidWalletFunding",
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "description": "Wallet address: 0x followed by 40 hex characters (case-insensitive).",
            "schema": {
              "type": "string",
              "pattern": "^0x[0-9a-fA-F]{40}$",
              "example": "0x5b5d51203a0f9079f8aeb098a6523a13f298c060"
            },
            "required": true,
            "example": "0x5b5d51203a0f9079f8aeb098a6523a13f298c060"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Inclusive start. Defaults to 24 hours before `end`. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": "2026-11-06T00:00:00Z"
          },
          {
            "name": "end",
            "in": "query",
            "description": "Exclusive end. Defaults to now. At most 31 days after `start`. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": "2026-11-06T02:00:00Z"
          },
          {
            "name": "symbol",
            "in": "query",
            "description": "Only this perpetual (e.g. BTC).",
            "schema": {
              "type": "string"
            },
            "example": "BTC"
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum rows per page (default 500, max 5000).",
            "schema": {
              "type": "integer",
              "default": 500,
              "minimum": 1,
              "maximum": 5000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. Keep every other parameter unchanged.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get Hyperliquid wallet funding payments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseFundingPaymentArray"
                },
                "example": {
                  "success": true,
                  "data": [
                    {
                      "timestamp": "2026-11-06T00:00:00.025Z",
                      "symbol": "BTC",
                      "coin": "BTC",
                      "position_size": "-2328.12331",
                      "funding_rate": "0.0000125",
                      "funding_amount": "2214.350833",
                      "direction": "received",
                      "block_number": 1210632898
                    },
                    {
                      "timestamp": "2026-11-06T01:00:00.095Z",
                      "symbol": "BTC",
                      "coin": "BTC",
                      "position_size": "-2328.12331",
                      "funding_rate": "0.0000125",
                      "funding_amount": "2221.407957",
                      "direction": "received",
                      "block_number": 1210684428
                    }
                  ],
                  "meta": {
                    "count": 2,
                    "source": "funding",
                    "has_more": false,
                    "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                  }
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Funding payments or pagination are temporarily unavailable (`error_code` `positions_unavailable` or `pagination_unavailable`). Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "positions_unavailable",
                  "error": "Account positions are not available right now.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/wallets/{address}/account": {
      "get": {
        "tags": [
          "Hyperliquid - Positions"
        ],
        "summary": "Get Hyperliquid wallet account summary",
        "description": "Clearinghouse account summary of one wallet at the latest live snapshot: account value, margin used, and position totals.  Billed at 1 credit per request.",
        "operationId": "getHyperliquidWalletAccount",
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "description": "Wallet address: 0x followed by 40 hex characters (case-insensitive).",
            "schema": {
              "type": "string",
              "pattern": "^0x[0-9a-fA-F]{40}$",
              "example": "0x31ca8395cf837de08b24da3f660e77761dfb974b"
            },
            "required": true,
            "example": "0x31ca8395cf837de08b24da3f660e77761dfb974b"
          }
        ],
        "responses": {
          "200": {
            "description": "Get Hyperliquid wallet account summary",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseAccountSummaryArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Positions, pagination, or an as-of reconstruction are temporarily unavailable (`error_code` `positions_unavailable`, `pagination_unavailable`, or `reconstruction_unavailable`). Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "positions_unavailable",
                  "error": "Account positions are not available right now.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/wallets/{address}/account/history": {
      "get": {
        "tags": [
          "Hyperliquid - Positions"
        ],
        "summary": "Get Hyperliquid wallet account history",
        "description": "Hourly account summaries of one wallet in `[start, end)`, each with `snapshot_ts`. Takes no `symbol` filter. Hourly history starts June 7, 2026 18:00 UTC. Billed at 1 credit per request.",
        "operationId": "getHyperliquidWalletAccountHistory",
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "description": "Wallet address: 0x followed by 40 hex characters (case-insensitive).",
            "schema": {
              "type": "string",
              "pattern": "^0x[0-9a-fA-F]{40}$",
              "example": "0x31ca8395cf837de08b24da3f660e77761dfb974b"
            },
            "required": true,
            "example": "0x31ca8395cf837de08b24da3f660e77761dfb974b"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Inclusive start. Defaults to 24 hours before `end`. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "Exclusive end. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum rows per page (default 500, max 5000).",
            "schema": {
              "type": "integer",
              "default": 500,
              "minimum": 1,
              "maximum": 5000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. Keep every other parameter unchanged.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get Hyperliquid wallet account history",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseAccountSummaryArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Positions, pagination, or an as-of reconstruction are temporarily unavailable (`error_code` `positions_unavailable`, `pagination_unavailable`, or `reconstruction_unavailable`). Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "positions_unavailable",
                  "error": "Account positions are not available right now.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/positions/{symbol}": {
      "get": {
        "tags": [
          "Hyperliquid - Positions"
        ],
        "summary": "Get Hyperliquid market positions",
        "description": "Every open position in one market at the latest live snapshot, or at the committed hourly snapshot `hour`, sorted by position value, largest first. The first page carries `meta.totals` over the whole filtered set.  Billed at 1 credit per 1,000 rows returned, minimum 1 credit per request.",
        "operationId": "getHyperliquidMarketPositions",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "description": "Hyperliquid perpetual symbol (e.g. BTC).",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "required": true,
            "example": "BTC"
          },
          {
            "name": "hour",
            "in": "query",
            "description": "Committed hourly snapshot to read, as an exact UTC hour in Unix milliseconds. Echoed as `meta.snapshot_ts`. Defaults to the latest live snapshot.",
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 1789999200000
          },
          {
            "name": "side",
            "in": "query",
            "description": "Only long or only short positions.",
            "schema": {
              "type": "string",
              "enum": [
                "long",
                "short"
              ]
            }
          },
          {
            "name": "min_value",
            "in": "query",
            "description": "Only positions worth at least this much in USD.",
            "schema": {
              "type": "number",
              "minimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum rows per page (default 100, max 2000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "minimum": 1,
              "maximum": 2000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. Keep every other parameter unchanged.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get Hyperliquid market positions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseMarketPositionArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "The snapshot a market cursor was paging has been replaced or has expired (`error_code` `snapshot_advanced`). Restart pagination without a cursor.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 409,
                  "error_code": "snapshot_advanced",
                  "error": "The snapshot this cursor was paging has been replaced or has expired. Restart pagination without a cursor.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Positions, pagination, or an as-of reconstruction are temporarily unavailable (`error_code` `positions_unavailable`, `pagination_unavailable`, or `reconstruction_unavailable`). Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "positions_unavailable",
                  "error": "Account positions are not available right now.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/positions/{symbol}/summary": {
      "get": {
        "tags": [
          "Hyperliquid - Positions"
        ],
        "summary": "Get Hyperliquid market positions summary",
        "description": "Long and short counts, sizes, values, average entries, and top-10 concentration for one market. Without `start` and `end`, one point at the latest live snapshot; with them, one point per committed hour in `[start, end)`, at most 168 hours per page. Billed at 1 credit per 1,000 rows returned, minimum 1 credit per request.",
        "operationId": "getHyperliquidMarketPositionsSummary",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "description": "Hyperliquid perpetual symbol (e.g. BTC).",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "required": true,
            "example": "BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Inclusive start. Defaults to 24 hours before `end`. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "Exclusive end. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum rows per page (default 100, max 2000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "minimum": 1,
              "maximum": 2000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. Keep every other parameter unchanged.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get Hyperliquid market positions summary",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseMarketPositionsSummaryArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Positions, pagination, or an as-of reconstruction are temporarily unavailable (`error_code` `positions_unavailable`, `pagination_unavailable`, or `reconstruction_unavailable`). Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "positions_unavailable",
                  "error": "Account positions are not available right now.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/positions": {
      "get": {
        "tags": [
          "Hyperliquid - Positions"
        ],
        "summary": "Get all Hyperliquid positions",
        "description": "Every open position across all markets at one committed hourly snapshot (default: the latest), for bulk loading. Each row carries `snapshot_ts`.  Billed at 1 credit per 1,000 rows returned, minimum 1 credit per request.",
        "operationId": "getHyperliquidAllPositions",
        "parameters": [
          {
            "name": "hour",
            "in": "query",
            "description": "Committed hourly snapshot to read, as an exact UTC hour in Unix milliseconds. Defaults to the latest committed hour.",
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 1789999200000
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum rows per page (default 1000; max 2000 as JSON, 50,000 as Arrow).",
            "schema": {
              "type": "integer",
              "default": 1000,
              "minimum": 1,
              "maximum": 50000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. Keep every other parameter unchanged.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "format",
            "in": "query",
            "description": "`arrow` returns an Apache Arrow IPC stream (`application/vnd.apache.arrow.stream`) with up to 50,000 rows per page and the page metadata in the `x-count`, `x-next-cursor`, and `x-schema-version: positions.v1` headers, where Arrow output is enabled for this route; otherwise the response is JSON. Sending `Accept: application/vnd.apache.arrow.stream` has the same effect.",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "arrow"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get all Hyperliquid positions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseMarketPositionArray"
                }
              },
              "application/vnd.apache.arrow.stream": {
                "schema": {
                  "type": "string",
                  "format": "binary",
                  "description": "Apache Arrow IPC stream of `MarketPosition` rows (schema version `positions.v1`)."
                }
              }
            },
            "headers": {
              "x-count": {
                "schema": {
                  "type": "integer"
                },
                "description": "Arrow responses: rows in this page."
              },
              "x-next-cursor": {
                "schema": {
                  "type": "string"
                },
                "description": "Arrow responses: cursor for the next page, absent on the last page."
              },
              "x-schema-version": {
                "schema": {
                  "type": "string"
                },
                "description": "Arrow responses: `positions.v1`."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "The snapshot a market cursor was paging has been replaced or has expired (`error_code` `snapshot_advanced`). Restart pagination without a cursor.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 409,
                  "error_code": "snapshot_advanced",
                  "error": "The snapshot this cursor was paging has been replaced or has expired. Restart pagination without a cursor.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Positions, pagination, or an as-of reconstruction are temporarily unavailable (`error_code` `positions_unavailable`, `pagination_unavailable`, or `reconstruction_unavailable`). Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "positions_unavailable",
                  "error": "Account positions are not available right now.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/wallets/{address}/positions": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Positions"
        ],
        "summary": "Get HIP-3 wallet positions",
        "description": "Open positions of one wallet: the latest live snapshot, or the state at `timestamp`. Scope to one dex with `dex` to also get that dex's account summary. An empty result reports `account_seen`. The change log starts October 13, 2025; hourly history starts June 7, 2026 18:00 UTC (later for some dexes); live snapshots refresh every 5 minutes. Billed at 1 credit per 1,000 rows returned, minimum 1 credit per request.",
        "operationId": "getHip3WalletPositions",
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "description": "Wallet address: 0x followed by 40 hex characters (case-insensitive).",
            "schema": {
              "type": "string",
              "pattern": "^0x[0-9a-fA-F]{40}$",
              "example": "0x31ca8395cf837de08b24da3f660e77761dfb974b"
            },
            "required": true,
            "example": "0x31ca8395cf837de08b24da3f660e77761dfb974b"
          },
          {
            "name": "timestamp",
            "in": "query",
            "description": "As-of instant: the state after every event before it. An exact hour with a committed snapshot serves that snapshot; any other instant is reconstructed (`meta.source: reconstructed`) and clamped to `meta.built_through`. Omit for the latest live snapshot. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "symbol",
            "in": "query",
            "description": "Only this market, in `dex:COIN` form (e.g. xyz:TSLA). Must agree with `dex` when both are set.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dex",
            "in": "query",
            "description": "Restrict to one HIP-3 dex (for example `xyz`).",
            "schema": {
              "type": "string",
              "example": "xyz"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum rows per page (default 500, max 5000).",
            "schema": {
              "type": "integer",
              "default": 500,
              "minimum": 1,
              "maximum": 5000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. Keep every other parameter unchanged.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get HIP-3 wallet positions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseWalletPositions"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Positions, pagination, or an as-of reconstruction are temporarily unavailable (`error_code` `positions_unavailable`, `pagination_unavailable`, or `reconstruction_unavailable`). Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "positions_unavailable",
                  "error": "Account positions are not available right now.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/wallets/{address}/positions/history": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Positions"
        ],
        "summary": "Get HIP-3 wallet position history",
        "description": "Hourly position rows of one wallet in `[start, end)`, one row per open position per committed hour, each with `snapshot_ts`. The change log starts October 13, 2025; hourly history starts June 7, 2026 18:00 UTC (later for some dexes); live snapshots refresh every 5 minutes. Billed at 1 credit per 1,000 rows returned, minimum 1 credit per request.",
        "operationId": "getHip3WalletPositionsHistory",
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "description": "Wallet address: 0x followed by 40 hex characters (case-insensitive).",
            "schema": {
              "type": "string",
              "pattern": "^0x[0-9a-fA-F]{40}$",
              "example": "0x31ca8395cf837de08b24da3f660e77761dfb974b"
            },
            "required": true,
            "example": "0x31ca8395cf837de08b24da3f660e77761dfb974b"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Inclusive start. Defaults to 24 hours before `end`. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "Exclusive end. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "symbol",
            "in": "query",
            "description": "Only this market, in `dex:COIN` form (e.g. xyz:TSLA). Must agree with `dex` when both are set.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dex",
            "in": "query",
            "description": "Restrict to one HIP-3 dex (for example `xyz`).",
            "schema": {
              "type": "string",
              "example": "xyz"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum rows per page (default 500, max 5000).",
            "schema": {
              "type": "integer",
              "default": 500,
              "minimum": 1,
              "maximum": 5000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. Keep every other parameter unchanged.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get HIP-3 wallet position history",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponsePositionArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Positions, pagination, or an as-of reconstruction are temporarily unavailable (`error_code` `positions_unavailable`, `pagination_unavailable`, or `reconstruction_unavailable`). Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "positions_unavailable",
                  "error": "Account positions are not available right now.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/wallets/{address}/positions/changes": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Positions"
        ],
        "summary": "Get HIP-3 wallet position changes",
        "description": "Position change log of one wallet in `[start, end)`: every trade, liquidation, deleverage, or settlement leg with the position before and after, in timestamp order. `end` is clamped to `meta.built_through`. A window too large to answer in time returns an error asking for a narrower one. The change log starts October 13, 2025; hourly history starts June 7, 2026 18:00 UTC (later for some dexes); live snapshots refresh every 5 minutes. Billed at 1 credit per 1,000 rows returned, minimum 1 credit per request.",
        "operationId": "getHip3WalletPositionChanges",
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "description": "Wallet address: 0x followed by 40 hex characters (case-insensitive).",
            "schema": {
              "type": "string",
              "pattern": "^0x[0-9a-fA-F]{40}$",
              "example": "0x31ca8395cf837de08b24da3f660e77761dfb974b"
            },
            "required": true,
            "example": "0x31ca8395cf837de08b24da3f660e77761dfb974b"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Inclusive start. Defaults to 24 hours before `end`. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "Exclusive end. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "symbol",
            "in": "query",
            "description": "Only this market, in `dex:COIN` form (e.g. xyz:TSLA). Must agree with `dex` when both are set.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dex",
            "in": "query",
            "description": "Restrict to one HIP-3 dex (for example `xyz`).",
            "schema": {
              "type": "string",
              "example": "xyz"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum rows per page (default 500, max 5000).",
            "schema": {
              "type": "integer",
              "default": 500,
              "minimum": 1,
              "maximum": 5000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. Keep every other parameter unchanged.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get HIP-3 wallet position changes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponsePositionChangeArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Positions, pagination, or an as-of reconstruction are temporarily unavailable (`error_code` `positions_unavailable`, `pagination_unavailable`, or `reconstruction_unavailable`). Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "positions_unavailable",
                  "error": "Account positions are not available right now.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/wallets/{address}/funding": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Positions"
        ],
        "summary": "Get HIP-3 wallet funding payments",
        "description": "Funding one wallet paid or received in `[start, end)` on HIP-3 dex markets: one row per position per hourly settlement, ordered by timestamp, then symbol. `funding_amount` is the wallet's cash flow in the market's collateral: positive when received, negative when paid. One request covers at most 31 days; page through longer histories one window at a time. Funding payments start October 13, 2025 13:00 UTC; an empty window before that carries `meta.coverage_from` and `meta.notice`. Billed at 1 credit per 1,000 rows returned, minimum 1 credit per request.",
        "operationId": "getHip3WalletFunding",
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "description": "Wallet address: 0x followed by 40 hex characters (case-insensitive).",
            "schema": {
              "type": "string",
              "pattern": "^0x[0-9a-fA-F]{40}$",
              "example": "0x5b5d51203a0f9079f8aeb098a6523a13f298c060"
            },
            "required": true,
            "example": "0x5b5d51203a0f9079f8aeb098a6523a13f298c060"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Inclusive start. Defaults to 24 hours before `end`. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": "2026-11-06T00:00:00Z"
          },
          {
            "name": "end",
            "in": "query",
            "description": "Exclusive end. Defaults to now. At most 31 days after `start`. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            },
            "example": "2026-11-06T02:00:00Z"
          },
          {
            "name": "symbol",
            "in": "query",
            "description": "Only this market, in `dex:COIN` form (e.g. xyz:TSLA). Must agree with `dex` when both are set.",
            "schema": {
              "type": "string"
            },
            "example": "xyz:GOLD"
          },
          {
            "name": "dex",
            "in": "query",
            "description": "Restrict to one HIP-3 dex (for example `xyz`).",
            "schema": {
              "type": "string",
              "example": "xyz"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum rows per page (default 500, max 5000).",
            "schema": {
              "type": "integer",
              "default": 500,
              "minimum": 1,
              "maximum": 5000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. Keep every other parameter unchanged.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get HIP-3 wallet funding payments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseFundingPaymentArray"
                },
                "example": {
                  "success": true,
                  "data": [
                    {
                      "timestamp": "2026-11-06T00:00:00.025Z",
                      "symbol": "xyz:GOLD",
                      "coin": "xyz:GOLD",
                      "dex": "xyz",
                      "position_size": "-6438.4594",
                      "funding_rate": "0.00000625",
                      "funding_amount": "164.458373",
                      "direction": "received",
                      "block_number": 1210632898
                    },
                    {
                      "timestamp": "2026-11-06T01:00:00.095Z",
                      "symbol": "xyz:GOLD",
                      "coin": "xyz:GOLD",
                      "dex": "xyz",
                      "position_size": "-6438.4594",
                      "funding_rate": "0.00000625",
                      "funding_amount": "164.671647",
                      "direction": "received",
                      "block_number": 1210684428
                    }
                  ],
                  "meta": {
                    "count": 2,
                    "source": "funding",
                    "has_more": false,
                    "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                  }
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Funding payments or pagination are temporarily unavailable (`error_code` `positions_unavailable` or `pagination_unavailable`). Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "positions_unavailable",
                  "error": "Account positions are not available right now.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/wallets/{address}/account": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Positions"
        ],
        "summary": "Get HIP-3 wallet account summary",
        "description": "Clearinghouse account summary of one wallet at the latest live snapshot: account value, margin used, and position totals. HIP-3 keeps one account per dex: the response has one row per dex, or one row with `dex`.  Billed at 1 credit per request.",
        "operationId": "getHip3WalletAccount",
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "description": "Wallet address: 0x followed by 40 hex characters (case-insensitive).",
            "schema": {
              "type": "string",
              "pattern": "^0x[0-9a-fA-F]{40}$",
              "example": "0x31ca8395cf837de08b24da3f660e77761dfb974b"
            },
            "required": true,
            "example": "0x31ca8395cf837de08b24da3f660e77761dfb974b"
          },
          {
            "name": "dex",
            "in": "query",
            "description": "Restrict to one HIP-3 dex (for example `xyz`).",
            "schema": {
              "type": "string",
              "example": "xyz"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get HIP-3 wallet account summary",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseAccountSummaryArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Positions, pagination, or an as-of reconstruction are temporarily unavailable (`error_code` `positions_unavailable`, `pagination_unavailable`, or `reconstruction_unavailable`). Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "positions_unavailable",
                  "error": "Account positions are not available right now.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/wallets/{address}/account/history": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Positions"
        ],
        "summary": "Get HIP-3 wallet account history",
        "description": "Hourly account summaries of one wallet in `[start, end)`, each with `snapshot_ts`. Takes no `symbol` filter. Hourly history starts June 7, 2026 18:00 UTC. Billed at 1 credit per request.",
        "operationId": "getHip3WalletAccountHistory",
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "description": "Wallet address: 0x followed by 40 hex characters (case-insensitive).",
            "schema": {
              "type": "string",
              "pattern": "^0x[0-9a-fA-F]{40}$",
              "example": "0x31ca8395cf837de08b24da3f660e77761dfb974b"
            },
            "required": true,
            "example": "0x31ca8395cf837de08b24da3f660e77761dfb974b"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Inclusive start. Defaults to 24 hours before `end`. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "Exclusive end. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "dex",
            "in": "query",
            "description": "Restrict to one HIP-3 dex (for example `xyz`).",
            "schema": {
              "type": "string",
              "example": "xyz"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum rows per page (default 500, max 5000).",
            "schema": {
              "type": "integer",
              "default": 500,
              "minimum": 1,
              "maximum": 5000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. Keep every other parameter unchanged.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get HIP-3 wallet account history",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseAccountSummaryArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Positions, pagination, or an as-of reconstruction are temporarily unavailable (`error_code` `positions_unavailable`, `pagination_unavailable`, or `reconstruction_unavailable`). Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "positions_unavailable",
                  "error": "Account positions are not available right now.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/positions/{symbol}": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Positions"
        ],
        "summary": "Get HIP-3 market positions",
        "description": "Every open position in one market at the latest live snapshot, or at the committed hourly snapshot `hour`, sorted by position value, largest first. The first page carries `meta.totals` over the whole filtered set.  Billed at 1 credit per 1,000 rows returned, minimum 1 credit per request.",
        "operationId": "getHip3MarketPositions",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "description": "HIP-3 symbol in `dex:COIN` form (e.g. xyz:TSLA).",
            "schema": {
              "type": "string",
              "example": "xyz:TSLA"
            },
            "required": true,
            "example": "xyz:TSLA"
          },
          {
            "name": "hour",
            "in": "query",
            "description": "Committed hourly snapshot to read, as an exact UTC hour in Unix milliseconds. Echoed as `meta.snapshot_ts`. Defaults to the latest live snapshot.",
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 1789999200000
          },
          {
            "name": "side",
            "in": "query",
            "description": "Only long or only short positions.",
            "schema": {
              "type": "string",
              "enum": [
                "long",
                "short"
              ]
            }
          },
          {
            "name": "min_value",
            "in": "query",
            "description": "Only positions worth at least this much in USD.",
            "schema": {
              "type": "number",
              "minimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum rows per page (default 100, max 2000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "minimum": 1,
              "maximum": 2000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. Keep every other parameter unchanged.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get HIP-3 market positions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseMarketPositionArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "The snapshot a market cursor was paging has been replaced or has expired (`error_code` `snapshot_advanced`). Restart pagination without a cursor.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 409,
                  "error_code": "snapshot_advanced",
                  "error": "The snapshot this cursor was paging has been replaced or has expired. Restart pagination without a cursor.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Positions, pagination, or an as-of reconstruction are temporarily unavailable (`error_code` `positions_unavailable`, `pagination_unavailable`, or `reconstruction_unavailable`). Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "positions_unavailable",
                  "error": "Account positions are not available right now.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/positions/{symbol}/summary": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Positions"
        ],
        "summary": "Get HIP-3 market positions summary",
        "description": "Long and short counts, sizes, values, average entries, and top-10 concentration for one market. Without `start` and `end`, one point at the latest live snapshot; with them, one point per committed hour in `[start, end)`, at most 168 hours per page. Billed at 1 credit per 1,000 rows returned, minimum 1 credit per request.",
        "operationId": "getHip3MarketPositionsSummary",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "description": "HIP-3 symbol in `dex:COIN` form (e.g. xyz:TSLA).",
            "schema": {
              "type": "string",
              "example": "xyz:TSLA"
            },
            "required": true,
            "example": "xyz:TSLA"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Inclusive start. Defaults to 24 hours before `end`. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "Exclusive end. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum rows per page (default 100, max 2000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "minimum": 1,
              "maximum": 2000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. Keep every other parameter unchanged.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get HIP-3 market positions summary",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseMarketPositionsSummaryArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Positions, pagination, or an as-of reconstruction are temporarily unavailable (`error_code` `positions_unavailable`, `pagination_unavailable`, or `reconstruction_unavailable`). Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "positions_unavailable",
                  "error": "Account positions are not available right now.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/positions": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Positions"
        ],
        "summary": "Get all HIP-3 positions",
        "description": "Every open position across all markets at one committed hourly snapshot (default: the latest), for bulk loading. Each row carries `snapshot_ts`.  Billed at 1 credit per 1,000 rows returned, minimum 1 credit per request.",
        "operationId": "getHip3AllPositions",
        "parameters": [
          {
            "name": "hour",
            "in": "query",
            "description": "Committed hourly snapshot to read, as an exact UTC hour in Unix milliseconds. Defaults to the latest committed hour.",
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 1789999200000
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum rows per page (default 1000; max 2000 as JSON, 50,000 as Arrow).",
            "schema": {
              "type": "integer",
              "default": 1000,
              "minimum": 1,
              "maximum": 50000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. Keep every other parameter unchanged.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "format",
            "in": "query",
            "description": "`arrow` returns an Apache Arrow IPC stream (`application/vnd.apache.arrow.stream`) with up to 50,000 rows per page and the page metadata in the `x-count`, `x-next-cursor`, and `x-schema-version: positions.v1` headers, where Arrow output is enabled for this route; otherwise the response is JSON. Sending `Accept: application/vnd.apache.arrow.stream` has the same effect.",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "arrow"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get all HIP-3 positions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseMarketPositionArray"
                }
              },
              "application/vnd.apache.arrow.stream": {
                "schema": {
                  "type": "string",
                  "format": "binary",
                  "description": "Apache Arrow IPC stream of `MarketPosition` rows (schema version `positions.v1`)."
                }
              }
            },
            "headers": {
              "x-count": {
                "schema": {
                  "type": "integer"
                },
                "description": "Arrow responses: rows in this page."
              },
              "x-next-cursor": {
                "schema": {
                  "type": "string"
                },
                "description": "Arrow responses: cursor for the next page, absent on the last page."
              },
              "x-schema-version": {
                "schema": {
                  "type": "string"
                },
                "description": "Arrow responses: `positions.v1`."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "The snapshot a market cursor was paging has been replaced or has expired (`error_code` `snapshot_advanced`). Restart pagination without a cursor.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 409,
                  "error_code": "snapshot_advanced",
                  "error": "The snapshot this cursor was paging has been replaced or has expired. Restart pagination without a cursor.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Positions, pagination, or an as-of reconstruction are temporarily unavailable (`error_code` `positions_unavailable`, `pagination_unavailable`, or `reconstruction_unavailable`). Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "positions_unavailable",
                  "error": "Account positions are not available right now.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/lighter/accounts/{account_index}/positions": {
      "get": {
        "tags": [
          "Lighter - Positions"
        ],
        "summary": "Get Lighter account positions",
        "description": "Open positions of one account: the latest live snapshot, or the state at `timestamp`. The first page of a snapshot read without `symbol` also returns the account's position aggregates. An empty result reports `account_seen`. The change log and hourly history start January 17, 2025; live snapshots refresh every 2 minutes. Rows past the trade finalization watermark are preliminary (`finalized: false`). Billed at 1 credit per 1,000 rows returned, minimum 1 credit per request.",
        "operationId": "getLighterAccountPositions",
        "parameters": [
          {
            "name": "account_index",
            "in": "path",
            "description": "Lighter account index (an integer). Resolve an L1 address on Lighter mainnet with GET /v1/lighter/accounts?l1_address=0x...",
            "schema": {
              "type": "string",
              "pattern": "^[0-9]+$",
              "example": "513030"
            },
            "required": true,
            "example": "513030"
          },
          {
            "name": "timestamp",
            "in": "query",
            "description": "As-of instant: the state after every event before it. An exact hour with a committed snapshot serves that snapshot; any other instant is reconstructed (`meta.source: reconstructed`) and clamped to `meta.built_through`. Omit for the latest live snapshot. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "symbol",
            "in": "query",
            "description": "Only this perpetual (e.g. BTC). Pass it exactly as the instruments route lists it, in uppercase.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum rows per page (default 500, max 5000).",
            "schema": {
              "type": "integer",
              "default": 500,
              "minimum": 1,
              "maximum": 5000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. Keep every other parameter unchanged.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get Lighter account positions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseWalletPositions"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Positions, pagination, or an as-of reconstruction are temporarily unavailable (`error_code` `positions_unavailable`, `pagination_unavailable`, or `reconstruction_unavailable`). Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "positions_unavailable",
                  "error": "Account positions are not available right now.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/lighter/accounts/{account_index}/positions/history": {
      "get": {
        "tags": [
          "Lighter - Positions"
        ],
        "summary": "Get Lighter account position history",
        "description": "Hourly position rows of one account in `[start, end)`, one row per open position per committed hour, each with `snapshot_ts`. The change log and hourly history start January 17, 2025; live snapshots refresh every 2 minutes. Rows past the trade finalization watermark are preliminary (`finalized: false`). Billed at 1 credit per 1,000 rows returned, minimum 1 credit per request.",
        "operationId": "getLighterAccountPositionsHistory",
        "parameters": [
          {
            "name": "account_index",
            "in": "path",
            "description": "Lighter account index (an integer). Resolve an L1 address on Lighter mainnet with GET /v1/lighter/accounts?l1_address=0x...",
            "schema": {
              "type": "string",
              "pattern": "^[0-9]+$",
              "example": "513030"
            },
            "required": true,
            "example": "513030"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Inclusive start. Defaults to 24 hours before `end`. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "Exclusive end. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "symbol",
            "in": "query",
            "description": "Only this perpetual (e.g. BTC). Pass it exactly as the instruments route lists it, in uppercase.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum rows per page (default 500, max 5000).",
            "schema": {
              "type": "integer",
              "default": 500,
              "minimum": 1,
              "maximum": 5000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. Keep every other parameter unchanged.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get Lighter account position history",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponsePositionArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Positions, pagination, or an as-of reconstruction are temporarily unavailable (`error_code` `positions_unavailable`, `pagination_unavailable`, or `reconstruction_unavailable`). Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "positions_unavailable",
                  "error": "Account positions are not available right now.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/lighter/accounts/{account_index}/positions/changes": {
      "get": {
        "tags": [
          "Lighter - Positions"
        ],
        "summary": "Get Lighter account position changes",
        "description": "Position change log of one account in `[start, end)`: every trade, liquidation, deleverage, or settlement leg with the position before and after, in timestamp order. `end` is clamped to `meta.built_through`. A window too large to answer in time returns an error asking for a narrower one. The change log and hourly history start January 17, 2025; live snapshots refresh every 2 minutes. Rows past the trade finalization watermark are preliminary (`finalized: false`). Billed at 1 credit per 1,000 rows returned, minimum 1 credit per request.",
        "operationId": "getLighterAccountPositionChanges",
        "parameters": [
          {
            "name": "account_index",
            "in": "path",
            "description": "Lighter account index (an integer). Resolve an L1 address on Lighter mainnet with GET /v1/lighter/accounts?l1_address=0x...",
            "schema": {
              "type": "string",
              "pattern": "^[0-9]+$",
              "example": "513030"
            },
            "required": true,
            "example": "513030"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Inclusive start. Defaults to 24 hours before `end`. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "Exclusive end. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "symbol",
            "in": "query",
            "description": "Only this perpetual (e.g. BTC). Pass it exactly as the instruments route lists it, in uppercase.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum rows per page (default 500, max 5000).",
            "schema": {
              "type": "integer",
              "default": 500,
              "minimum": 1,
              "maximum": 5000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. Keep every other parameter unchanged.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get Lighter account position changes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponsePositionChangeArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Positions, pagination, or an as-of reconstruction are temporarily unavailable (`error_code` `positions_unavailable`, `pagination_unavailable`, or `reconstruction_unavailable`). Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "positions_unavailable",
                  "error": "Account positions are not available right now.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/lighter/accounts/{account_index}/account": {
      "get": {
        "tags": [
          "Lighter - Positions"
        ],
        "summary": "Get Lighter account summary",
        "description": "Position aggregates of one account at the latest live snapshot: totals, long and short value, and the number of open positions. Lighter returns position aggregates only, not balances. Billed at 1 credit per request.",
        "operationId": "getLighterAccountSummary",
        "parameters": [
          {
            "name": "account_index",
            "in": "path",
            "description": "Lighter account index (an integer). Resolve an L1 address on Lighter mainnet with GET /v1/lighter/accounts?l1_address=0x...",
            "schema": {
              "type": "string",
              "pattern": "^[0-9]+$",
              "example": "513030"
            },
            "required": true,
            "example": "513030"
          }
        ],
        "responses": {
          "200": {
            "description": "Get Lighter account summary",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseAccountSummaryArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Positions, pagination, or an as-of reconstruction are temporarily unavailable (`error_code` `positions_unavailable`, `pagination_unavailable`, or `reconstruction_unavailable`). Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "positions_unavailable",
                  "error": "Account positions are not available right now.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/lighter/accounts/{account_index}/account/history": {
      "get": {
        "tags": [
          "Lighter - Positions"
        ],
        "summary": "Get Lighter account summary history",
        "description": "Hourly position aggregates of one account in `[start, end)`, one point per committed hour (hours with no open position read as zeros). Takes no `symbol` or `dex` filter. Billed at 1 credit per request.",
        "operationId": "getLighterAccountSummaryHistory",
        "parameters": [
          {
            "name": "account_index",
            "in": "path",
            "description": "Lighter account index (an integer). Resolve an L1 address on Lighter mainnet with GET /v1/lighter/accounts?l1_address=0x...",
            "schema": {
              "type": "string",
              "pattern": "^[0-9]+$",
              "example": "513030"
            },
            "required": true,
            "example": "513030"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Inclusive start. Defaults to 24 hours before `end`. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "Exclusive end. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum rows per page (default 500, max 5000).",
            "schema": {
              "type": "integer",
              "default": 500,
              "minimum": 1,
              "maximum": 5000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. Keep every other parameter unchanged.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get Lighter account summary history",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseAccountSummaryArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Positions, pagination, or an as-of reconstruction are temporarily unavailable (`error_code` `positions_unavailable`, `pagination_unavailable`, or `reconstruction_unavailable`). Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "positions_unavailable",
                  "error": "Account positions are not available right now.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/lighter/positions/{symbol}": {
      "get": {
        "tags": [
          "Lighter - Positions"
        ],
        "summary": "Get Lighter market positions",
        "description": "Every open position in one market at the latest live snapshot, or at the committed hourly snapshot `hour`, sorted by position value, largest first. The first page carries `meta.totals` over the whole filtered set. System accounts are excluded unless `include_system=true`.  Billed at 1 credit per 1,000 rows returned, minimum 1 credit per request.",
        "operationId": "getLighterMarketPositions",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "description": "Lighter perpetual symbol (e.g. BTC). Spot markets have no positions. Pass it exactly as the instruments route lists it, in uppercase.",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "required": true,
            "example": "BTC"
          },
          {
            "name": "hour",
            "in": "query",
            "description": "Committed hourly snapshot to read, as an exact UTC hour in Unix milliseconds. Echoed as `meta.snapshot_ts`. Defaults to the latest live snapshot.",
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 1789999200000
          },
          {
            "name": "side",
            "in": "query",
            "description": "Only long or only short positions.",
            "schema": {
              "type": "string",
              "enum": [
                "long",
                "short"
              ]
            }
          },
          {
            "name": "min_value",
            "in": "query",
            "description": "Only positions worth at least this much in USD.",
            "schema": {
              "type": "number",
              "minimum": 0
            }
          },
          {
            "name": "include_system",
            "in": "query",
            "description": "Include settlement, insurance, and other system accounts (excluded by default).",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum rows per page (default 100, max 2000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "minimum": 1,
              "maximum": 2000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. Keep every other parameter unchanged.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get Lighter market positions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseMarketPositionArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "The snapshot a market cursor was paging has been replaced or has expired (`error_code` `snapshot_advanced`). Restart pagination without a cursor.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 409,
                  "error_code": "snapshot_advanced",
                  "error": "The snapshot this cursor was paging has been replaced or has expired. Restart pagination without a cursor.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Positions, pagination, or an as-of reconstruction are temporarily unavailable (`error_code` `positions_unavailable`, `pagination_unavailable`, or `reconstruction_unavailable`). Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "positions_unavailable",
                  "error": "Account positions are not available right now.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/lighter/positions/{symbol}/summary": {
      "get": {
        "tags": [
          "Lighter - Positions"
        ],
        "summary": "Get Lighter market positions summary",
        "description": "Long and short counts, sizes, values, average entries, and top-10 concentration for one market. Without `start` and `end`, one point at the latest live snapshot; with them, one point per committed hour in `[start, end)`, at most 168 hours per page. Billed at 1 credit per 1,000 rows returned, minimum 1 credit per request.",
        "operationId": "getLighterMarketPositionsSummary",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "description": "Lighter perpetual symbol (e.g. BTC). Spot markets have no positions. Pass it exactly as the instruments route lists it, in uppercase.",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "required": true,
            "example": "BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Inclusive start. Defaults to 24 hours before `end`. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "Exclusive end. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "include_system",
            "in": "query",
            "description": "Include settlement, insurance, and other system accounts (excluded by default).",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum rows per page (default 100, max 2000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "minimum": 1,
              "maximum": 2000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. Keep every other parameter unchanged.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get Lighter market positions summary",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseMarketPositionsSummaryArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Positions, pagination, or an as-of reconstruction are temporarily unavailable (`error_code` `positions_unavailable`, `pagination_unavailable`, or `reconstruction_unavailable`). Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "positions_unavailable",
                  "error": "Account positions are not available right now.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/lighter/positions": {
      "get": {
        "tags": [
          "Lighter - Positions"
        ],
        "summary": "Get all Lighter positions",
        "description": "Every open position across all markets at one committed hourly snapshot (default: the latest), for bulk loading. Each row carries `snapshot_ts`. System accounts are excluded unless `include_system=true`.  Billed at 1 credit per 1,000 rows returned, minimum 1 credit per request.",
        "operationId": "getLighterAllPositions",
        "parameters": [
          {
            "name": "hour",
            "in": "query",
            "description": "Committed hourly snapshot to read, as an exact UTC hour in Unix milliseconds. Defaults to the latest committed hour.",
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 1789999200000
          },
          {
            "name": "include_system",
            "in": "query",
            "description": "Include settlement, insurance, and other system accounts (excluded by default).",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum rows per page (default 1000; max 2000 as JSON, 50,000 as Arrow).",
            "schema": {
              "type": "integer",
              "default": 1000,
              "minimum": 1,
              "maximum": 50000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. Keep every other parameter unchanged.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "format",
            "in": "query",
            "description": "`arrow` returns an Apache Arrow IPC stream (`application/vnd.apache.arrow.stream`) with up to 50,000 rows per page and the page metadata in the `x-count`, `x-next-cursor`, and `x-schema-version: positions.v1` headers, where Arrow output is enabled for this route; otherwise the response is JSON. Sending `Accept: application/vnd.apache.arrow.stream` has the same effect.",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "arrow"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get all Lighter positions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseMarketPositionArray"
                }
              },
              "application/vnd.apache.arrow.stream": {
                "schema": {
                  "type": "string",
                  "format": "binary",
                  "description": "Apache Arrow IPC stream of `MarketPosition` rows (schema version `positions.v1`)."
                }
              }
            },
            "headers": {
              "x-count": {
                "schema": {
                  "type": "integer"
                },
                "description": "Arrow responses: rows in this page."
              },
              "x-next-cursor": {
                "schema": {
                  "type": "string"
                },
                "description": "Arrow responses: cursor for the next page, absent on the last page."
              },
              "x-schema-version": {
                "schema": {
                  "type": "string"
                },
                "description": "Arrow responses: `positions.v1`."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "The snapshot a market cursor was paging has been replaced or has expired (`error_code` `snapshot_advanced`). Restart pagination without a cursor.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 409,
                  "error_code": "snapshot_advanced",
                  "error": "The snapshot this cursor was paging has been replaced or has expired. Restart pagination without a cursor.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Positions, pagination, or an as-of reconstruction are temporarily unavailable (`error_code` `positions_unavailable`, `pagination_unavailable`, or `reconstruction_unavailable`). Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "positions_unavailable",
                  "error": "Account positions are not available right now.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/lighter/accounts": {
      "get": {
        "tags": [
          "Lighter - Positions"
        ],
        "summary": "Resolve Lighter accounts by L1 address",
        "description": "List the Lighter mainnet account indices owned by an L1 address, with `total_accounts`. Lighter position routes take account indices. Not available on Lighter on Robinhood Chain. Billed at 1 credit per request.",
        "operationId": "getLighterAccountsByL1",
        "parameters": [
          {
            "name": "l1_address",
            "in": "query",
            "description": "L1 address: 0x followed by 40 hex characters.",
            "schema": {
              "type": "string",
              "pattern": "^0x[0-9a-fA-F]{40}$"
            },
            "required": true,
            "example": "0x31ca8395cf837de08b24da3f660e77761dfb974b"
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum rows per page (default 500, max 5000).",
            "schema": {
              "type": "integer",
              "default": 500,
              "minimum": 1,
              "maximum": 5000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. Keep every other parameter unchanged.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Resolve Lighter accounts by L1 address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseLighterL1Accounts"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Positions, pagination, or an as-of reconstruction are temporarily unavailable (`error_code` `positions_unavailable`, `pagination_unavailable`, or `reconstruction_unavailable`). Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "positions_unavailable",
                  "error": "Account positions are not available right now.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/rh-lighter/accounts/{account_index}/positions": {
      "get": {
        "tags": [
          "Lighter on Robinhood Chain - Positions"
        ],
        "summary": "Get Lighter on Robinhood Chain account positions",
        "description": "Open positions of one account: the latest live snapshot, or the state at `timestamp`. The first page of a snapshot read without `symbol` also returns the account's position aggregates. An empty result reports `account_seen`. The change log and hourly history start June 26, 2026; live snapshots refresh every 2 minutes. Values are in USDG. Rows past the trade finalization watermark are preliminary (`finalized: false`). Billed at 1 credit per 1,000 rows returned, minimum 1 credit per request.",
        "operationId": "getRhLighterAccountPositions",
        "parameters": [
          {
            "name": "account_index",
            "in": "path",
            "description": "Lighter account index (an integer). Resolve an L1 address on Lighter mainnet with GET /v1/lighter/accounts?l1_address=0x...",
            "schema": {
              "type": "string",
              "pattern": "^[0-9]+$",
              "example": "513030"
            },
            "required": true,
            "example": "513030"
          },
          {
            "name": "timestamp",
            "in": "query",
            "description": "As-of instant: the state after every event before it. An exact hour with a committed snapshot serves that snapshot; any other instant is reconstructed (`meta.source: reconstructed`) and clamped to `meta.built_through`. Omit for the latest live snapshot. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "symbol",
            "in": "query",
            "description": "Only this perpetual (e.g. BTC). Pass it exactly as the instruments route lists it, in uppercase.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum rows per page (default 500, max 5000).",
            "schema": {
              "type": "integer",
              "default": 500,
              "minimum": 1,
              "maximum": 5000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. Keep every other parameter unchanged.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get Lighter on Robinhood Chain account positions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseWalletPositions"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Positions, pagination, or an as-of reconstruction are temporarily unavailable (`error_code` `positions_unavailable`, `pagination_unavailable`, or `reconstruction_unavailable`). Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "positions_unavailable",
                  "error": "Account positions are not available right now.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/rh-lighter/accounts/{account_index}/positions/history": {
      "get": {
        "tags": [
          "Lighter on Robinhood Chain - Positions"
        ],
        "summary": "Get Lighter on Robinhood Chain account position history",
        "description": "Hourly position rows of one account in `[start, end)`, one row per open position per committed hour, each with `snapshot_ts`. The change log and hourly history start June 26, 2026; live snapshots refresh every 2 minutes. Values are in USDG. Rows past the trade finalization watermark are preliminary (`finalized: false`). Billed at 1 credit per 1,000 rows returned, minimum 1 credit per request.",
        "operationId": "getRhLighterAccountPositionsHistory",
        "parameters": [
          {
            "name": "account_index",
            "in": "path",
            "description": "Lighter account index (an integer). Resolve an L1 address on Lighter mainnet with GET /v1/lighter/accounts?l1_address=0x...",
            "schema": {
              "type": "string",
              "pattern": "^[0-9]+$",
              "example": "513030"
            },
            "required": true,
            "example": "513030"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Inclusive start. Defaults to 24 hours before `end`. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "Exclusive end. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "symbol",
            "in": "query",
            "description": "Only this perpetual (e.g. BTC). Pass it exactly as the instruments route lists it, in uppercase.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum rows per page (default 500, max 5000).",
            "schema": {
              "type": "integer",
              "default": 500,
              "minimum": 1,
              "maximum": 5000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. Keep every other parameter unchanged.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get Lighter on Robinhood Chain account position history",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponsePositionArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Positions, pagination, or an as-of reconstruction are temporarily unavailable (`error_code` `positions_unavailable`, `pagination_unavailable`, or `reconstruction_unavailable`). Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "positions_unavailable",
                  "error": "Account positions are not available right now.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/rh-lighter/accounts/{account_index}/positions/changes": {
      "get": {
        "tags": [
          "Lighter on Robinhood Chain - Positions"
        ],
        "summary": "Get Lighter on Robinhood Chain account position changes",
        "description": "Position change log of one account in `[start, end)`: every trade, liquidation, deleverage, or settlement leg with the position before and after, in timestamp order. `end` is clamped to `meta.built_through`. A window too large to answer in time returns an error asking for a narrower one. The change log and hourly history start June 26, 2026; live snapshots refresh every 2 minutes. Values are in USDG. Rows past the trade finalization watermark are preliminary (`finalized: false`). Billed at 1 credit per 1,000 rows returned, minimum 1 credit per request.",
        "operationId": "getRhLighterAccountPositionChanges",
        "parameters": [
          {
            "name": "account_index",
            "in": "path",
            "description": "Lighter account index (an integer). Resolve an L1 address on Lighter mainnet with GET /v1/lighter/accounts?l1_address=0x...",
            "schema": {
              "type": "string",
              "pattern": "^[0-9]+$",
              "example": "513030"
            },
            "required": true,
            "example": "513030"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Inclusive start. Defaults to 24 hours before `end`. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "Exclusive end. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "symbol",
            "in": "query",
            "description": "Only this perpetual (e.g. BTC). Pass it exactly as the instruments route lists it, in uppercase.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum rows per page (default 500, max 5000).",
            "schema": {
              "type": "integer",
              "default": 500,
              "minimum": 1,
              "maximum": 5000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. Keep every other parameter unchanged.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get Lighter on Robinhood Chain account position changes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponsePositionChangeArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Positions, pagination, or an as-of reconstruction are temporarily unavailable (`error_code` `positions_unavailable`, `pagination_unavailable`, or `reconstruction_unavailable`). Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "positions_unavailable",
                  "error": "Account positions are not available right now.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/rh-lighter/accounts/{account_index}/account": {
      "get": {
        "tags": [
          "Lighter on Robinhood Chain - Positions"
        ],
        "summary": "Get Lighter on Robinhood Chain account summary",
        "description": "Position aggregates of one account at the latest live snapshot: totals, long and short value, and the number of open positions. Lighter returns position aggregates only, not balances. Billed at 1 credit per request.",
        "operationId": "getRhLighterAccountSummary",
        "parameters": [
          {
            "name": "account_index",
            "in": "path",
            "description": "Lighter account index (an integer). Resolve an L1 address on Lighter mainnet with GET /v1/lighter/accounts?l1_address=0x...",
            "schema": {
              "type": "string",
              "pattern": "^[0-9]+$",
              "example": "513030"
            },
            "required": true,
            "example": "513030"
          }
        ],
        "responses": {
          "200": {
            "description": "Get Lighter on Robinhood Chain account summary",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseAccountSummaryArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Positions, pagination, or an as-of reconstruction are temporarily unavailable (`error_code` `positions_unavailable`, `pagination_unavailable`, or `reconstruction_unavailable`). Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "positions_unavailable",
                  "error": "Account positions are not available right now.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/rh-lighter/accounts/{account_index}/account/history": {
      "get": {
        "tags": [
          "Lighter on Robinhood Chain - Positions"
        ],
        "summary": "Get Lighter on Robinhood Chain account summary history",
        "description": "Hourly position aggregates of one account in `[start, end)`, one point per committed hour (hours with no open position read as zeros). Takes no `symbol` or `dex` filter. Billed at 1 credit per request.",
        "operationId": "getRhLighterAccountSummaryHistory",
        "parameters": [
          {
            "name": "account_index",
            "in": "path",
            "description": "Lighter account index (an integer). Resolve an L1 address on Lighter mainnet with GET /v1/lighter/accounts?l1_address=0x...",
            "schema": {
              "type": "string",
              "pattern": "^[0-9]+$",
              "example": "513030"
            },
            "required": true,
            "example": "513030"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Inclusive start. Defaults to 24 hours before `end`. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "Exclusive end. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum rows per page (default 500, max 5000).",
            "schema": {
              "type": "integer",
              "default": 500,
              "minimum": 1,
              "maximum": 5000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. Keep every other parameter unchanged.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get Lighter on Robinhood Chain account summary history",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseAccountSummaryArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Positions, pagination, or an as-of reconstruction are temporarily unavailable (`error_code` `positions_unavailable`, `pagination_unavailable`, or `reconstruction_unavailable`). Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "positions_unavailable",
                  "error": "Account positions are not available right now.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/rh-lighter/positions/{symbol}": {
      "get": {
        "tags": [
          "Lighter on Robinhood Chain - Positions"
        ],
        "summary": "Get Lighter on Robinhood Chain market positions",
        "description": "Every open position in one market at the latest live snapshot, or at the committed hourly snapshot `hour`, sorted by position value, largest first. The first page carries `meta.totals` over the whole filtered set. System accounts are excluded unless `include_system=true`.  Billed at 1 credit per 1,000 rows returned, minimum 1 credit per request.",
        "operationId": "getRhLighterMarketPositions",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "description": "Perpetual symbol on Lighter on Robinhood Chain (e.g. BTC). Spot pairs have no positions. Pass it exactly as the instruments route lists it, in uppercase.",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "required": true,
            "example": "BTC"
          },
          {
            "name": "hour",
            "in": "query",
            "description": "Committed hourly snapshot to read, as an exact UTC hour in Unix milliseconds. Echoed as `meta.snapshot_ts`. Defaults to the latest live snapshot.",
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 1789999200000
          },
          {
            "name": "side",
            "in": "query",
            "description": "Only long or only short positions.",
            "schema": {
              "type": "string",
              "enum": [
                "long",
                "short"
              ]
            }
          },
          {
            "name": "min_value",
            "in": "query",
            "description": "Only positions worth at least this much in USD.",
            "schema": {
              "type": "number",
              "minimum": 0
            }
          },
          {
            "name": "include_system",
            "in": "query",
            "description": "Include settlement, insurance, and other system accounts (excluded by default).",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum rows per page (default 100, max 2000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "minimum": 1,
              "maximum": 2000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. Keep every other parameter unchanged.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get Lighter on Robinhood Chain market positions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseMarketPositionArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "The snapshot a market cursor was paging has been replaced or has expired (`error_code` `snapshot_advanced`). Restart pagination without a cursor.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 409,
                  "error_code": "snapshot_advanced",
                  "error": "The snapshot this cursor was paging has been replaced or has expired. Restart pagination without a cursor.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Positions, pagination, or an as-of reconstruction are temporarily unavailable (`error_code` `positions_unavailable`, `pagination_unavailable`, or `reconstruction_unavailable`). Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "positions_unavailable",
                  "error": "Account positions are not available right now.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/rh-lighter/positions/{symbol}/summary": {
      "get": {
        "tags": [
          "Lighter on Robinhood Chain - Positions"
        ],
        "summary": "Get Lighter on Robinhood Chain market positions summary",
        "description": "Long and short counts, sizes, values, average entries, and top-10 concentration for one market. Without `start` and `end`, one point at the latest live snapshot; with them, one point per committed hour in `[start, end)`, at most 168 hours per page. Billed at 1 credit per 1,000 rows returned, minimum 1 credit per request.",
        "operationId": "getRhLighterMarketPositionsSummary",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "description": "Perpetual symbol on Lighter on Robinhood Chain (e.g. BTC). Spot pairs have no positions. Pass it exactly as the instruments route lists it, in uppercase.",
            "schema": {
              "type": "string",
              "example": "BTC"
            },
            "required": true,
            "example": "BTC"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Inclusive start. Defaults to 24 hours before `end`. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "Exclusive end. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as `2026-01-01T00:00:00Z`.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "include_system",
            "in": "query",
            "description": "Include settlement, insurance, and other system accounts (excluded by default).",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum rows per page (default 100, max 2000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "minimum": 1,
              "maximum": 2000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. Keep every other parameter unchanged.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get Lighter on Robinhood Chain market positions summary",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseMarketPositionsSummaryArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Positions, pagination, or an as-of reconstruction are temporarily unavailable (`error_code` `positions_unavailable`, `pagination_unavailable`, or `reconstruction_unavailable`). Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "positions_unavailable",
                  "error": "Account positions are not available right now.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/rh-lighter/positions": {
      "get": {
        "tags": [
          "Lighter on Robinhood Chain - Positions"
        ],
        "summary": "Get all Lighter on Robinhood Chain positions",
        "description": "Every open position across all markets at one committed hourly snapshot (default: the latest), for bulk loading. Each row carries `snapshot_ts`. System accounts are excluded unless `include_system=true`.  Billed at 1 credit per 1,000 rows returned, minimum 1 credit per request.",
        "operationId": "getRhLighterAllPositions",
        "parameters": [
          {
            "name": "hour",
            "in": "query",
            "description": "Committed hourly snapshot to read, as an exact UTC hour in Unix milliseconds. Defaults to the latest committed hour.",
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 1789999200000
          },
          {
            "name": "include_system",
            "in": "query",
            "description": "Include settlement, insurance, and other system accounts (excluded by default).",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum rows per page (default 1000; max 2000 as JSON, 50,000 as Arrow).",
            "schema": {
              "type": "integer",
              "default": 1000,
              "minimum": 1,
              "maximum": 50000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor: pass `meta.next_cursor` from the previous page unchanged, with the same filters. Omit it for the first page. Keep every other parameter unchanged.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "format",
            "in": "query",
            "description": "`arrow` returns an Apache Arrow IPC stream (`application/vnd.apache.arrow.stream`) with up to 50,000 rows per page and the page metadata in the `x-count`, `x-next-cursor`, and `x-schema-version: positions.v1` headers, where Arrow output is enabled for this route; otherwise the response is JSON. Sending `Accept: application/vnd.apache.arrow.stream` has the same effect.",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "arrow"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get all Lighter on Robinhood Chain positions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseMarketPositionArray"
                }
              },
              "application/vnd.apache.arrow.stream": {
                "schema": {
                  "type": "string",
                  "format": "binary",
                  "description": "Apache Arrow IPC stream of `MarketPosition` rows (schema version `positions.v1`)."
                }
              }
            },
            "headers": {
              "x-count": {
                "schema": {
                  "type": "integer"
                },
                "description": "Arrow responses: rows in this page."
              },
              "x-next-cursor": {
                "schema": {
                  "type": "string"
                },
                "description": "Arrow responses: cursor for the next page, absent on the last page."
              },
              "x-schema-version": {
                "schema": {
                  "type": "string"
                },
                "description": "Arrow responses: `positions.v1`."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "The snapshot a market cursor was paging has been replaced or has expired (`error_code` `snapshot_advanced`). Restart pagination without a cursor.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 409,
                  "error_code": "snapshot_advanced",
                  "error": "The snapshot this cursor was paging has been replaced or has expired. Restart pagination without a cursor.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Positions, pagination, or an as-of reconstruction are temporarily unavailable (`error_code` `positions_unavailable`, `pagination_unavailable`, or `reconstruction_unavailable`). Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "positions_unavailable",
                  "error": "Account positions are not available right now.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/data-quality/positions": {
      "get": {
        "tags": [
          "Data Quality"
        ],
        "summary": "Get account positions freshness",
        "description": "Freshness of each account positions product: latest live and hourly snapshots, live age, and how far the change log is built and final. Lighter on Robinhood Chain is listed once its positions routes are public.",
        "operationId": "getPositionsFreshness",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Positions freshness per product",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponsePositionsFreshnessArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Positions, pagination, or an as-of reconstruction are temporarily unavailable (`error_code` `positions_unavailable`, `pagination_unavailable`, or `reconstruction_unavailable`). Retry shortly.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              },
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "code": 503,
                  "error_code": "positions_unavailable",
                  "error": "Account positions are not available right now.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/twap/{symbol}": {
      "get": {
        "tags": [
          "Hyperliquid - Orders"
        ],
        "summary": "Get Hyperliquid TWAP order events",
        "description": "TWAP order status events: `activated`, `waitingForTrigger`, `finished`, `terminated`, `stopped`, and `error`. Each event carries the TWAP size, executed size and notional, duration, and trigger settings. This route returns the events of one Hyperliquid perpetual market. History starts June 17, 2026 18:00 UTC; a window that ends before then returns an empty page with `meta.coverage_from` and `meta.notice`. Events are ordered oldest first. Page with `meta.next_cursor` until `meta.has_more` is false. A page never ends partway through a millisecond, so it can hold fewer events than `limit`.",
        "operationId": "getHyperliquidTwap",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Hyperliquid perpetual symbol, case-insensitive (e.g., BTC, HYPE)",
            "schema": {
              "type": "string",
              "example": "HYPE"
            },
            "example": "HYPE"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start of the window: Unix milliseconds or an RFC 3339 timestamp. Defaults to 24 hours ago.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End of the window: Unix milliseconds or an RFC 3339 timestamp. Defaults to now.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Value of `meta.next_cursor` from the previous page. The next page starts after it.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of events to return (default: 100, max: 1000; larger values are capped at 1000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "minimum": 1,
              "maximum": 1000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "TWAP order status events",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseTwapArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/twap/user/{user}": {
      "get": {
        "tags": [
          "Hyperliquid - Orders"
        ],
        "summary": "Get Hyperliquid TWAP order events by wallet",
        "description": "TWAP order status events: `activated`, `waitingForTrigger`, `finished`, `terminated`, `stopped`, and `error`. Each event carries the TWAP size, executed size and notional, duration, and trigger settings. This route returns the events of one wallet on Hyperliquid perpetuals. History starts June 17, 2026 18:00 UTC. Events are ordered oldest first. Page with `meta.next_cursor` until `meta.has_more` is false. A page never ends partway through a millisecond, so it can hold fewer events than `limit`.",
        "operationId": "getHyperliquidUserTwap",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user",
            "in": "path",
            "required": true,
            "description": "Wallet address: 0x followed by 40 hex characters (case-insensitive).",
            "schema": {
              "type": "string",
              "pattern": "^0x[0-9a-fA-F]{40}$",
              "example": "0x31ca8395cf837de08b24da3f660e77761dfb974b"
            },
            "example": "0x31ca8395cf837de08b24da3f660e77761dfb974b"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start of the window: Unix milliseconds or an RFC 3339 timestamp. Defaults to 24 hours ago.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End of the window: Unix milliseconds or an RFC 3339 timestamp. Defaults to now.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Value of `meta.next_cursor` from the previous page. The next page starts after it.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of events to return (default: 100, max: 1000; larger values are capped at 1000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "minimum": 1,
              "maximum": 1000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "TWAP order status events for the wallet",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseTwapArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/twap/{symbol}": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Orders"
        ],
        "summary": "Get HIP-3 TWAP order events",
        "description": "TWAP order status events: `activated`, `waitingForTrigger`, `finished`, `terminated`, `stopped`, and `error`. Each event carries the TWAP size, executed size and notional, duration, and trigger settings. This route returns the events of one HIP-3 market. History starts June 17, 2026 18:00 UTC; a window that ends before then returns an empty page with `meta.coverage_from` and `meta.notice`. Events are ordered oldest first. Page with `meta.next_cursor` until `meta.has_more` is false. A page never ends partway through a millisecond, so it can hold fewer events than `limit`.",
        "operationId": "getHip3Twap",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-3 symbol (case-sensitive, e.g., xyz:XYZ100)",
            "schema": {
              "type": "string",
              "example": "xyz:XYZ100"
            },
            "example": "xyz:XYZ100"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start of the window: Unix milliseconds or an RFC 3339 timestamp. Defaults to 24 hours ago.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End of the window: Unix milliseconds or an RFC 3339 timestamp. Defaults to now.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Value of `meta.next_cursor` from the previous page. The next page starts after it.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of events to return (default: 100, max: 1000; larger values are capped at 1000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "minimum": 1,
              "maximum": 1000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "TWAP order status events",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseTwapArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/twap/user/{user}": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Orders"
        ],
        "summary": "Get HIP-3 TWAP order events by wallet",
        "description": "TWAP order status events: `activated`, `waitingForTrigger`, `finished`, `terminated`, `stopped`, and `error`. Each event carries the TWAP size, executed size and notional, duration, and trigger settings. This route returns the events of one wallet on HIP-3 markets. History starts June 17, 2026 18:00 UTC. Events are ordered oldest first. Page with `meta.next_cursor` until `meta.has_more` is false. A page never ends partway through a millisecond, so it can hold fewer events than `limit`.",
        "operationId": "getHip3UserTwap",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user",
            "in": "path",
            "required": true,
            "description": "Wallet address: 0x followed by 40 hex characters (case-insensitive).",
            "schema": {
              "type": "string",
              "pattern": "^0x[0-9a-fA-F]{40}$",
              "example": "0x31ca8395cf837de08b24da3f660e77761dfb974b"
            },
            "example": "0x31ca8395cf837de08b24da3f660e77761dfb974b"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start of the window: Unix milliseconds or an RFC 3339 timestamp. Defaults to 24 hours ago.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End of the window: Unix milliseconds or an RFC 3339 timestamp. Defaults to now.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Value of `meta.next_cursor` from the previous page. The next page starts after it.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of events to return (default: 100, max: 1000; larger values are capped at 1000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "minimum": 1,
              "maximum": 1000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "TWAP order status events for the wallet",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseTwapArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip4/twap/{symbol}": {
      "get": {
        "tags": [
          "HIP-4 Outcomes - Orders"
        ],
        "summary": "Get HIP-4 TWAP order events",
        "description": "TWAP order status events: `activated`, `waitingForTrigger`, `finished`, `terminated`, `stopped`, and `error`. Each event carries the TWAP size, executed size and notional, duration, and trigger settings. This route returns the events of one HIP-4 outcome side. HIP-4 TWAP orders placed before capture began were not recorded; history starts at the first captured TWAP. Events are ordered oldest first. Page with `meta.next_cursor` until `meta.has_more` is false. A page never ends partway through a millisecond, so it can hold fewer events than `limit`.",
        "operationId": "getHip4Twap",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "HIP-4 coin id (e.g., `0` for outcome 0 Yes side, `1` for No side). The `#`-prefixed form (`#0`, `#1`) is also accepted.",
            "schema": {
              "type": "string",
              "example": "0"
            },
            "example": "0"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start of the window: Unix milliseconds or an RFC 3339 timestamp. Defaults to 24 hours ago.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End of the window: Unix milliseconds or an RFC 3339 timestamp. Defaults to now.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Value of `meta.next_cursor` from the previous page. The next page starts after it.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of events to return (default: 100, max: 1000; larger values are capped at 1000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "minimum": 1,
              "maximum": 1000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "TWAP order status events",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseTwapArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip4/twap/user/{user}": {
      "get": {
        "tags": [
          "HIP-4 Outcomes - Orders"
        ],
        "summary": "Get HIP-4 TWAP order events by wallet",
        "description": "TWAP order status events: `activated`, `waitingForTrigger`, `finished`, `terminated`, `stopped`, and `error`. Each event carries the TWAP size, executed size and notional, duration, and trigger settings. This route returns the events of one wallet on HIP-4 outcome markets. HIP-4 TWAP orders placed before capture began were not recorded; history starts at the first captured TWAP. Events are ordered oldest first. Page with `meta.next_cursor` until `meta.has_more` is false. A page never ends partway through a millisecond, so it can hold fewer events than `limit`.",
        "operationId": "getHip4UserTwap",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user",
            "in": "path",
            "required": true,
            "description": "Wallet address: 0x followed by 40 hex characters (case-insensitive).",
            "schema": {
              "type": "string",
              "pattern": "^0x[0-9a-fA-F]{40}$",
              "example": "0x31ca8395cf837de08b24da3f660e77761dfb974b"
            },
            "example": "0x31ca8395cf837de08b24da3f660e77761dfb974b"
          },
          {
            "name": "start",
            "in": "query",
            "description": "Start of the window: Unix milliseconds or an RFC 3339 timestamp. Defaults to 24 hours ago.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "End of the window: Unix milliseconds or an RFC 3339 timestamp. Defaults to now.",
            "schema": {
              "$ref": "#/components/schemas/TimeInput"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Value of `meta.next_cursor` from the previous page. The next page starts after it.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of events to return (default: 100, max: 1000; larger values are capped at 1000).",
            "schema": {
              "type": "integer",
              "default": 100,
              "minimum": 1,
              "maximum": 1000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "TWAP order status events for the wallet",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseTwapArray"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/wallets/{address}/profile": {
      "get": {
        "tags": [
          "Hyperliquid - Wallets"
        ],
        "summary": "Get Hyperliquid wallet profile",
        "description": "Behavioral metrics for one wallet on Hyperliquid perpetuals over the last `hours`: order mix (cancel, fill, IOC, post-only, TP/SL, and trigger ratios), order sizes, cancel speed, fill volume and maker share, fees, realized PnL, liquidations, and TWAP, client order ID, priority gas, and builder usage. Without `coin`, metrics come from daily aggregates: every UTC day that overlaps the window counts in full, and `unique_coins_traded` and `unique_fill_coins` are the largest single-day counts. With `coin`, the window is exact.",
        "operationId": "getHyperliquidWalletProfile",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "required": true,
            "description": "Wallet address: 0x followed by 40 hex characters (case-insensitive).",
            "schema": {
              "type": "string",
              "pattern": "^0x[0-9a-fA-F]{40}$",
              "example": "0x31ca8395cf837de08b24da3f660e77761dfb974b"
            },
            "example": "0x31ca8395cf837de08b24da3f660e77761dfb974b"
          },
          {
            "name": "coin",
            "in": "query",
            "description": "Limit the metrics to one perpetual market (case-insensitive, e.g., BTC). Omit for all markets.",
            "schema": {
              "type": "string",
              "example": "BTC"
            }
          },
          {
            "name": "hours",
            "in": "query",
            "description": "Lookback window in hours, from 1 to 168 (7 days). Larger values are capped at 168.",
            "schema": {
              "type": "integer",
              "default": 24,
              "minimum": 1,
              "maximum": 168
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Wallet behavioral metrics",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseWalletProfile"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "Without `coin`: the wallet placed no orders in the window.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "code": 404,
                  "error": "No data found for 0x0000000000000000000000000000000000000001",
                  "error_code": "not_found",
                  "request_id": "01883301-c6eb-4b06-9f0e-cd568ec81309",
                  "success": false
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    },
    "/v1/hyperliquid/hip3/wallets/{address}/profile": {
      "get": {
        "tags": [
          "HIP-3 Builder Perps - Wallets"
        ],
        "summary": "Get HIP-3 wallet profile",
        "description": "Behavioral metrics for one wallet on HIP-3 markets over the last `hours`: order mix (cancel, fill, IOC, post-only, TP/SL, and trigger ratios), order sizes, cancel speed, fill volume and maker share, fees, realized PnL, liquidations, and TWAP, client order ID, priority gas, and builder usage. Without `coin`, metrics come from daily aggregates: every UTC day that overlaps the window counts in full, and `unique_coins_traded` and `unique_fill_coins` are the largest single-day counts. With `coin`, the window is exact.",
        "operationId": "getHip3WalletProfile",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "required": true,
            "description": "Wallet address: 0x followed by 40 hex characters (case-insensitive).",
            "schema": {
              "type": "string",
              "pattern": "^0x[0-9a-fA-F]{40}$",
              "example": "0x31ca8395cf837de08b24da3f660e77761dfb974b"
            },
            "example": "0x31ca8395cf837de08b24da3f660e77761dfb974b"
          },
          {
            "name": "coin",
            "in": "query",
            "description": "Limit the metrics to one HIP-3 market (case-sensitive, e.g., xyz:XYZ100). Omit for all HIP-3 markets.",
            "schema": {
              "type": "string",
              "example": "xyz:XYZ100"
            }
          },
          {
            "name": "hours",
            "in": "query",
            "description": "Lookback window in hours, from 1 to 168 (7 days). Larger values are capped at 168.",
            "schema": {
              "type": "integer",
              "default": 24,
              "minimum": 1,
              "maximum": 168
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Wallet behavioral metrics",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseWalletProfile"
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "Without `coin`: the wallet placed no orders in the window.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "code": 404,
                  "error": "No data found for 0x0000000000000000000000000000000000000001",
                  "error_code": "not_found",
                  "request_id": "01883301-c6eb-4b06-9f0e-cd568ec81309",
                  "success": false
                }
              }
            },
            "headers": {
              "0xArchive-Version": {
                "$ref": "#/components/headers/ApiVersion"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiVersion"
        }
      ]
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key",
        "description": "API key for authentication. Get yours at https://0xarchive.io/dashboard"
      },
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "Optional bearer access token. OAuth access tokens require the mcp:feedback.write scope."
      },
      "BrowserSessionCookieAuth": {
        "type": "apiKey",
        "in": "cookie",
        "name": "ox_access_token",
        "description": "Optional browser session cookie. The API associates the submission with an account only after validating this credential."
      }
    },
    "schemas": {
      "ApiMeta": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        ],
        "deprecated": true,
        "description": "Deprecated name of `ResponseMeta`, kept so existing references resolve.",
        "type": "object",
        "properties": {
          "count": {
            "type": "integer",
            "description": "Number of records returned"
          },
          "next_cursor": {
            "type": "string",
            "nullable": true,
            "description": "Cursor for pagination (timestamp). Use this value as the `cursor` parameter to fetch the next page of results."
          },
          "request_id": {
            "type": "string",
            "format": "uuid",
            "description": "Unique request ID for support"
          },
          "coverage_from": {
            "type": "string",
            "format": "date-time",
            "description": "Earliest coverage for the requested symbol and data type. Present only when the requested window ends before coverage begins."
          },
          "notice": {
            "type": "string",
            "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."
          },
          "has_more": {
            "type": "boolean",
            "description": "Present on cursor-paged routes: true when another page exists. `next_cursor` is present exactly when it is true."
          },
          "symbol": {
            "type": "string",
            "description": "Present on per-symbol routes: the symbol the response covers."
          },
          "venue": {
            "type": "string",
            "description": "Present on per-symbol routes: the venue the response covers, for example `hyperliquid` or `hip3`."
          }
        }
      },
      "ApiResponseOrderBook": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/OrderBook"
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "ApiResponseOrderBookArray": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrderBook"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "ApiResponseTradeArray": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Trade"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "ApiResponseInstrument": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/Instrument"
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "ApiResponseInstrumentArray": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Instrument"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "ApiResponseLighterInstrument": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/LighterInstrument"
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "ApiResponseLighterInstrumentArray": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LighterInstrument"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "ApiResponseOpenInterest": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/OpenInterest"
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "ApiResponseOpenInterestArray": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpenInterest"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "ApiResponseFundingRate": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/FundingRate"
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "ApiResponseFundingRateArray": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FundingRate"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "BreadthCounts": {
        "type": "object",
        "description": "Auditable counts behind an aggregate Hyperliquid core perpetual or HIP-3 breadth snapshot.",
        "required": [
          "candidates",
          "eligible",
          "above",
          "at",
          "below",
          "excluded_no_session_volume",
          "excluded_stale_price"
        ],
        "properties": {
          "candidates": {
            "type": "integer",
            "format": "int32",
            "minimum": 0,
            "description": "Cumulative candidate instruments considered at this calculation cutoff. This is not a fixed inventory, and candidate counts are not guaranteed to be monotonic across historical snapshots."
          },
          "eligible": {
            "type": "integer",
            "format": "int32",
            "minimum": 0,
            "description": "Eligible instruments included in the headline percentage."
          },
          "above": {
            "type": "integer",
            "format": "int32",
            "minimum": 0,
            "description": "Eligible instruments trading above their current UTC-session VWAP."
          },
          "at": {
            "type": "integer",
            "format": "int32",
            "minimum": 0,
            "description": "Eligible instruments at their current UTC-session VWAP."
          },
          "below": {
            "type": "integer",
            "format": "int32",
            "minimum": 0,
            "description": "Eligible instruments trading below their current UTC-session VWAP."
          },
          "excluded_no_session_volume": {
            "type": "integer",
            "format": "int32",
            "minimum": 0,
            "description": "Candidates excluded because the current UTC session has no qualifying volume."
          },
          "excluded_stale_price": {
            "type": "integer",
            "format": "int32",
            "minimum": 0,
            "description": "Candidates with session volume excluded because their most recent completed 1-minute candle close was older than the 5-minute freshness threshold at the calculation cutoff. Candidates without session volume are counted only in excluded_no_session_volume."
          }
        }
      },
      "BreadthNamespaceCounts": {
        "type": "object",
        "description": "Per-namespace count breakdowns for the shared core and HIP-3 breadth shape. Core perpetual responses always return empty maps. HIP-3 responses use builder namespace keys where counts are nonzero, so an individual map may be empty.",
        "required": [
          "eligible",
          "above",
          "at",
          "below"
        ],
        "properties": {
          "eligible": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32",
              "minimum": 0
            },
            "description": "Eligible instrument counts by builder namespace for HIP-3; always empty for core perpetuals."
          },
          "above": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32",
              "minimum": 0
            },
            "description": "Above-VWAP instrument counts by builder namespace for HIP-3; always empty for core perpetuals."
          },
          "at": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32",
              "minimum": 0
            },
            "description": "At-VWAP instrument counts by builder namespace for HIP-3; always empty for core perpetuals."
          },
          "below": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32",
              "minimum": 0
            },
            "description": "Below-VWAP instrument counts by builder namespace for HIP-3; always empty for core perpetuals."
          }
        }
      },
      "BreadthSnapshot": {
        "type": "object",
        "description": "Aggregate percentage of eligible Hyperliquid core perpetual or HIP-3 instruments trading above their current UTC-session VWAP. The same validated snapshot shape is used for both families; per-symbol VWAPs are not served.",
        "required": [
          "session_date",
          "calculated_at",
          "value_pct",
          "coverage_ratio",
          "counts",
          "namespaces"
        ],
        "properties": {
          "session_date": {
            "type": "string",
            "format": "date",
            "description": "UTC session date."
          },
          "calculated_at": {
            "type": "string",
            "format": "date-time",
            "description": "UTC calculation cutoff for this validated snapshot. It identifies the cutoff used for included candle data and is not a source-freshness guarantee."
          },
          "value_pct": {
            "type": "number",
            "format": "double",
            "nullable": true,
            "description": "100 times above divided by eligible; null when eligible is zero and never interpret null as 0%."
          },
          "coverage_ratio": {
            "type": "number",
            "format": "double",
            "minimum": 0,
            "maximum": 1,
            "description": "Eligible divided by candidates, constrained to the range 0..1."
          },
          "counts": {
            "$ref": "#/components/schemas/BreadthCounts"
          },
          "namespaces": {
            "$ref": "#/components/schemas/BreadthNamespaceCounts"
          }
        }
      },
      "ApiResponseBreadthSnapshot": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/BreadthSnapshot"
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "ApiResponseBreadthSnapshotArray": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BreadthSnapshot"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "OrderBook": {
        "type": "object",
        "description": "L2 order book snapshot",
        "required": [
          "symbol",
          "coin",
          "timestamp",
          "bids",
          "asks"
        ],
        "properties": {
          "symbol": {
            "type": "string",
            "description": "Trading pair symbol",
            "example": "BTC"
          },
          "coin": {
            "type": "string",
            "description": "Trading pair symbol (deprecated, use symbol instead)",
            "example": "BTC",
            "deprecated": true
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Snapshot timestamp (UTC)",
            "example": "2025-01-21T10:30:45.123Z"
          },
          "bids": {
            "type": "array",
            "description": "Bid price levels (best bid first)",
            "items": {
              "$ref": "#/components/schemas/PriceLevel"
            }
          },
          "asks": {
            "type": "array",
            "description": "Ask price levels (best ask first)",
            "items": {
              "$ref": "#/components/schemas/PriceLevel"
            }
          },
          "mid_price": {
            "type": "string",
            "description": "Mid price (best bid + best ask) / 2",
            "example": "42150.50"
          },
          "spread": {
            "type": "string",
            "description": "Spread in absolute terms (best ask - best bid)",
            "example": "1.00"
          },
          "spread_bps": {
            "type": "string",
            "description": "Spread in basis points",
            "example": "2.37"
          }
        }
      },
      "PriceLevel": {
        "type": "object",
        "description": "Single price level in the order book",
        "required": [
          "px",
          "sz",
          "n"
        ],
        "properties": {
          "px": {
            "type": "string",
            "description": "Price",
            "example": "42150.00"
          },
          "sz": {
            "type": "string",
            "description": "Total size at this price level",
            "example": "1.5"
          },
          "n": {
            "type": "integer",
            "description": "Number of orders at this level",
            "example": 15
          }
        }
      },
      "OrderbookDelta": {
        "type": "object",
        "description": "Incremental orderbook change (used with tick-level data)",
        "required": [
          "timestamp",
          "side",
          "price",
          "size",
          "sequence"
        ],
        "properties": {
          "timestamp": {
            "type": "integer",
            "format": "int64",
            "description": "Timestamp in milliseconds",
            "example": 1704067201000
          },
          "side": {
            "type": "string",
            "enum": [
              "bid",
              "ask"
            ],
            "description": "Side of the orderbook (bid or ask)",
            "example": "bid"
          },
          "price": {
            "type": "number",
            "description": "Price level",
            "example": 50000
          },
          "size": {
            "type": "number",
            "description": "New size at this price level (0 = level removed)",
            "example": 1.5
          },
          "sequence": {
            "type": "integer",
            "description": "Sequence number for ordering deltas",
            "example": 12345
          }
        }
      },
      "Trade": {
        "type": "object",
        "description": "Trade/fill record with full execution details",
        "required": [
          "symbol",
          "coin",
          "side",
          "price",
          "size",
          "timestamp"
        ],
        "properties": {
          "symbol": {
            "type": "string",
            "description": "Trading pair symbol",
            "example": "BTC"
          },
          "coin": {
            "type": "string",
            "description": "Trading pair symbol (deprecated, use symbol instead)",
            "example": "BTC",
            "deprecated": true
          },
          "side": {
            "type": "string",
            "description": "Trade side: 'B' (buy) or 'A' (sell/ask)",
            "enum": [
              "A",
              "B"
            ],
            "example": "B"
          },
          "price": {
            "type": "string",
            "description": "Execution price",
            "example": "42150.50"
          },
          "size": {
            "type": "string",
            "description": "Trade size",
            "example": "0.5"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Execution timestamp (UTC)",
            "example": "2025-01-21T10:30:45.123Z"
          },
          "tx_hash": {
            "type": "string",
            "nullable": true,
            "description": "Blockchain transaction hash"
          },
          "trade_id": {
            "type": "integer",
            "format": "int64",
            "nullable": true,
            "description": "Unique trade ID"
          },
          "order_id": {
            "type": "integer",
            "format": "int64",
            "nullable": true,
            "description": "Associated order ID"
          },
          "crossed": {
            "type": "boolean",
            "nullable": true,
            "description": "True if taker (crossed the spread), false if maker"
          },
          "fee": {
            "type": "string",
            "nullable": true,
            "description": "Trading fee amount"
          },
          "fee_token": {
            "type": "string",
            "nullable": true,
            "description": "Fee denomination (e.g., USDC)"
          },
          "closed_pnl": {
            "type": "string",
            "nullable": true,
            "description": "Realized PnL if closing a position"
          },
          "direction": {
            "type": "string",
            "nullable": true,
            "description": "Position direction (e.g., 'Open Long', 'Close Short', 'Long > Short')"
          },
          "start_position": {
            "type": "string",
            "nullable": true,
            "description": "Position size before this trade"
          },
          "user_address": {
            "type": "string",
            "nullable": true,
            "description": "User's wallet address"
          },
          "maker_address": {
            "type": "string",
            "nullable": true,
            "description": "Maker's wallet address (the resting order)"
          },
          "taker_address": {
            "type": "string",
            "nullable": true,
            "description": "Taker's wallet address (crossed the spread)"
          },
          "builder_address": {
            "type": "string",
            "nullable": true,
            "description": "Builder address that routed this order. Present only when the order was placed through a builder."
          },
          "builder_fee": {
            "type": "string",
            "nullable": true,
            "description": "Builder fee charged on this fill, paid to the builder (in quote currency, typically USDC). Present only when builder_address is set."
          },
          "deployer_fee": {
            "type": "string",
            "nullable": true,
            "description": "HIP-3 deployer fee share on this fill (in quote currency). Negative for the maker side (rebate), positive for the taker side. Present only on HIP-3 fills."
          },
          "priority_gas": {
            "type": "number",
            "nullable": true,
            "description": "Priority fee burned in HYPE (not USDC) for write priority on the Hyperliquid validator queue. Independent of builder_fee and deployer_fee: paid to the network, not to a builder or deployer. Present only when the order paid for priority."
          },
          "cloid": {
            "type": "string",
            "nullable": true,
            "description": "Client order ID"
          },
          "twap_id": {
            "type": "integer",
            "nullable": true,
            "description": "TWAP execution ID"
          }
        }
      },
      "Instrument": {
        "type": "object",
        "description": "Trading instrument specification (Hyperliquid)",
        "required": [
          "name",
          "sz_decimals",
          "is_active"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Instrument symbol",
            "example": "BTC"
          },
          "sz_decimals": {
            "type": "integer",
            "description": "Size decimal precision",
            "example": 4
          },
          "max_leverage": {
            "type": "integer",
            "nullable": true,
            "description": "Maximum leverage allowed",
            "example": 50
          },
          "only_isolated": {
            "type": "boolean",
            "nullable": true,
            "description": "If true, only isolated margin mode is allowed"
          },
          "instrument_type": {
            "type": "string",
            "nullable": true,
            "description": "Type of instrument",
            "enum": [
              "perp",
              "spot"
            ],
            "example": "perp"
          },
          "is_active": {
            "type": "boolean",
            "description": "Whether the instrument is currently tradeable",
            "example": true
          }
        }
      },
      "LighterInstrument": {
        "type": "object",
        "description": "Trading instrument specification (Lighter). Different schema from Hyperliquid Instrument.",
        "required": [
          "symbol",
          "market_id",
          "market_type",
          "status",
          "taker_fee",
          "maker_fee",
          "liquidation_fee",
          "min_base_amount",
          "min_quote_amount",
          "size_decimals",
          "price_decimals",
          "quote_decimals",
          "is_active"
        ],
        "properties": {
          "symbol": {
            "type": "string",
            "description": "Instrument symbol",
            "example": "ETH"
          },
          "market_id": {
            "type": "integer",
            "description": "Unique market identifier",
            "example": 0
          },
          "market_type": {
            "type": "string",
            "description": "Type of market",
            "enum": [
              "perp",
              "spot"
            ],
            "example": "perp"
          },
          "status": {
            "type": "string",
            "description": "Market status",
            "enum": [
              "active",
              "inactive",
              "delisted"
            ],
            "example": "active"
          },
          "taker_fee": {
            "type": "number",
            "description": "Taker fee rate (e.g., 0.0004 = 0.04%)",
            "example": 0.0004
          },
          "maker_fee": {
            "type": "number",
            "description": "Maker fee rate (can be negative for rebates)",
            "example": 0.0001
          },
          "liquidation_fee": {
            "type": "number",
            "description": "Liquidation fee rate",
            "example": 0.005
          },
          "min_base_amount": {
            "type": "number",
            "description": "Minimum order size in base currency",
            "example": 0.001
          },
          "min_quote_amount": {
            "type": "number",
            "description": "Minimum order value in quote currency",
            "example": 1
          },
          "size_decimals": {
            "type": "integer",
            "description": "Size decimal precision",
            "example": 4
          },
          "price_decimals": {
            "type": "integer",
            "description": "Price decimal precision",
            "example": 2
          },
          "quote_decimals": {
            "type": "integer",
            "description": "Quote currency decimal precision",
            "example": 6
          },
          "is_active": {
            "type": "boolean",
            "description": "Whether the instrument is currently tradeable",
            "example": true
          }
        }
      },
      "Hip3Instrument": {
        "type": "object",
        "description": "HIP-3 Builder Perps instrument with latest market data. Derived from live open interest data.",
        "required": [
          "symbol",
          "coin",
          "namespace",
          "ticker"
        ],
        "properties": {
          "symbol": {
            "type": "string",
            "description": "Trading pair symbol",
            "example": "km:US500"
          },
          "coin": {
            "type": "string",
            "description": "Full coin name (e.g., km:US500, xyz:XYZ100) (deprecated, use symbol instead)",
            "example": "km:US500",
            "deprecated": true
          },
          "namespace": {
            "type": "string",
            "description": "Builder namespace (e.g., km, xyz)",
            "example": "km"
          },
          "ticker": {
            "type": "string",
            "description": "Ticker within the namespace (e.g., US500, XYZ100)",
            "example": "US500"
          },
          "mark_price": {
            "type": "number",
            "nullable": true,
            "description": "Latest mark price",
            "example": 5432.1
          },
          "open_interest": {
            "type": "number",
            "nullable": true,
            "description": "Latest open interest",
            "example": 1234567.89
          },
          "mid_price": {
            "type": "number",
            "nullable": true,
            "description": "Latest mid price",
            "example": 5432.05
          },
          "latest_timestamp": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Timestamp of latest data point",
            "example": "2026-02-18T12:00:00.000Z"
          }
        }
      },
      "ApiResponseHip3Instrument": {
        "type": "object",
        "description": "API response wrapping a single HIP-3 instrument",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/Hip3Instrument"
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "ApiResponseHip3InstrumentArray": {
        "type": "object",
        "description": "API response wrapping an array of HIP-3 instruments",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Hip3Instrument"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "Hip4Outcome": {
        "type": "object",
        "description": "HIP-4 per-side instrument metadata. One row per `#N` coin. Each outcome has two sides: side 0 (Yes) and side 1 (No). Public asset_id formula: `100_000_000 + 10*outcome_id + side`. Coin format: `#<10*outcome_id + side>`.",
        "required": [
          "outcome_id",
          "side",
          "asset_id",
          "coin",
          "symbol"
        ],
        "properties": {
          "outcome_id": {
            "type": "integer",
            "format": "int64",
            "description": "Numeric outcome identifier",
            "example": 0
          },
          "side": {
            "type": "integer",
            "description": "Side index: 0 = Yes, 1 = No",
            "enum": [
              0,
              1
            ],
            "example": 0
          },
          "asset_id": {
            "type": "integer",
            "format": "int64",
            "description": "Public asset ID. Formula: `100_000_000 + 10*outcome_id + side`.",
            "example": 100000000
          },
          "coin": {
            "type": "string",
            "description": "Coin identifier. Returned in `#`-prefixed form. REST paths accept either the bare numeric id (e.g. `0`) or the `#`-prefixed form (e.g. `#0`). Format: `10*outcome_id + side`.",
            "example": "#0"
          },
          "symbol": {
            "type": "string",
            "description": "Same value as `coin`. Provided for consistency with other venues.",
            "example": "#0"
          },
          "name": {
            "type": "string",
            "nullable": true,
            "description": "Human-readable per-side market name",
            "example": "BTC \u2265 78213 by 2026-05-03 06:00 UTC \u2014 Yes"
          },
          "description": {
            "type": "string",
            "nullable": true,
            "description": "Pipe-delimited recurring-market metadata",
            "example": "class:priceBinary|underlying:BTC|expiry:20260503-0600|targetPrice:78213|period:1d"
          },
          "side_name": {
            "type": "string",
            "nullable": true,
            "description": "Human label for this side (typically `Yes` or `No`)",
            "example": "Yes"
          },
          "recurring_class": {
            "type": "string",
            "nullable": true,
            "description": "Recurring market class (e.g., `priceBinary`)",
            "example": "priceBinary"
          },
          "recurring_underlying": {
            "type": "string",
            "nullable": true,
            "description": "Underlying asset for recurring price-binary outcomes",
            "example": "BTC"
          },
          "recurring_expiry": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Settlement timestamp (UTC)",
            "example": "2026-05-03T06:00:00Z"
          },
          "recurring_target_px": {
            "type": "number",
            "nullable": true,
            "description": "Target price for the binary outcome",
            "example": 78213
          },
          "recurring_period": {
            "type": "string",
            "nullable": true,
            "description": "Cadence of the recurring market (e.g., `1d`, `1h`)",
            "example": "1d"
          },
          "builder_address": {
            "type": "string",
            "nullable": true,
            "description": "Builder wallet address that deployed the outcome",
            "example": "0x0000000000000000000000000000000000000000"
          },
          "is_settled": {
            "type": "boolean",
            "description": "Whether the outcome has settled. Once settled, live tracking ends for the market, but historical data remains queryable.",
            "example": false
          },
          "settlement_value": {
            "type": "number",
            "nullable": true,
            "description": "Settlement value once the outcome settles (0.0 or 1.0 for binary outcomes). Omitted while unsettled.",
            "example": 0
          },
          "settlement_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Settlement timestamp (UTC). Omitted while unsettled.",
            "example": "2026-05-03T06:00:05.149Z"
          },
          "first_seen_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "When this outcome side was first observed by 0xArchive (UTC)",
            "example": "2026-05-02T07:47:00Z"
          },
          "last_updated_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Timestamp when the side metadata was last updated",
            "example": "2026-05-02T20:25:00Z"
          },
          "display_title": {
            "type": "string",
            "nullable": true,
            "description": "Per-side human-readable title, deterministic from parsed metadata.",
            "example": "BTC above 78,213 on May 3 at 06:00 UTC? \u2014 Yes"
          },
          "slug": {
            "type": "string",
            "nullable": true,
            "description": "Per-side URL slug mirroring Hyperliquid's pattern.",
            "example": "btc-above-78213-yes-may-03-0600"
          }
        }
      },
      "Hip4SideSpec": {
        "type": "object",
        "description": "Per-side spec nested in `Hip4OutcomeAggregate.side_specs`. One element per side (typically two: side 0 = Yes, side 1 = No).",
        "required": [
          "side",
          "name",
          "coin",
          "asset_id"
        ],
        "properties": {
          "side": {
            "type": "integer",
            "description": "Side index: 0 = Yes, 1 = No",
            "enum": [
              0,
              1
            ],
            "example": 0
          },
          "name": {
            "type": "string",
            "description": "Human label for this side",
            "example": "Yes"
          },
          "coin": {
            "type": "string",
            "description": "Coin identifier for this side. Returned in `#`-prefixed form. REST paths accept either the bare numeric id (e.g. `0`) or the `#`-prefixed form (e.g. `#0`).",
            "example": "#0"
          },
          "asset_id": {
            "type": "integer",
            "format": "int64",
            "description": "Public asset ID for this side",
            "example": 100000000
          }
        }
      },
      "Hip4AggregatedOi": {
        "type": "object",
        "description": "Derived OI display fields combining both sides of a HIP-4 outcome. Currency is always `USDH` (Hyperliquid's stablecoin). Only populated on `/outcomes/{outcome_id}` (detail), NOT on `/outcomes` (list).",
        "required": [
          "currency"
        ],
        "properties": {
          "side0_open_interest_contracts": {
            "type": "number",
            "nullable": true,
            "description": "Latest open-interest contracts for side 0 (Yes)",
            "example": 568048
          },
          "side1_open_interest_contracts": {
            "type": "number",
            "nullable": true,
            "description": "Latest open-interest contracts for side 1 (No)",
            "example": 568048
          },
          "outcome_display_open_interest_contracts": {
            "type": "number",
            "nullable": true,
            "description": "Display total: sum of side0 + side1 OI contracts. Use this for outcome-level OI dashboards.",
            "example": 1136096
          },
          "paired_set_supply_contracts": {
            "type": "number",
            "nullable": true,
            "description": "Paired-set supply: minimum of side0 and side1 OI contracts. Represents the count of fully collateralized Yes+No pairs in circulation.",
            "example": 568048
          },
          "side_supply_parity": {
            "type": "boolean",
            "nullable": true,
            "description": "True when side0 OI equals side1 OI within tolerance. Parity should hold for binary outcomes; a sustained false value indicates ingestion drift.",
            "example": true
          },
          "currency": {
            "type": "string",
            "description": "Notional currency. Always `USDH` for HIP-4.",
            "enum": [
              "USDH"
            ],
            "example": "USDH"
          },
          "as_of": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Latest timestamp across both sides",
            "example": "2026-05-02T20:27:21Z"
          },
          "side0_as_of": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Timestamp of the side 0 OI sample",
            "example": "2026-05-02T20:27:21Z"
          },
          "side1_as_of": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Timestamp of the side 1 OI sample",
            "example": "2026-05-02T20:27:21Z"
          }
        }
      },
      "Hip4OutcomeAggregate": {
        "type": "object",
        "description": "Per-outcome aggregate (both sides combined). Returned by `/outcomes` (list, without `aggregated_oi`) and `/outcomes/{outcome_id}` (detail, with `aggregated_oi` populated).",
        "required": [
          "outcome_id",
          "side_specs",
          "is_settled"
        ],
        "properties": {
          "outcome_id": {
            "type": "integer",
            "format": "int64",
            "description": "Numeric outcome identifier",
            "example": 0
          },
          "name": {
            "type": "string",
            "nullable": true,
            "description": "Human-readable outcome name (without per-side suffix)",
            "example": "BTC \u2265 78213 by 2026-05-03 06:00 UTC"
          },
          "description_raw": {
            "type": "string",
            "nullable": true,
            "description": "Pipe-delimited recurring-market metadata as emitted upstream",
            "example": "class:priceBinary|underlying:BTC|expiry:20260503-0600|targetPrice:78213|period:1d"
          },
          "class": {
            "type": "string",
            "nullable": true,
            "description": "Outcome class (e.g., `priceBinary`)",
            "example": "priceBinary"
          },
          "underlying": {
            "type": "string",
            "nullable": true,
            "description": "Underlying asset for recurring price-binary outcomes",
            "example": "BTC"
          },
          "expiry": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Settlement timestamp (UTC)",
            "example": "2026-05-03T06:00:00Z"
          },
          "target_price": {
            "type": "number",
            "nullable": true,
            "description": "Target price for the binary outcome",
            "example": 78213
          },
          "period": {
            "type": "string",
            "nullable": true,
            "description": "Cadence of the recurring market (e.g., `1d`, `1h`)",
            "example": "1d"
          },
          "side_specs": {
            "type": "array",
            "description": "Per-side specs. Typically two elements: side 0 (Yes) and side 1 (No).",
            "items": {
              "$ref": "#/components/schemas/Hip4SideSpec"
            }
          },
          "is_settled": {
            "type": "boolean",
            "description": "Whether the outcome has settled",
            "example": false
          },
          "status": {
            "type": "string",
            "nullable": true,
            "description": "Lifecycle status (`live`, `settled`, ...)",
            "example": "live"
          },
          "source_seen_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Last time the outcome was seen upstream",
            "example": "2026-05-02T20:25:00Z"
          },
          "aggregated_oi": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Hip4AggregatedOi"
              }
            ],
            "nullable": true,
            "description": "Display/paired/parity OI aggregates. Populated ONLY on the `/outcomes/{outcome_id}` detail response. Omitted (or null) on the `/outcomes` list response."
          }
        }
      },
      "Hip4OpenInterestRecord": {
        "type": "object",
        "description": "HIP-4 per-side open-interest record. Mirrors the HIP-3 OI shape and adds `outcome_id` and `side`. `oracle_price` is omitted for HIP-4 (outcomes have no oracle feed). Note: `mark_price` is an implied probability in [0,1], not a USD price; same field name as perps because Hyperliquid upstream uses `markPx` for both.",
        "required": [
          "coin",
          "symbol",
          "outcome_id",
          "side",
          "timestamp",
          "open_interest"
        ],
        "properties": {
          "coin": {
            "type": "string",
            "description": "`#`-prefixed per-side coin identifier",
            "example": "#0"
          },
          "symbol": {
            "type": "string",
            "description": "Same value as `coin`. Provided for consistency with other venues.",
            "example": "#0"
          },
          "outcome_id": {
            "type": "integer",
            "format": "int64",
            "description": "Numeric outcome identifier",
            "example": 0
          },
          "side": {
            "type": "integer",
            "description": "Side index: 0 = Yes, 1 = No",
            "enum": [
              0,
              1
            ],
            "example": 0
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Snapshot timestamp (UTC)",
            "example": "2026-05-02T20:27:21Z"
          },
          "open_interest": {
            "type": "string",
            "description": "Open interest in contracts (notional currency: USDH)",
            "example": "568048"
          },
          "mark_price": {
            "type": "string",
            "nullable": true,
            "description": "Implied probability in [0,1], NOT a USD price. Same field name as perps because Hyperliquid upstream uses `markPx` for both.",
            "example": "0.6502"
          },
          "mid_price": {
            "type": "string",
            "nullable": true,
            "description": "Mid price (probability in [0,1])",
            "example": "0.65038"
          }
        }
      },
      "ApiResponseHip4Outcome": {
        "type": "object",
        "description": "API response wrapping a single HIP-4 per-side instrument",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/Hip4Outcome"
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "ApiResponseHip4OutcomeArray": {
        "type": "object",
        "description": "API response wrapping an array of HIP-4 per-side instruments",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Hip4Outcome"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "ApiResponseHip4OutcomeAggregate": {
        "type": "object",
        "description": "API response wrapping a single HIP-4 outcome aggregate (with `aggregated_oi` populated on the detail endpoint)",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/Hip4OutcomeAggregate"
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "ApiResponseHip4OutcomeAggregateArray": {
        "type": "object",
        "description": "API response wrapping an array of HIP-4 outcome aggregates (without `aggregated_oi`; use `/outcomes/{outcome_id}` for the detail variant)",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Hip4OutcomeAggregate"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "ApiResponseHip4OpenInterest": {
        "type": "object",
        "description": "API response wrapping a single HIP-4 per-side open-interest record",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/Hip4OpenInterestRecord"
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "ApiResponseHip4OpenInterestArray": {
        "type": "object",
        "description": "API response wrapping an array of HIP-4 per-side open-interest records",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Hip4OpenInterestRecord"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "OpenInterest": {
        "type": "object",
        "description": "Open interest snapshot with market context",
        "required": [
          "symbol",
          "coin",
          "timestamp",
          "open_interest"
        ],
        "properties": {
          "symbol": {
            "type": "string",
            "description": "Trading pair symbol",
            "example": "BTC"
          },
          "coin": {
            "type": "string",
            "description": "Trading pair symbol (deprecated, use symbol instead)",
            "example": "BTC",
            "deprecated": true
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Snapshot timestamp (UTC)",
            "example": "2025-01-21T10:30:00.000Z"
          },
          "open_interest": {
            "type": "string",
            "description": "Total open interest in contracts",
            "example": "500000.00"
          },
          "mark_price": {
            "type": "string",
            "nullable": true,
            "description": "Mark price used for liquidations",
            "example": "42500.50"
          },
          "oracle_price": {
            "type": "string",
            "nullable": true,
            "description": "Oracle price from external feed",
            "example": "42498.25"
          },
          "day_ntl_volume": {
            "type": "string",
            "nullable": true,
            "description": "24-hour notional volume",
            "example": "10000000.00"
          },
          "prev_day_price": {
            "type": "string",
            "nullable": true,
            "description": "Price 24 hours ago",
            "example": "42000.00"
          },
          "mid_price": {
            "type": "string",
            "nullable": true,
            "description": "Current mid price",
            "example": "42500.75"
          },
          "impact_bid_price": {
            "type": "string",
            "nullable": true,
            "description": "Impact bid price for liquidations"
          },
          "impact_ask_price": {
            "type": "string",
            "nullable": true,
            "description": "Impact ask price for liquidations"
          }
        }
      },
      "FundingRate": {
        "type": "object",
        "description": "Funding rate record",
        "required": [
          "symbol",
          "coin",
          "timestamp",
          "funding_rate"
        ],
        "properties": {
          "symbol": {
            "type": "string",
            "description": "Trading pair symbol",
            "example": "BTC"
          },
          "coin": {
            "type": "string",
            "description": "Trading pair symbol (deprecated, use symbol instead)",
            "example": "BTC",
            "deprecated": true
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Funding timestamp (UTC)",
            "example": "2025-01-21T08:00:00.000Z"
          },
          "funding_rate": {
            "type": "string",
            "description": "Funding rate as a fractional, non-annualized decimal (e.g., 0.0001 = 0.01%)",
            "example": "0.00025"
          },
          "premium": {
            "type": "string",
            "nullable": true,
            "description": "Premium component of funding rate",
            "example": "0.0005"
          }
        }
      },
      "Candle": {
        "type": "object",
        "description": "OHLCV candle data",
        "required": [
          "timestamp",
          "open",
          "high",
          "low",
          "close",
          "volume"
        ],
        "properties": {
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Candle start timestamp (ISO 8601 UTC)",
            "example": "2026-01-01T12:00:00Z"
          },
          "open": {
            "type": "number",
            "format": "double",
            "description": "Opening price",
            "example": 42500.5
          },
          "high": {
            "type": "number",
            "format": "double",
            "description": "Highest price during interval",
            "example": 42750
          },
          "low": {
            "type": "number",
            "format": "double",
            "description": "Lowest price during interval",
            "example": 42300.25
          },
          "close": {
            "type": "number",
            "format": "double",
            "description": "Closing price",
            "example": 42650.75
          },
          "volume": {
            "type": "number",
            "format": "double",
            "description": "Trading volume in base asset",
            "example": 1250.5
          },
          "quote_volume": {
            "type": "number",
            "format": "double",
            "description": "Trading volume in quote asset (USD)",
            "example": 53187500
          },
          "trade_count": {
            "type": "integer",
            "description": "Number of trades in interval",
            "example": 4520
          }
        }
      },
      "ApiResponseCandleArray": {
        "type": "object",
        "description": "API response containing an array of candle data",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Candle"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "Liquidation": {
        "type": "object",
        "description": "Liquidation event",
        "required": [
          "symbol",
          "coin",
          "timestamp",
          "liquidated_user",
          "liquidator_user",
          "price",
          "size",
          "side"
        ],
        "properties": {
          "symbol": {
            "type": "string",
            "description": "Trading pair symbol",
            "example": "BTC"
          },
          "coin": {
            "type": "string",
            "description": "Trading pair symbol (deprecated, use symbol instead)",
            "example": "BTC",
            "deprecated": true
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Liquidation timestamp (UTC)",
            "example": "2025-05-21T10:30:00.000Z"
          },
          "liquidated_user": {
            "type": "string",
            "description": "Address of the user who was liquidated",
            "example": "0x84eec0068b37919cc8f13d7454073ac167374cc0"
          },
          "liquidator_user": {
            "type": "string",
            "description": "Address of the liquidator (counterparty)",
            "example": "0x4d969e59b312970cc07af266938a4433ccae0b4c"
          },
          "price": {
            "type": "string",
            "description": "Price at which the liquidation was executed",
            "example": "42500.50"
          },
          "size": {
            "type": "string",
            "description": "Size of the liquidated position",
            "example": "1.5"
          },
          "side": {
            "type": "string",
            "description": "Exchange side code for the liquidation-related fill (`A`/`B`). Use `direction` for close/open interpretation, especially on HIP-3.",
            "example": "B"
          },
          "mark_price": {
            "type": "string",
            "nullable": true,
            "description": "Mark price at time of liquidation",
            "example": "42480.25"
          },
          "closed_pnl": {
            "type": "string",
            "nullable": true,
            "description": "Realized PnL from the liquidation (usually negative)",
            "example": "-1250.50"
          },
          "direction": {
            "type": "string",
            "nullable": true,
            "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`)",
            "example": "Close Long"
          },
          "trade_id": {
            "type": "integer",
            "format": "int64",
            "nullable": true,
            "description": "Trade ID for this liquidation",
            "example": 1234567890
          },
          "tx_hash": {
            "type": "string",
            "nullable": true,
            "description": "Blockchain transaction hash",
            "example": "0xe266d353038e679c5d7e042433054f0000e1d8e52f7860ecda84573b9b5a02ca"
          }
        }
      },
      "ApiResponseLiquidationArray": {
        "type": "object",
        "description": "API response containing an array of liquidation events",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Liquidation"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "LiquidationVolume": {
        "type": "object",
        "description": "Aggregated liquidation volume for a time bucket",
        "required": [
          "symbol",
          "coin",
          "timestamp",
          "total_usd",
          "long_usd",
          "short_usd",
          "count",
          "long_count",
          "short_count"
        ],
        "properties": {
          "symbol": {
            "type": "string",
            "description": "Trading pair symbol",
            "example": "BTC"
          },
          "coin": {
            "type": "string",
            "description": "Trading pair symbol (deprecated, use symbol instead)",
            "example": "BTC",
            "deprecated": true
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Bucket start timestamp (UTC)",
            "example": "2025-05-21T10:00:00.000Z"
          },
          "total_usd": {
            "type": "number",
            "description": "Total liquidation volume in USD",
            "example": 1250000.5
          },
          "long_usd": {
            "type": "number",
            "description": "Long liquidation volume in USD",
            "example": 750000.25
          },
          "short_usd": {
            "type": "number",
            "description": "Short liquidation volume in USD",
            "example": 500000.25
          },
          "count": {
            "type": "integer",
            "description": "Total number of liquidations",
            "example": 42
          },
          "long_count": {
            "type": "integer",
            "description": "Number of long liquidations",
            "example": 25
          },
          "short_count": {
            "type": "integer",
            "description": "Number of short liquidations",
            "example": 17
          }
        }
      },
      "ApiResponseLiquidationVolumeArray": {
        "type": "object",
        "description": "API response containing an array of aggregated liquidation volumes",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LiquidationVolume"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "DataTypeFreshness": {
        "type": "object",
        "description": "Freshness information for a single data type",
        "properties": {
          "last_updated": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "When this data type was last updated for the coin",
            "example": "2026-02-23T12:00:00.000Z"
          },
          "lag_ms": {
            "type": "integer",
            "nullable": true,
            "description": "Current lag in milliseconds between now and last update",
            "example": 1200
          }
        }
      },
      "CoinFreshness": {
        "type": "object",
        "description": "Shared route-family freshness shape. Unsupported data-type buckets may be omitted; consult the operation description for each family.",
        "required": [
          "symbol",
          "coin",
          "exchange",
          "measured_at"
        ],
        "properties": {
          "symbol": {
            "type": "string",
            "description": "Trading pair symbol",
            "example": "BTC"
          },
          "coin": {
            "type": "string",
            "description": "Trading pair symbol (deprecated, use symbol instead)",
            "example": "BTC",
            "deprecated": true
          },
          "exchange": {
            "type": "string",
            "description": "Exchange name",
            "example": "hyperliquid"
          },
          "measured_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the freshness was measured",
            "example": "2026-02-23T12:00:00.000Z"
          },
          "orderbook": {
            "$ref": "#/components/schemas/DataTypeFreshness"
          },
          "trades": {
            "$ref": "#/components/schemas/DataTypeFreshness"
          },
          "funding": {
            "$ref": "#/components/schemas/DataTypeFreshness"
          },
          "open_interest": {
            "$ref": "#/components/schemas/DataTypeFreshness"
          },
          "liquidations": {
            "$ref": "#/components/schemas/DataTypeFreshness"
          }
        }
      },
      "ApiResponseCoinFreshness": {
        "type": "object",
        "description": "API response wrapping coin freshness data",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/CoinFreshness"
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "CoinSummary": {
        "type": "object",
        "description": "Shared market-summary shape. Route families omit unsupported optional fields; consult the operation description for family-specific applicability.",
        "required": [
          "symbol",
          "coin",
          "timestamp"
        ],
        "properties": {
          "symbol": {
            "type": "string",
            "description": "Trading pair symbol",
            "example": "BTC"
          },
          "coin": {
            "type": "string",
            "description": "Trading pair symbol (deprecated, use symbol instead)",
            "example": "BTC",
            "deprecated": true
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Summary timestamp (UTC)",
            "example": "2026-02-23T12:00:00.000Z"
          },
          "mark_price": {
            "type": "string",
            "nullable": true,
            "description": "Current mark price",
            "example": "95000.50"
          },
          "oracle_price": {
            "type": "string",
            "nullable": true,
            "description": "Current oracle price",
            "example": "94998.25"
          },
          "mid_price": {
            "type": "string",
            "nullable": true,
            "description": "Current mid price",
            "example": "95000.00"
          },
          "funding_rate": {
            "type": "string",
            "nullable": true,
            "description": "Current funding rate",
            "example": "0.00025"
          },
          "premium": {
            "type": "string",
            "nullable": true,
            "description": "Current premium",
            "example": "0.0005"
          },
          "open_interest": {
            "type": "string",
            "nullable": true,
            "description": "Current open interest",
            "example": "500000.00"
          },
          "volume_24h": {
            "type": "string",
            "nullable": true,
            "description": "24-hour notional volume",
            "example": "10000000.00"
          },
          "liquidation_volume_24h": {
            "type": "number",
            "nullable": true,
            "description": "Total 24h liquidation volume in USD",
            "example": 2500000
          },
          "long_liquidation_volume_24h": {
            "type": "number",
            "nullable": true,
            "description": "Long 24h liquidation volume in USD",
            "example": 1500000
          },
          "short_liquidation_volume_24h": {
            "type": "number",
            "nullable": true,
            "description": "Short 24h liquidation volume in USD",
            "example": 1000000
          }
        }
      },
      "ApiResponseCoinSummary": {
        "type": "object",
        "description": "API response wrapping a market summary",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/CoinSummary"
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "PriceSnapshot": {
        "type": "object",
        "description": "Price snapshot with family-applicable price fields. Optional mark, oracle, or mid fields may be omitted when that route family does not supply them.",
        "required": [
          "timestamp"
        ],
        "properties": {
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Snapshot timestamp (UTC)",
            "example": "2026-02-23T12:00:00.000Z"
          },
          "mark_price": {
            "type": "string",
            "nullable": true,
            "description": "Mark price",
            "example": "95000.50"
          },
          "oracle_price": {
            "type": "string",
            "nullable": true,
            "description": "Oracle price",
            "example": "94998.25"
          },
          "mid_price": {
            "type": "string",
            "nullable": true,
            "description": "Mid price",
            "example": "95000.00"
          }
        }
      },
      "ApiResponsePriceSnapshotArray": {
        "type": "object",
        "description": "API response containing an array of price snapshots",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PriceSnapshot"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "StatusResponse": {
        "type": "object",
        "description": "Overall system status",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "operational",
              "degraded",
              "outage",
              "maintenance"
            ],
            "description": "Overall system status"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When this status was computed"
          },
          "exchanges": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/ExchangeStatus"
            },
            "description": "Per-exchange status"
          },
          "data_types": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/DataTypeStatus"
            },
            "description": "Per-data-type status"
          },
          "active_incidents": {
            "type": "integer",
            "description": "Number of active incidents"
          }
        }
      },
      "ExchangeStatus": {
        "type": "object",
        "description": "Status of a single exchange",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "operational",
              "degraded",
              "outage",
              "maintenance"
            ]
          },
          "last_data_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Timestamp of last received data"
          },
          "latency_ms": {
            "type": "integer",
            "nullable": true,
            "description": "Current latency in milliseconds"
          }
        }
      },
      "DataTypeStatus": {
        "type": "object",
        "description": "Status of a data type",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "operational",
              "degraded",
              "outage",
              "maintenance"
            ]
          },
          "completeness_24h": {
            "type": "number",
            "description": "Data completeness over last 24 hours (0-100)"
          }
        }
      },
      "CoverageResponse": {
        "type": "object",
        "description": "Overall coverage response",
        "properties": {
          "exchanges": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExchangeCoverageResponse"
            }
          }
        }
      },
      "ExchangeCoverageResponse": {
        "type": "object",
        "description": "Coverage for a single exchange",
        "properties": {
          "exchange": {
            "type": "string",
            "description": "Exchange name"
          },
          "data_types": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/DataTypeCoverage"
            }
          }
        }
      },
      "DataTypeCoverage": {
        "type": "object",
        "description": "Coverage for a data type",
        "properties": {
          "earliest": {
            "type": "string",
            "format": "date-time",
            "description": "Earliest available data timestamp"
          },
          "latest": {
            "type": "string",
            "format": "date-time",
            "description": "Latest available data timestamp"
          },
          "total_records": {
            "type": "integer",
            "format": "int64",
            "description": "Total number of records"
          },
          "symbols": {
            "type": "integer",
            "description": "Number of symbols with data"
          },
          "resolution": {
            "type": "string",
            "nullable": true,
            "description": "Data resolution (e.g., '1.2s', '1m')"
          },
          "lag": {
            "type": "string",
            "nullable": true,
            "description": "Current data lag"
          },
          "completeness": {
            "type": "number",
            "description": "Completeness percentage (0-100)"
          }
        }
      },
      "SymbolCoverageResponse": {
        "type": "object",
        "description": "Per-symbol coverage response with gap detection",
        "required": [
          "exchange",
          "symbol",
          "data_types"
        ],
        "properties": {
          "exchange": {
            "type": "string",
            "description": "Exchange name"
          },
          "symbol": {
            "type": "string",
            "description": "Symbol name"
          },
          "data_types": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/SymbolDataTypeCoverage"
            }
          }
        }
      },
      "SymbolDataTypeCoverage": {
        "type": "object",
        "description": "Coverage for a symbol and data type",
        "required": [
          "earliest",
          "latest",
          "total_records",
          "completeness",
          "gaps"
        ],
        "properties": {
          "earliest": {
            "type": "string",
            "format": "date-time"
          },
          "latest": {
            "type": "string",
            "format": "date-time"
          },
          "total_records": {
            "type": "integer",
            "format": "int64"
          },
          "completeness": {
            "type": "number",
            "description": "24-hour completeness percentage (0-100)"
          },
          "historical_coverage": {
            "type": "number",
            "description": "Historical coverage percentage (0-100) based on hours with data / total hours in range",
            "nullable": true
          },
          "gaps": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CoverageGap"
            },
            "description": "Detected data gaps within the requested time window"
          },
          "cadence": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DataCadence"
              }
            ],
            "nullable": true,
            "description": "Empirical data cadence measurement (present when sufficient data exists)"
          }
        }
      },
      "DataCadence": {
        "type": "object",
        "description": "Empirical data cadence measurement based on last 7 days of data",
        "required": [
          "median_interval_seconds",
          "p95_interval_seconds",
          "sample_count"
        ],
        "properties": {
          "median_interval_seconds": {
            "type": "number",
            "description": "Median interval between consecutive records in seconds"
          },
          "p95_interval_seconds": {
            "type": "number",
            "description": "95th percentile interval between consecutive records in seconds"
          },
          "sample_count": {
            "type": "integer",
            "format": "int64",
            "description": "Number of intervals sampled for this measurement"
          }
        }
      },
      "CoverageGap": {
        "type": "object",
        "description": "A gap in data coverage",
        "required": [
          "start",
          "end",
          "duration_minutes"
        ],
        "properties": {
          "start": {
            "type": "string",
            "format": "date-time",
            "description": "Start of gap (last data before gap)"
          },
          "end": {
            "type": "string",
            "format": "date-time",
            "description": "End of gap (first data after gap)"
          },
          "duration_minutes": {
            "type": "integer",
            "description": "Gap duration in minutes"
          }
        }
      },
      "IncidentsResponse": {
        "type": "object",
        "description": "Incidents list response",
        "properties": {
          "incidents": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Incident"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/Pagination"
          }
        }
      },
      "Incident": {
        "type": "object",
        "description": "Data quality incident",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique incident ID"
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "investigating",
              "identified",
              "monitoring",
              "resolved"
            ]
          },
          "severity": {
            "type": "string",
            "enum": [
              "minor",
              "major",
              "critical"
            ]
          },
          "exchange": {
            "type": "string",
            "nullable": true,
            "description": "Affected exchange"
          },
          "data_types": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Affected data types"
          },
          "symbols_affected": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Affected symbols"
          },
          "started_at": {
            "type": "string",
            "format": "date-time"
          },
          "resolved_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "duration_minutes": {
            "type": "integer",
            "nullable": true
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "root_cause": {
            "type": "string",
            "nullable": true
          },
          "resolution": {
            "type": "string",
            "nullable": true
          },
          "records_affected": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "records_recovered": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          }
        }
      },
      "Pagination": {
        "type": "object",
        "description": "Pagination info",
        "properties": {
          "total": {
            "type": "integer",
            "description": "Total number of items"
          },
          "limit": {
            "type": "integer",
            "description": "Page size limit"
          },
          "offset": {
            "type": "integer",
            "description": "Current offset"
          }
        }
      },
      "LatencyResponse": {
        "type": "object",
        "description": "Latency metrics response",
        "properties": {
          "measured_at": {
            "type": "string",
            "format": "date-time"
          },
          "exchanges": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/ExchangeLatency"
            }
          }
        }
      },
      "ExchangeLatency": {
        "type": "object",
        "description": "Latency metrics for an exchange",
        "properties": {
          "websocket": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WebSocketLatency"
              }
            ],
            "nullable": true
          },
          "rest_api": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiLatency"
              }
            ],
            "nullable": true
          },
          "data_freshness": {
            "$ref": "#/components/schemas/DataFreshness"
          }
        }
      },
      "WebSocketLatency": {
        "type": "object",
        "properties": {
          "current_ms": {
            "type": "integer"
          },
          "avg_1h_ms": {
            "type": "integer"
          },
          "avg_24h_ms": {
            "type": "integer"
          },
          "p99_24h_ms": {
            "type": "integer",
            "nullable": true
          }
        }
      },
      "ApiLatency": {
        "type": "object",
        "properties": {
          "current_ms": {
            "type": "integer"
          },
          "avg_1h_ms": {
            "type": "integer"
          },
          "avg_24h_ms": {
            "type": "integer"
          }
        }
      },
      "DataFreshness": {
        "type": "object",
        "description": "Data freshness metrics",
        "properties": {
          "orderbook_lag_ms": {
            "type": "integer",
            "nullable": true
          },
          "fills_lag_ms": {
            "type": "integer",
            "nullable": true
          },
          "funding_lag_ms": {
            "type": "integer",
            "nullable": true
          },
          "oi_lag_ms": {
            "type": "integer",
            "nullable": true
          }
        }
      },
      "SlaResponse": {
        "type": "object",
        "description": "SLA compliance response",
        "properties": {
          "period": {
            "type": "string",
            "description": "Period covered (e.g., '2026-01')"
          },
          "sla_targets": {
            "$ref": "#/components/schemas/SlaTargets"
          },
          "actual": {
            "$ref": "#/components/schemas/SlaActual"
          },
          "incidents_this_period": {
            "type": "integer"
          },
          "total_downtime_minutes": {
            "type": "integer"
          }
        }
      },
      "SlaTargets": {
        "type": "object",
        "properties": {
          "uptime": {
            "type": "number",
            "description": "Uptime target percentage"
          },
          "data_completeness": {
            "type": "number",
            "description": "Data completeness target percentage"
          },
          "api_latency_p99_ms": {
            "type": "integer",
            "description": "API P99 latency target in ms"
          }
        }
      },
      "SlaActual": {
        "type": "object",
        "properties": {
          "uptime": {
            "type": "number"
          },
          "uptime_status": {
            "type": "string",
            "enum": [
              "met",
              "missed"
            ]
          },
          "data_completeness": {
            "$ref": "#/components/schemas/CompletenessMetrics"
          },
          "completeness_status": {
            "type": "string",
            "enum": [
              "met",
              "missed"
            ]
          },
          "api_latency_p99_ms": {
            "type": "integer"
          },
          "latency_status": {
            "type": "string",
            "enum": [
              "met",
              "missed"
            ]
          }
        }
      },
      "CompletenessMetrics": {
        "type": "object",
        "properties": {
          "orderbook": {
            "type": "number"
          },
          "fills": {
            "type": "number"
          },
          "funding": {
            "type": "number"
          },
          "overall": {
            "type": "number"
          }
        }
      },
      "Web3ChallengeRequest": {
        "type": "object",
        "required": [
          "address"
        ],
        "properties": {
          "address": {
            "type": "string",
            "description": "Ethereum wallet address",
            "example": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD18"
          }
        }
      },
      "Web3ChallengeResponse": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "SIWE message to sign with personal_sign (EIP-191)"
          },
          "nonce": {
            "type": "string",
            "description": "Single-use nonce (expires after 10 minutes)"
          }
        }
      },
      "Web3KeysRequest": {
        "type": "object",
        "required": [
          "message",
          "signature"
        ],
        "properties": {
          "message": {
            "type": "string",
            "description": "The SIWE message from the challenge endpoint"
          },
          "signature": {
            "type": "string",
            "description": "Hex-encoded signature from personal_sign (0x-prefixed)"
          }
        }
      },
      "Web3KeysResponse": {
        "type": "object",
        "properties": {
          "keys": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Web3ApiKey"
            }
          },
          "wallet_address": {
            "type": "string",
            "description": "The wallet address"
          }
        }
      },
      "Web3ApiKey": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Unique key ID"
          },
          "name": {
            "type": "string",
            "description": "Key name"
          },
          "key_prefix": {
            "type": "string",
            "description": "First characters of the key for identification",
            "example": "0xa_live_abc1"
          },
          "is_active": {
            "type": "boolean",
            "description": "Whether the key is currently active"
          },
          "last_used_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Last usage timestamp"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Creation timestamp"
          }
        }
      },
      "Web3RevokeRequest": {
        "type": "object",
        "required": [
          "message",
          "signature",
          "key_id"
        ],
        "properties": {
          "message": {
            "type": "string",
            "description": "The SIWE message from the challenge endpoint"
          },
          "signature": {
            "type": "string",
            "description": "Hex-encoded signature from personal_sign (0x-prefixed)"
          },
          "key_id": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the key to revoke"
          }
        }
      },
      "Web3RevokeResponse": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "Confirmation message",
            "example": "API key revoked successfully"
          },
          "wallet_address": {
            "type": "string",
            "description": "The wallet address that owned the key"
          }
        }
      },
      "Web3SubscribeRequest": {
        "type": "object",
        "required": [
          "tier"
        ],
        "properties": {
          "tier": {
            "type": "string",
            "enum": [
              "build",
              "pro"
            ],
            "description": "Subscription tier to purchase",
            "example": "build"
          }
        }
      },
      "Web3SubscribeResponse": {
        "type": "object",
        "properties": {
          "api_key": {
            "type": "string",
            "description": "The generated API key for the new subscription",
            "example": "0xa_..."
          },
          "tier": {
            "type": "string",
            "description": "The subscription tier activated",
            "example": "build"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "description": "Subscription expiration date (30 days from purchase)"
          },
          "wallet_address": {
            "type": "string",
            "description": "The wallet address associated with the subscription"
          },
          "tx_hash": {
            "type": "string",
            "description": "On-chain transaction hash for the USDC transfer (if settled)",
            "nullable": true
          }
        }
      },
      "Error": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ErrorResponse"
          }
        ],
        "deprecated": true,
        "description": "Deprecated name of `ErrorResponse`, kept so existing references resolve.",
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": false,
            "description": "Always false on an error."
          },
          "code": {
            "type": "integer",
            "description": "HTTP status code"
          },
          "error": {
            "type": "string",
            "description": "Error message"
          },
          "error_code": {
            "type": "string",
            "description": "Machine-readable error code. Common values: `invalid_query_params` (a query parameter failed to parse or validate) and `invalid_path_params` (a path parameter failed to parse). Other endpoint-specific codes exist; treat unknown codes as generic errors of the given HTTP status."
          },
          "request_id": {
            "type": "string",
            "format": "uuid",
            "description": "Unique request ID for support"
          },
          "param": {
            "type": "string",
            "description": "The parameter at fault, when the error is about one parameter."
          }
        }
      },
      "SpotPair": {
        "type": "object",
        "description": "Hyperliquid Spot pair metadata.",
        "additionalProperties": true,
        "properties": {
          "symbol": {
            "type": "string",
            "example": "HYPE-USDC"
          },
          "base": {
            "type": "string",
            "example": "HYPE"
          },
          "quote": {
            "type": "string",
            "example": "USDC"
          }
        }
      },
      "ApiResponseSpotPair": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/SpotPair"
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "ApiResponseSpotPairArray": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SpotPair"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "SpotFreshnessBucket": {
        "type": "object",
        "description": "Freshness state for one Hyperliquid Spot data type.",
        "additionalProperties": true,
        "properties": {
          "lag_ms": {
            "type": "integer",
            "nullable": true,
            "description": "Measured lag in milliseconds when available.",
            "example": 440
          },
          "last_updated": {
            "type": "string",
            "nullable": true,
            "format": "date-time",
            "description": "Most recent update timestamp when available.",
            "example": "2026-05-08T21:20:34.837Z"
          }
        }
      },
      "SpotFreshness": {
        "type": "object",
        "description": "Freshness state for a Hyperliquid Spot pair.",
        "additionalProperties": true,
        "required": [
          "symbol",
          "coin",
          "exchange",
          "measured_at"
        ],
        "properties": {
          "symbol": {
            "type": "string",
            "example": "HYPE-USDC"
          },
          "coin": {
            "type": "string",
            "example": "HYPE-USDC"
          },
          "exchange": {
            "type": "string",
            "example": "spot"
          },
          "measured_at": {
            "type": "string",
            "format": "date-time",
            "example": "2026-05-08T21:20:35.277945340Z"
          },
          "orderbook": {
            "$ref": "#/components/schemas/SpotFreshnessBucket"
          },
          "trades": {
            "$ref": "#/components/schemas/SpotFreshnessBucket"
          },
          "l4_checkpoints": {
            "$ref": "#/components/schemas/SpotFreshnessBucket"
          },
          "l4_diffs": {
            "$ref": "#/components/schemas/SpotFreshnessBucket"
          },
          "orders": {
            "$ref": "#/components/schemas/SpotFreshnessBucket"
          },
          "twap": {
            "$ref": "#/components/schemas/SpotFreshnessBucket"
          }
        }
      },
      "ApiResponseSpotFreshness": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/SpotFreshness"
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "SpotTwapRecord": {
        "type": "object",
        "description": "Hyperliquid Spot TWAP record. Fields may expand as TWAP coverage fills in for a pair.",
        "additionalProperties": true
      },
      "ApiResponseSpotTwapArray": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SpotTwapRecord"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "ApiResponseGenericArray": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "L2OrderBookDiff": {
        "type": "object",
        "description": "Full-depth L2 aggregate diff event derived from L4 deltas",
        "required": [
          "timestamp",
          "block_number",
          "side",
          "price",
          "size",
          "count"
        ],
        "properties": {
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Diff timestamp (UTC)",
            "example": "2026-06-05T13:53:33.971Z"
          },
          "block_number": {
            "type": "integer",
            "format": "int64",
            "description": "Hyperliquid block number for the diff event",
            "example": 1023882395
          },
          "side": {
            "type": "string",
            "enum": [
              "B",
              "A"
            ],
            "description": "Book side: B for bid, A for ask",
            "example": "B"
          },
          "price": {
            "type": "number",
            "description": "Price level changed by this diff",
            "example": 61088
          },
          "size": {
            "type": "number",
            "description": "Aggregate size at the price level after the diff",
            "example": 0.40603
          },
          "count": {
            "type": "integer",
            "description": "Number of orders at the price level after the diff",
            "example": 3
          }
        }
      },
      "ApiResponseL2OrderBookDiffArray": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/L2OrderBookDiff"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "FullDepthL2OrderBook": {
        "allOf": [
          {
            "$ref": "#/components/schemas/OrderBook"
          },
          {
            "type": "object",
            "description": "0xArchive full-depth aggregated L2 order book snapshot derived from L4 data",
            "properties": {
              "bid_levels": {
                "type": "integer",
                "description": "Total bid price levels available before any depth truncation",
                "example": 9842
              },
              "ask_levels": {
                "type": "integer",
                "description": "Total ask price levels available before any depth truncation",
                "example": 10318
              },
              "total_bid_size": {
                "type": "number",
                "description": "Aggregate bid size across the available full-depth L2 book",
                "example": 10234.56
              },
              "total_ask_size": {
                "type": "number",
                "description": "Aggregate ask size across the available full-depth L2 book",
                "example": 9876.54
              }
            }
          }
        ]
      },
      "ApiResponseFullDepthL2OrderBook": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/FullDepthL2OrderBook"
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "ApiResponseFullDepthL2OrderBookArray": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FullDepthL2OrderBook"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "CvdBucket": {
        "type": "object",
        "description": "Cumulative volume delta bucket.",
        "required": [
          "timestamp",
          "buy_volume",
          "sell_volume",
          "delta",
          "cumulative_delta"
        ],
        "properties": {
          "timestamp": {
            "description": "Bucket open time (UTC). By default an integer, Unix milliseconds. With `0xArchive-Version: 2026-10-01` an RFC 3339 UTC string with millisecond precision, and the integer moves to `timestamp_ms`.",
            "oneOf": [
              {
                "type": "integer",
                "format": "int64",
                "description": "Default: Unix milliseconds.",
                "example": 1781593200000
              },
              {
                "type": "string",
                "format": "date-time",
                "description": "Version 2026-10-01: RFC 3339 UTC.",
                "example": "2026-01-01T00:00:00.000Z"
              }
            ]
          },
          "timestamp_ms": {
            "type": "integer",
            "format": "int64",
            "description": "With `0xArchive-Version: 2026-10-01` only: `timestamp` as Unix milliseconds.",
            "example": 1767225600000
          },
          "buy_volume": {
            "type": "number",
            "description": "Buy-side volume for the bucket.",
            "example": 30160211.46768
          },
          "sell_volume": {
            "type": "number",
            "description": "Sell-side volume for the bucket.",
            "example": 32901130.02649
          },
          "delta": {
            "type": "number",
            "description": "buy_volume minus sell_volume for this bucket.",
            "example": -2740918.55881
          },
          "cumulative_delta": {
            "type": "number",
            "description": "Running total of `delta` from the first bucket of this response. It restarts on every page, so rebuild it from `delta` when joining pages.",
            "example": -2740918.55881
          }
        }
      },
      "ApiResponseCvdBucketArray": {
        "type": "object",
        "description": "API response containing CVD buckets.",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CvdBucket"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "LiquidationLevelsData": {
        "type": "object",
        "description": "Projected forced-liquidation levels computed from clearinghouse positions and margin state (positions plus maintenance-margin tiers), aggregated into price buckets around the snapshot mark price. Snapshots are computed roughly every 5 minutes; snapshot_ts identifies the snapshot served.",
        "required": [
          "mid_price",
          "snapshot_ts",
          "block_number",
          "total_long",
          "total_short",
          "flagged_notional",
          "source",
          "levels"
        ],
        "properties": {
          "mid_price": {
            "type": "number",
            "description": "Mark price at the snapshot, center of the requested range.",
            "example": 64215
          },
          "snapshot_ts": {
            "type": "string",
            "description": "UTC snapshot time the levels reflect. Treat snapshots older than 2 hours as stale. By default a UTC string in `YYYY-MM-DD HH:MM:SS.mmm` form. With `0xArchive-Version: 2026-10-01` an RFC 3339 UTC string with millisecond precision, and `snapshot_ts_ms` carries the instant as Unix milliseconds."
          },
          "snapshot_ts_ms": {
            "type": "integer",
            "format": "int64",
            "description": "With `0xArchive-Version: 2026-10-01` only: `snapshot_ts` as Unix milliseconds.",
            "example": 1767225600000
          },
          "block_number": {
            "type": "integer",
            "format": "int64",
            "description": "Hyperliquid block height the snapshot reflects."
          },
          "total_long": {
            "type": "number",
            "description": "Total long notional at risk across the whole book, not only the returned window."
          },
          "total_short": {
            "type": "number",
            "description": "Total short notional at risk across the whole book."
          },
          "flagged_notional": {
            "type": "number",
            "description": "Notional reported in totals but computed approximately or not assigned to a returned bucket. For HIP-3, cross-margined exposure is reported here and excluded from buckets."
          },
          "source": {
            "type": "string",
            "enum": [
              "raw",
              "histogram"
            ],
            "description": "Snapshot storage form used to answer the request. raw means query-time bins over stored fine-grained levels; histogram means proportional re-binning of a retained base histogram."
          },
          "source_bin_width": {
            "type": "number",
            "description": "Stored source-bin width in price units. Present only when source is histogram."
          },
          "levels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LiquidationLevelBucket"
            }
          }
        }
      },
      "ApiResponseLiquidationLevels": {
        "type": "object",
        "description": "API response containing projected forced-liquidation levels for one snapshot.",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/LiquidationLevelsData"
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "Hip3OracleExternalPrice": {
        "type": "object",
        "description": "Latest deployer-pushed external and mark price for a HIP-3 market.",
        "required": [
          "symbol",
          "block_number",
          "timestamp"
        ],
        "properties": {
          "symbol": {
            "type": "string",
            "description": "HIP-3 symbol.",
            "example": "km:US500"
          },
          "external_price": {
            "type": "number",
            "nullable": true,
            "description": "Externally derived reference price when available.",
            "example": 752.24
          },
          "mark_price": {
            "type": "number",
            "nullable": true,
            "description": "On-chain mark input.",
            "example": 752.1
          },
          "block_number": {
            "type": "integer",
            "format": "int64",
            "description": "Source block number.",
            "example": 1038634032
          },
          "timestamp": {
            "description": "Source time of the reading. By default an integer, Unix milliseconds. With `0xArchive-Version: 2026-10-01` an RFC 3339 UTC string with millisecond precision, and the integer moves to `timestamp_ms`.",
            "oneOf": [
              {
                "type": "integer",
                "format": "int64",
                "description": "Default: Unix milliseconds.",
                "example": 1781678086894
              },
              {
                "type": "string",
                "format": "date-time",
                "description": "Version 2026-10-01: RFC 3339 UTC.",
                "example": "2026-01-01T00:00:00.000Z"
              }
            ]
          },
          "timestamp_ms": {
            "type": "integer",
            "format": "int64",
            "description": "With `0xArchive-Version: 2026-10-01` only: `timestamp` as Unix milliseconds.",
            "example": 1767225600000
          }
        }
      },
      "Hip3OracleDiscoveryBounds": {
        "type": "object",
        "description": "Instantaneous HIP-3 discovery bounds derived from the current reference price and max leverage.",
        "required": [
          "symbol",
          "reference_price",
          "reference_source",
          "max_leverage",
          "bound_fraction",
          "lower_bound",
          "upper_bound",
          "block_number",
          "timestamp"
        ],
        "properties": {
          "symbol": {
            "type": "string",
            "description": "HIP-3 symbol.",
            "example": "km:US500"
          },
          "reference_price": {
            "type": "number",
            "description": "External price when available, otherwise mark price.",
            "example": 752.24
          },
          "reference_source": {
            "type": "string",
            "enum": [
              "external",
              "mark"
            ],
            "description": "Price source used for the bounds.",
            "example": "external"
          },
          "max_leverage": {
            "type": "integer",
            "description": "Market max leverage used for the bound fraction.",
            "example": 20
          },
          "bound_fraction": {
            "type": "number",
            "description": "Fraction applied on each side of reference_price.",
            "example": 0.05
          },
          "lower_bound": {
            "type": "number",
            "description": "Instantaneous lower discovery bound.",
            "example": 714.628
          },
          "upper_bound": {
            "type": "number",
            "description": "Instantaneous upper discovery bound.",
            "example": 789.852
          },
          "block_number": {
            "type": "integer",
            "format": "int64",
            "description": "Source block number.",
            "example": 1038634032
          },
          "timestamp": {
            "description": "Source time of the reading. By default an integer, Unix milliseconds. With `0xArchive-Version: 2026-10-01` an RFC 3339 UTC string with millisecond precision, and the integer moves to `timestamp_ms`.",
            "oneOf": [
              {
                "type": "integer",
                "format": "int64",
                "description": "Default: Unix milliseconds.",
                "example": 1781678086894
              },
              {
                "type": "string",
                "format": "date-time",
                "description": "Version 2026-10-01: RFC 3339 UTC.",
                "example": "2026-01-01T00:00:00.000Z"
              }
            ]
          },
          "timestamp_ms": {
            "type": "integer",
            "format": "int64",
            "description": "With `0xArchive-Version: 2026-10-01` only: `timestamp` as Unix milliseconds.",
            "example": 1767225600000
          }
        }
      },
      "ApiResponseHip3OracleExternalPrice": {
        "type": "object",
        "description": "API response containing HIP-3 oracle external price data.",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/Hip3OracleExternalPrice"
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "ApiResponseHip3OracleDiscoveryBounds": {
        "type": "object",
        "description": "API response containing HIP-3 oracle discovery bounds.",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/Hip3OracleDiscoveryBounds"
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "Hip4Question": {
        "type": "object",
        "description": "HIP-4 question: multi-choice resolver that groups N binary outcomes under one ballot. One named outcome per choice plus a fallback outcome that wins when no named choice resolves.",
        "required": [
          "question_id",
          "name",
          "description",
          "fallback_outcome_id",
          "named_outcome_ids",
          "settled_named_outcomes",
          "first_seen_at",
          "last_updated_at"
        ],
        "properties": {
          "question_id": {
            "type": "integer",
            "format": "int64",
            "description": "Question identifier.",
            "example": 0
          },
          "name": {
            "type": "string",
            "description": "Question name as published on-chain (recurring markets use a generic name such as `Recurring`).",
            "example": "Recurring"
          },
          "description": {
            "type": "string",
            "description": "Pipe-delimited question metadata (class, underlying, expiry, price thresholds, period).",
            "example": "class:priceBucket|underlying:BTC|expiry:20260508-0600|priceThresholds:79303,82540|period:1d"
          },
          "fallback_outcome_id": {
            "type": "integer",
            "format": "int64",
            "description": "Outcome ID that resolves Yes when no named outcome does.",
            "example": 6
          },
          "named_outcome_ids": {
            "type": "array",
            "description": "Outcome IDs of the named choices grouped under this question.",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "example": [
              7,
              8,
              9
            ]
          },
          "settled_named_outcomes": {
            "type": "array",
            "description": "Subset of `named_outcome_ids` that have already settled.",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "example": []
          },
          "first_seen_at": {
            "type": "string",
            "format": "date-time",
            "description": "When this question was first observed by 0xArchive (UTC).",
            "example": "2026-05-08T05:57:28.326Z"
          },
          "last_updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When this question row was last updated (UTC).",
            "example": "2026-05-08T05:57:28.326Z"
          }
        },
        "additionalProperties": true
      },
      "ApiResponseHip4Question": {
        "type": "object",
        "description": "API response containing one HIP-4 question.",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/Hip4Question"
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "ApiResponseHip4QuestionArray": {
        "type": "object",
        "description": "API response containing HIP-4 questions.",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Hip4Question"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "WalletClassifyMetrics": {
        "type": "object",
        "description": "Precomputed wallet behavior metrics.",
        "additionalProperties": false,
        "properties": {
          "total_orders": {
            "type": "integer",
            "format": "int64"
          },
          "cancel_rate": {
            "type": "number"
          },
          "fill_rate": {
            "type": "number"
          },
          "order_to_trade_ratio": {
            "type": "number"
          },
          "ioc_ratio": {
            "type": "number"
          },
          "post_only_ratio": {
            "type": "number"
          },
          "tpsl_ratio": {
            "type": "number"
          },
          "trigger_order_ratio": {
            "type": "number"
          },
          "unique_coins_traded": {
            "type": "integer",
            "format": "int64"
          },
          "uses_tpsl": {
            "type": "boolean"
          },
          "uses_builder": {
            "type": "boolean"
          },
          "top_builder": {
            "type": "string",
            "description": "Builder address this wallet routed the most orders through. Omitted when the wallet used no builder."
          },
          "avg_order_size_usd": {
            "type": "number"
          },
          "max_order_size_usd": {
            "type": "number"
          },
          "median_cancel_speed_ms": {
            "type": "number"
          },
          "active_hours": {
            "type": "integer",
            "format": "int64"
          },
          "total_fills": {
            "type": "integer",
            "format": "int64"
          },
          "total_volume_usd": {
            "type": "number"
          },
          "maker_ratio": {
            "type": "number"
          },
          "long_short_ratio": {
            "type": "number"
          },
          "buy_volume_usd": {
            "type": "number"
          },
          "sell_volume_usd": {
            "type": "number"
          },
          "total_fees_usd": {
            "type": "number"
          },
          "realized_pnl_usd": {
            "type": "number"
          },
          "liquidation_count": {
            "type": "integer",
            "format": "int64"
          },
          "max_single_fill_usd": {
            "type": "number"
          },
          "unique_fill_coins": {
            "type": "integer",
            "format": "int64"
          },
          "uses_twap": {
            "type": "boolean"
          },
          "twap_fill_ratio": {
            "type": "number"
          },
          "uses_cloid": {
            "type": "boolean"
          },
          "cloid_ratio": {
            "type": "number"
          },
          "uses_priority_gas": {
            "type": "boolean"
          },
          "total_priority_gas_paid": {
            "type": "number"
          },
          "total_builder_fees_paid": {
            "type": "number"
          }
        }
      },
      "ClassifiedWallet": {
        "type": "object",
        "description": "Wallet plus its precomputed behavior metrics.",
        "required": [
          "address",
          "metrics",
          "period"
        ],
        "properties": {
          "address": {
            "type": "string",
            "description": "Wallet address.",
            "example": "0x010461c14e146ac35fe42271bdc1134ee31c703a"
          },
          "metrics": {
            "$ref": "#/components/schemas/WalletClassifyMetrics"
          },
          "period": {
            "type": "string",
            "description": "Metric lookback period.",
            "example": "24h"
          }
        }
      },
      "WalletClassifyData": {
        "type": "object",
        "description": "Bulk wallet classification response body.",
        "required": [
          "wallets",
          "total",
          "date"
        ],
        "properties": {
          "wallets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ClassifiedWallet"
            }
          },
          "total": {
            "type": "integer",
            "format": "int64",
            "description": "Total wallets matching the filters.",
            "example": 4444
          },
          "date": {
            "type": "string",
            "description": "Daily snapshot date.",
            "example": "2026-06-16"
          }
        }
      },
      "ApiResponseWalletClassifyData": {
        "type": "object",
        "description": "API response containing bulk wallet classification results.",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/WalletClassifyData"
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "SymbolEntry": {
        "type": "object",
        "description": "Public market symbol entry.",
        "required": [
          "symbol",
          "exchange",
          "data_types"
        ],
        "properties": {
          "symbol": {
            "type": "string",
            "example": "BTC"
          },
          "exchange": {
            "type": "string",
            "description": "Venue-family key.",
            "example": "hyperliquid"
          },
          "coverage_from": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "coverage_to": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "data_types": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "l2_orderbook",
              "trades",
              "liquidations"
            ]
          },
          "coverage_by_type": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "format": "date-time"
            }
          },
          "size_per_day": {
            "type": "object",
            "additionalProperties": {
              "type": "number"
            }
          },
          "slug": {
            "type": "string",
            "nullable": true,
            "description": "HIP-4 slug when available."
          },
          "outcome_pair": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            },
            "minItems": 2,
            "maxItems": 2
          },
          "display_title": {
            "type": "string",
            "nullable": true
          },
          "is_settled": {
            "type": "boolean",
            "nullable": true
          },
          "is_active": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SymbolsResponse": {
        "type": "object",
        "description": "`/v1/symbols` without `0xArchive-Version`: the symbol entries under `symbols`, with `success` and `meta.request_id`. With `0xArchive-Version: 2026-10-01` see `SymbolsEnvelope`.",
        "required": [
          "success",
          "symbols",
          "meta"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              true
            ]
          },
          "symbols": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SymbolEntry"
            }
          },
          "meta": {
            "type": "object",
            "required": [
              "request_id"
            ],
            "properties": {
              "request_id": {
                "type": "string",
                "format": "uuid",
                "description": "Unique request ID for support."
              }
            }
          }
        }
      },
      "StatsResponse": {
        "type": "object",
        "description": "Public lightweight API/site statistics.",
        "properties": {
          "l4_open_orders": {
            "type": "integer",
            "format": "int64",
            "description": "Current L4 open-order count used by public status/product surfaces.",
            "example": 1234567
          }
        },
        "additionalProperties": true
      },
      "Web3VerifyRequest": {
        "type": "object",
        "required": [
          "message",
          "signature"
        ],
        "properties": {
          "message": {
            "type": "string",
            "description": "SIWE message returned by `/v1/auth/web3/challenge` and signed by the wallet."
          },
          "signature": {
            "type": "string",
            "description": "65-byte hex ECDSA signature, with or without 0x prefix.",
            "example": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          }
        }
      },
      "Web3UserInfo": {
        "type": "object",
        "required": [
          "id",
          "email",
          "tier",
          "wallet_address"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "email": {
            "type": "string",
            "description": "Account email associated with the wallet user."
          },
          "tier": {
            "type": "string",
            "description": "Current subscription tier.",
            "example": "free"
          },
          "wallet_address": {
            "type": "string",
            "description": "Authenticated wallet address.",
            "example": "0x742d35cc6634c0532925a3b844bc9e7595f2bd18"
          }
        }
      },
      "Web3AuthResponse": {
        "type": "object",
        "description": "Successful SIWE verification response for an existing wallet account. The route also sets auth cookies for browser/session flows.",
        "required": [
          "success",
          "user",
          "is_new_user"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "user": {
            "$ref": "#/components/schemas/Web3UserInfo"
          },
          "is_new_user": {
            "type": "boolean",
            "description": "Always false. SIWE verification does not create wallet accounts.",
            "example": false,
            "enum": [
              false
            ]
          }
        }
      },
      "Web3ErrorResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ErrorResponse"
          }
        ],
        "deprecated": true,
        "description": "Deprecated name of `ErrorResponse`, kept so existing references resolve."
      },
      "Web3SignupRequest": {
        "type": "object",
        "description": "Legacy request shape retained for compatibility clients. POST /v1/web3/signup ignores the payload and returns HTTP 410.",
        "required": [
          "message",
          "signature"
        ],
        "properties": {
          "message": {
            "type": "string",
            "description": "Legacy SIWE message field. The retired route does not verify or process it."
          },
          "signature": {
            "type": "string",
            "description": "Legacy personal_sign signature field. The retired route does not verify or process it.",
            "example": "0x..."
          }
        }
      },
      "LiquidationLevelBucket": {
        "type": "object",
        "description": "One price bucket of projected forced-liquidation exposure.",
        "required": [
          "price",
          "long_notional",
          "short_notional",
          "long_count",
          "short_count"
        ],
        "properties": {
          "price": {
            "type": "number",
            "description": "Bucket center price."
          },
          "long_notional": {
            "type": "number",
            "description": "USD notional of long positions projected to liquidate in this bucket."
          },
          "short_notional": {
            "type": "number",
            "description": "USD notional of short positions projected to liquidate in this bucket."
          },
          "long_count": {
            "type": "integer",
            "description": "Number of long positions in this bucket."
          },
          "short_count": {
            "type": "integer",
            "description": "Number of short positions in this bucket."
          }
        }
      },
      "LiquidationLevelsHistoryItem": {
        "type": "object",
        "description": "One historical liquidation-levels snapshot. levels is omitted when summary=true.",
        "required": [
          "snapshot_ts",
          "block_number",
          "mid_price",
          "total_long",
          "total_short",
          "flagged_notional"
        ],
        "properties": {
          "snapshot_ts": {
            "type": "string",
            "description": "UTC snapshot time. By default a UTC string in `YYYY-MM-DD HH:MM:SS.mmm` form. With `0xArchive-Version: 2026-10-01` an RFC 3339 UTC string with millisecond precision, and `snapshot_ts_ms` carries the instant as Unix milliseconds."
          },
          "snapshot_ts_ms": {
            "type": "integer",
            "format": "int64",
            "description": "With `0xArchive-Version: 2026-10-01` only: `snapshot_ts` as Unix milliseconds.",
            "example": 1767225600000
          },
          "block_number": {
            "type": "integer",
            "format": "int64"
          },
          "mid_price": {
            "type": "number"
          },
          "total_long": {
            "type": "number"
          },
          "total_short": {
            "type": "number"
          },
          "flagged_notional": {
            "type": "number"
          },
          "levels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LiquidationLevelBucket"
            }
          }
        }
      },
      "ApiResponseLiquidationLevelsHistory": {
        "type": "object",
        "description": "Paginated historical liquidation-levels snapshots, ascending by snapshot_ts. When a page is full, meta.next_cursor carries the cursor for the next page.",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LiquidationLevelsHistoryItem"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "TriggerLevel": {
        "type": "object",
        "description": "Aggregated currently open trigger orders at one rounded price bucket.",
        "required": [
          "price_bucket",
          "bid_count",
          "bid_size",
          "ask_count",
          "ask_size"
        ],
        "properties": {
          "price_bucket": {
            "type": "number",
            "description": "Rounded trigger price bucket.",
            "example": 64200
          },
          "bid_count": {
            "type": "integer",
            "format": "int64",
            "description": "Number of bid-side trigger orders in the bucket.",
            "example": 12
          },
          "bid_size": {
            "type": "number",
            "description": "Bid-side trigger size in the bucket.",
            "example": 31.25
          },
          "ask_count": {
            "type": "integer",
            "format": "int64",
            "description": "Number of ask-side trigger orders in the bucket.",
            "example": 9
          },
          "ask_size": {
            "type": "number",
            "description": "Ask-side trigger size in the bucket.",
            "example": 18.75
          }
        }
      },
      "TriggerLevelsData": {
        "type": "object",
        "description": "Currently pending stop-loss and take-profit trigger orders grouped into price buckets around the current mid/mark price. Voluntary trigger orders, not projected forced liquidations.",
        "required": [
          "mid_price",
          "as_of",
          "total_bid_size",
          "total_ask_size",
          "levels"
        ],
        "properties": {
          "mid_price": {
            "type": "number",
            "description": "Current mid/mark price, center of the requested range."
          },
          "as_of": {
            "type": "string",
            "description": "UTC RFC3339 server time the pending-trigger state was read. The map is current-state; use this to detect staleness."
          },
          "total_bid_size": {
            "type": "number",
            "description": "Total pending bid size across the returned window."
          },
          "total_ask_size": {
            "type": "number",
            "description": "Total pending ask size across the returned window."
          },
          "levels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TriggerLevel"
            }
          }
        }
      },
      "ApiResponseTriggerLevels": {
        "type": "object",
        "description": "API response containing the pending trigger-order map.",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/TriggerLevelsData"
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "TriggerLevelsHistoryItem": {
        "type": "object",
        "description": "One historical trigger-levels snapshot (15-minute cadence). levels is omitted when summary=true.",
        "required": [
          "snapshot_ts",
          "mid_price",
          "total_bid_size",
          "total_ask_size"
        ],
        "properties": {
          "snapshot_ts": {
            "type": "string",
            "description": "UTC snapshot time. By default a UTC string in `YYYY-MM-DD HH:MM:SS.mmm` form. With `0xArchive-Version: 2026-10-01` an RFC 3339 UTC string with millisecond precision, and `snapshot_ts_ms` carries the instant as Unix milliseconds."
          },
          "snapshot_ts_ms": {
            "type": "integer",
            "format": "int64",
            "description": "With `0xArchive-Version: 2026-10-01` only: `snapshot_ts` as Unix milliseconds.",
            "example": 1767225600000
          },
          "mid_price": {
            "type": "number"
          },
          "total_bid_size": {
            "type": "number"
          },
          "total_ask_size": {
            "type": "number"
          },
          "levels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TriggerLevel"
            }
          }
        }
      },
      "ApiResponseTriggerLevelsHistory": {
        "type": "object",
        "description": "Paginated historical trigger-levels snapshots, ascending by snapshot_ts. When a page is full, meta.next_cursor carries the cursor for the next page.",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TriggerLevelsHistoryItem"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "LighterTrade": {
        "type": "object",
        "description": "Lighter trade (fill) record. Canonical rows (`source: \"bucket\"`) come from the daily reconcile of the deployment's published trade history (the Lighter Foundation export for Lighter mainnet, the venue trade export for Lighter on Robinhood Chain) and carry full enrichment. The `/recent` endpoint serves preliminary real-time rows (`source: \"ws\"`) without fee/tx_hash/order_id/realized_pnl and the other bucket-only enrichment fields until the daily reconcile finalizes them.",
        "required": [
          "coin",
          "symbol",
          "side",
          "price",
          "size",
          "timestamp",
          "trade_id",
          "crossed",
          "source"
        ],
        "properties": {
          "coin": {
            "type": "string",
            "description": "Trading pair symbol (deprecated, use symbol instead)",
            "example": "BTC",
            "deprecated": true
          },
          "symbol": {
            "type": "string",
            "description": "Trading pair symbol",
            "example": "BTC"
          },
          "side": {
            "type": "string",
            "enum": [
              "A",
              "B"
            ],
            "description": "Trade side of the account this row belongs to: 'B' (buy) or 'A' (sell/ask)",
            "example": "B"
          },
          "price": {
            "type": "string",
            "description": "Execution price",
            "example": "64708.5"
          },
          "size": {
            "type": "string",
            "description": "Trade size in base units",
            "example": "0.00005"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Execution timestamp (UTC)",
            "example": "2026-07-26T14:47:59.174Z"
          },
          "tx_hash": {
            "type": "string",
            "nullable": true,
            "description": "Lighter settlement transaction hash (fixed-width hex). Canonical rows only.",
            "example": "000000197b6fd6e90000019f9ee5a9c6000000000000000000000000000000000000000000000000"
          },
          "trade_id": {
            "type": "integer",
            "format": "int64",
            "description": "Unique Lighter trade ID. Each trade produces two rows (one per counterparty) sharing this ID.",
            "example": 26121110211
          },
          "order_id": {
            "type": "integer",
            "format": "int64",
            "nullable": true,
            "description": "Order ID of this account's order. Canonical rows only.",
            "example": 844421856609148
          },
          "crossed": {
            "type": "boolean",
            "description": "True if this account was the taker (crossed the spread), false if maker",
            "example": false
          },
          "fee": {
            "type": "string",
            "nullable": true,
            "description": "This account's fee for the fill. Canonical rows only.",
            "example": "0.000028"
          },
          "account_index": {
            "type": "string",
            "description": "Lighter numeric account index this row belongs to (serialized as a string)",
            "example": "513030"
          },
          "source": {
            "type": "string",
            "enum": [
              "bucket",
              "ws"
            ],
            "description": "Row provenance: 'bucket' = canonical (finalized by the daily reconcile of the deployment's published trade history), 'ws' = preliminary real-time capture",
            "example": "bucket"
          },
          "position_size_before": {
            "type": "number",
            "nullable": true,
            "description": "This account's signed position size before the fill (long positive, short negative)",
            "example": -0.94632
          },
          "position_size_after": {
            "type": "number",
            "nullable": true,
            "description": "Signed position size after the fill (derived: position_size_before plus/minus size by side)",
            "example": -0.94627
          },
          "entry_quote_before": {
            "type": "number",
            "nullable": true,
            "description": "This account's position entry quote value before the fill",
            "example": 61179.114686
          },
          "initial_margin_fraction_before": {
            "type": "number",
            "nullable": true,
            "description": "This account's initial margin fraction before the fill",
            "example": 0.02
          },
          "allocated_margin_before": {
            "type": "number",
            "nullable": true,
            "description": "Isolated-margin allocation before the fill (0 for cross)",
            "example": 0
          },
          "allocated_margin_after": {
            "type": "number",
            "nullable": true,
            "description": "Isolated-margin allocation after the fill (0 for cross)",
            "example": 0
          },
          "position_sign_changed": {
            "type": "boolean",
            "nullable": true,
            "description": "True if the fill flipped this account's position between long and short",
            "example": false
          },
          "trade_type": {
            "type": "string",
            "nullable": true,
            "description": "Upstream trade type. Canonical rows only.",
            "example": "trade"
          },
          "is_maker": {
            "type": "boolean",
            "nullable": true,
            "description": "True if this account was the maker. Canonical rows only.",
            "example": true
          },
          "counterparty_address": {
            "type": "string",
            "nullable": true,
            "description": "Counterparty's Lighter account index (serialized as a string). Canonical rows only.",
            "example": "710765"
          },
          "client_id": {
            "type": "integer",
            "format": "int64",
            "nullable": true,
            "description": "Client-assigned order ID. Canonical rows only.",
            "example": 46758119273906
          },
          "realized_pnl": {
            "type": "number",
            "nullable": true,
            "description": "Matching-engine realized PnL for this fill. Canonical rows only.",
            "example": -0.00295
          },
          "integrator_fee": {
            "type": "number",
            "nullable": true,
            "description": "Integrator fee charged on the fill. Canonical rows only.",
            "example": 0
          },
          "fee_account_id": {
            "type": "integer",
            "format": "int64",
            "nullable": true,
            "description": "Account credited with the fee. Canonical rows only.",
            "example": 0
          },
          "l2_block_height": {
            "type": "integer",
            "format": "int64",
            "nullable": true,
            "description": "Lighter L2 block height containing the trade. Canonical rows only.",
            "example": 300075269
          },
          "transaction_time_us": {
            "type": "integer",
            "format": "int64",
            "nullable": true,
            "description": "Intra-block transaction time in microseconds. Canonical rows only.",
            "example": 1785077279174437
          },
          "usdc_amount": {
            "type": "number",
            "nullable": true,
            "description": "Notional value of the fill in USDC. Canonical rows only.",
            "example": 3.235425
          }
        }
      },
      "ApiResponseLighterTradeArray": {
        "type": "object",
        "description": "API response containing an array of Lighter trades. History responses serve canonical rows only and clamp `end` to `finalized_through`; `/recent` responses serve preliminary rows and report `preliminary_row_count`.",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LighterTrade"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "LighterLiquidation": {
        "type": "object",
        "description": "Native Lighter liquidation event. Raw ask/bid account fields are preserved instead of a derived `liquidated_user`: the upstream payload does not reliably flag which side was liquidated, so the liquidated side is derived at read time from position signs. Margin and fee integer fields are raw upstream units.",
        "required": [
          "symbol",
          "timestamp",
          "transaction_time_us",
          "trade_id",
          "liquidation_type",
          "price",
          "size",
          "usd_amount",
          "ask_account",
          "bid_account",
          "ask_order_id",
          "bid_order_id",
          "is_maker_ask",
          "taker_position_size_before",
          "maker_position_size_before",
          "taker_entry_quote_before",
          "maker_entry_quote_before",
          "taker_initial_margin_fraction_before",
          "maker_initial_margin_fraction_before",
          "taker_allocated_margin_usdc_before",
          "taker_allocated_margin_usdc_after",
          "maker_allocated_margin_usdc_before",
          "maker_allocated_margin_usdc_after",
          "taker_fee",
          "maker_fee",
          "taker_position_sign_changed",
          "maker_position_sign_changed",
          "block_height",
          "tx_hash",
          "raw_json",
          "source"
        ],
        "properties": {
          "symbol": {
            "type": "string",
            "description": "Trading pair symbol",
            "example": "BTC"
          },
          "timestamp": {
            "description": "Liquidation time. By default an integer, Unix milliseconds. With `0xArchive-Version: 2026-10-01` an RFC 3339 UTC string with millisecond precision, and the integer moves to `timestamp_ms`.",
            "oneOf": [
              {
                "type": "integer",
                "format": "int64",
                "description": "Default: Unix milliseconds.",
                "example": 1785116108743
              },
              {
                "type": "string",
                "format": "date-time",
                "description": "Version 2026-10-01: RFC 3339 UTC.",
                "example": "2026-01-01T00:00:00.000Z"
              }
            ]
          },
          "timestamp_ms": {
            "type": "integer",
            "format": "int64",
            "description": "With `0xArchive-Version: 2026-10-01` only: `timestamp` as Unix milliseconds.",
            "example": 1767225600000
          },
          "transaction_time_us": {
            "type": "integer",
            "format": "int64",
            "description": "Intra-block transaction time in microseconds",
            "example": 1785116108751813
          },
          "trade_id": {
            "type": "integer",
            "format": "int64",
            "description": "Unique Lighter trade ID of the liquidation fill",
            "example": 26144238102
          },
          "liquidation_type": {
            "type": "string",
            "description": "Upstream liquidation type",
            "example": "liquidation"
          },
          "price": {
            "type": "number",
            "description": "Execution price",
            "example": 64921.9
          },
          "size": {
            "type": "number",
            "description": "Liquidated size in base units",
            "example": 0.18476
          },
          "usd_amount": {
            "type": "number",
            "description": "Notional value of the liquidation in USD",
            "example": 11994.970244
          },
          "ask_account": {
            "type": "string",
            "description": "Lighter account index on the ask side (serialized as a string)",
            "example": "728637"
          },
          "bid_account": {
            "type": "string",
            "description": "Lighter account index on the bid side (serialized as a string)",
            "example": "726722"
          },
          "ask_order_id": {
            "type": "integer",
            "format": "int64",
            "description": "Order ID on the ask side",
            "example": 562952982931319
          },
          "bid_order_id": {
            "type": "integer",
            "format": "int64",
            "description": "Order ID on the bid side",
            "example": 844421854021817
          },
          "is_maker_ask": {
            "type": "boolean",
            "description": "True if the maker was on the ask side",
            "example": false
          },
          "taker_position_size_before": {
            "type": "number",
            "description": "Taker's signed position size before the fill (long positive, short negative)",
            "example": 0.19771
          },
          "maker_position_size_before": {
            "type": "number",
            "description": "Maker's signed position size before the fill",
            "example": -1.85452
          },
          "taker_entry_quote_before": {
            "type": "number",
            "description": "Taker's position entry quote value before the fill",
            "example": 12945.451185
          },
          "maker_entry_quote_before": {
            "type": "number",
            "description": "Maker's position entry quote value before the fill",
            "example": 120665.315247
          },
          "taker_initial_margin_fraction_before": {
            "type": "integer",
            "description": "Taker's initial margin fraction before the fill (raw upstream units)",
            "example": 200
          },
          "maker_initial_margin_fraction_before": {
            "type": "integer",
            "description": "Maker's initial margin fraction before the fill (raw upstream units)",
            "example": 500
          },
          "taker_allocated_margin_usdc_before": {
            "type": "integer",
            "format": "int64",
            "description": "Taker's isolated-margin USDC allocation before the fill (raw upstream units)",
            "example": 259232053
          },
          "taker_allocated_margin_usdc_after": {
            "type": "integer",
            "format": "int64",
            "description": "Taker's isolated-margin USDC allocation after the fill (raw upstream units)",
            "example": 23859483
          },
          "maker_allocated_margin_usdc_before": {
            "type": "integer",
            "format": "int64",
            "description": "Maker's isolated-margin USDC allocation before the fill (raw upstream units)",
            "example": 0
          },
          "maker_allocated_margin_usdc_after": {
            "type": "integer",
            "format": "int64",
            "description": "Maker's isolated-margin USDC allocation after the fill (raw upstream units)",
            "example": 0
          },
          "taker_fee": {
            "type": "integer",
            "description": "Taker fee (raw upstream units)",
            "example": 10000
          },
          "maker_fee": {
            "type": "integer",
            "description": "Maker fee (raw upstream units)",
            "example": 28
          },
          "taker_position_sign_changed": {
            "type": "boolean",
            "description": "True if the fill flipped the taker's position between long and short",
            "example": false
          },
          "maker_position_sign_changed": {
            "type": "boolean",
            "description": "True if the fill flipped the maker's position between long and short",
            "example": false
          },
          "block_height": {
            "type": "integer",
            "format": "int64",
            "description": "Lighter L2 block height containing the liquidation",
            "example": 300340672
          },
          "tx_hash": {
            "type": "string",
            "description": "Lighter settlement transaction hash (fixed-width hex)",
            "example": "000000198190c10e0000019fa13627c7000000000000000000000000000000000000000000000000"
          },
          "raw_json": {
            "type": "string",
            "description": "Raw upstream payload as received from Lighter. Empty for rows backfilled from the venue's finalized export (`source: \"bucket\"`, Lighter on Robinhood Chain)."
          },
          "source": {
            "type": "string",
            "description": "Row provenance: `ws` for live capture; `bucket` for rows backfilled from the venue's finalized export (Lighter on Robinhood Chain), which carry an empty `raw_json`.",
            "example": "ws"
          }
        }
      },
      "ApiResponseLighterLiquidationArray": {
        "type": "object",
        "description": "API response containing an array of native Lighter liquidation events",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LighterLiquidation"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "L4Order": {
        "type": "object",
        "description": "Individual resting order in a Hyperliquid-family L4 snapshot.",
        "required": [
          "oid",
          "user_address",
          "side",
          "price",
          "size",
          "timestamp"
        ],
        "properties": {
          "oid": {
            "type": "integer",
            "format": "int64",
            "description": "Hyperliquid order identifier.",
            "example": 18499128731
          },
          "user_address": {
            "type": "string",
            "description": "Address attributed to the resting order.",
            "example": "0x0000000000000000000000000000000000000000"
          },
          "side": {
            "type": "string",
            "enum": [
              "B",
              "A"
            ],
            "description": "Book side: B for bid or A for ask.",
            "example": "B"
          },
          "price": {
            "type": "number",
            "description": "Venue-native resting order price.",
            "example": 105384.5
          },
          "size": {
            "type": "number",
            "description": "Venue-native remaining order size.",
            "example": 0.824
          },
          "timestamp": {
            "description": "Queue-join time: when the order joined the queue at its price. By default an integer, Unix milliseconds. `0` when unknown. With `0xArchive-Version: 2026-10-01` an RFC 3339 UTC string with millisecond precision (`null` when unknown), and the integer moves to `timestamp_ms`.",
            "oneOf": [
              {
                "type": "integer",
                "format": "int64",
                "description": "Default: Unix milliseconds.",
                "example": 1773273600123
              },
              {
                "type": "string",
                "format": "date-time",
                "description": "Version 2026-10-01: RFC 3339 UTC.",
                "example": "2026-01-01T00:00:00.000Z",
                "nullable": true
              }
            ]
          },
          "timestamp_ms": {
            "type": "integer",
            "format": "int64",
            "description": "With `0xArchive-Version: 2026-10-01` only: `timestamp` as Unix milliseconds. `0` means unknown.",
            "example": 1767225600000
          }
        }
      },
      "L4OrderBookSnapshot": {
        "type": "object",
        "description": "Current or reconstructed Hyperliquid-family L4 orderbook snapshot.",
        "required": [
          "coin",
          "timestamp",
          "checkpoint_timestamp",
          "diffs_applied",
          "last_block_number",
          "bids",
          "asks",
          "bid_count",
          "ask_count",
          "total_bid_size",
          "total_ask_size"
        ],
        "properties": {
          "coin": {
            "type": "string",
            "description": "Trading pair or market symbol.",
            "example": "BTC"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Snapshot timestamp in UTC.",
            "example": "2026-03-12T00:00:00.000Z"
          },
          "checkpoint_timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of the checkpoint used for this snapshot.",
            "example": "2026-03-12T00:00:00.000Z"
          },
          "diffs_applied": {
            "type": "integer",
            "description": "Number of L4 diffs applied after the checkpoint.",
            "example": 0
          },
          "last_block_number": {
            "type": "integer",
            "format": "int64",
            "description": "Last Hyperliquid block represented by this snapshot.",
            "example": 1023882395
          },
          "bids": {
            "type": "array",
            "description": "Bid-side resting orders, best price first.",
            "items": {
              "$ref": "#/components/schemas/L4Order"
            }
          },
          "asks": {
            "type": "array",
            "description": "Ask-side resting orders, best price first.",
            "items": {
              "$ref": "#/components/schemas/L4Order"
            }
          },
          "bid_count": {
            "type": "integer",
            "description": "Number of bid orders in the full stored/reconstructed checkpoint before optional depth truncates returned bids/asks.",
            "example": 12
          },
          "ask_count": {
            "type": "integer",
            "description": "Number of ask orders in the full stored/reconstructed checkpoint before optional depth truncates returned bids/asks.",
            "example": 15
          },
          "total_bid_size": {
            "type": "number",
            "description": "Aggregate venue-native bid size in the full stored/reconstructed checkpoint before optional depth truncates returned bids/asks.",
            "example": 102.34
          },
          "total_ask_size": {
            "type": "number",
            "description": "Aggregate venue-native ask size in the full stored/reconstructed checkpoint before optional depth truncates returned bids/asks.",
            "example": 98.76
          },
          "is_crossed": {
            "type": "boolean",
            "description": "True only when a reconstructed historical book has best bid greater than or equal to best ask; omitted for clean snapshots.",
            "example": true
          }
        }
      },
      "ApiResponseL4OrderBook": {
        "type": "object",
        "required": [
          "success",
          "data",
          "meta"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/L4OrderBookSnapshot"
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "ApiResponseL4OrderBookArray": {
        "type": "object",
        "required": [
          "success",
          "data",
          "meta"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/L4OrderBookSnapshot"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "L3Order": {
        "type": "object",
        "description": "Individual resting order in a Lighter L3 snapshot.",
        "required": [
          "order_index",
          "owner_account_index",
          "side",
          "price",
          "remaining_size",
          "original_size"
        ],
        "properties": {
          "order_index": {
            "type": "integer",
            "format": "int64",
            "description": "Numeric order index assigned by Lighter.",
            "example": 562953074779869
          },
          "owner_account_index": {
            "type": "integer",
            "format": "int64",
            "description": "Numeric Lighter account index associated with the resting order.",
            "example": 281474976710654
          },
          "side": {
            "type": "string",
            "enum": [
              "bid",
              "ask"
            ],
            "description": "Book side.",
            "example": "bid"
          },
          "price": {
            "type": "number",
            "description": "Lighter venue-native resting order price.",
            "example": 65127.5
          },
          "remaining_size": {
            "type": "number",
            "description": "Remaining venue-native order size.",
            "example": 0.02303
          },
          "original_size": {
            "type": "number",
            "description": "Original venue-native order size.",
            "example": 0.02303
          }
        }
      },
      "L3OrderBookSnapshot": {
        "type": "object",
        "description": "Current or historical Lighter L3 orderbook snapshot.",
        "required": [
          "coin",
          "timestamp",
          "orders",
          "bid_count",
          "ask_count",
          "total_bid_size",
          "total_ask_size",
          "mid_price",
          "spread",
          "spread_bps",
          "truncated"
        ],
        "properties": {
          "coin": {
            "type": "string",
            "description": "Lighter trading pair symbol.",
            "example": "BTC"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Snapshot timestamp in UTC.",
            "example": "2026-03-12T00:00:00.000Z"
          },
          "orders": {
            "type": "array",
            "description": "Individual resting orders in the served L3 view.",
            "items": {
              "$ref": "#/components/schemas/L3Order"
            }
          },
          "bid_count": {
            "type": "integer",
            "description": "Bid order count for the stored checkpoint view.",
            "example": 250
          },
          "ask_count": {
            "type": "integer",
            "description": "Ask order count for the stored checkpoint view.",
            "example": 250
          },
          "total_bid_size": {
            "type": "number",
            "description": "Aggregate remaining venue-native size across bids.",
            "example": 102.34
          },
          "total_ask_size": {
            "type": "number",
            "description": "Aggregate remaining venue-native size across asks.",
            "example": 98.76
          },
          "mid_price": {
            "type": "string",
            "nullable": true,
            "description": "Mid price as a decimal string when both sides are present; null otherwise.",
            "example": "65127.25"
          },
          "spread": {
            "type": "string",
            "nullable": true,
            "description": "Absolute spread as a decimal string when both sides are present; null otherwise.",
            "example": "0.50"
          },
          "spread_bps": {
            "type": "string",
            "nullable": true,
            "description": "Spread in basis points as a decimal string when both sides are present; null otherwise.",
            "example": "0.08"
          },
          "truncated": {
            "type": "boolean",
            "description": "True when the stored checkpoint reached the 250-orders-per-side ingestion cap.",
            "example": true
          }
        }
      },
      "ApiResponseL3OrderBook": {
        "type": "object",
        "required": [
          "success",
          "data",
          "meta"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/L3OrderBookSnapshot"
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "ApiResponseL3OrderBookArray": {
        "type": "object",
        "required": [
          "success",
          "data",
          "meta"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/L3OrderBookSnapshot"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "WebhookEventTypeParam": {
        "type": "object",
        "description": "A tunable parameter declared by an event type. Values sent under `params` are validated against this declaration, and any declared parameter left unset is stored at its default.",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "integer",
              "number",
              "string",
              "array_of_number"
            ],
            "description": "Value type the parameter accepts.",
            "example": "integer"
          },
          "unit": {
            "type": "string",
            "description": "Unit the value is expressed in, when it has one.",
            "example": "s"
          },
          "default": {
            "description": "Value used when the parameter is not supplied.",
            "example": 3600
          },
          "min": {
            "type": "number",
            "description": "Lowest accepted value, when the parameter is bounded below.",
            "example": 60
          },
          "max": {
            "type": "number",
            "description": "Highest accepted value, when the parameter is bounded above.",
            "example": 86400
          },
          "enum": {
            "type": "array",
            "items": {},
            "description": "Accepted values, when the parameter is a fixed choice."
          },
          "description": {
            "type": "string",
            "description": "What the parameter changes."
          }
        }
      },
      "WebhookEventTypeMetric": {
        "type": "object",
        "description": "A metric an event carries, and therefore a metric a subscription condition may be written against.",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "number",
              "integer",
              "string",
              "boolean",
              "timestamp",
              "enum"
            ],
            "description": "Value type of the metric. It decides which operators a condition on this metric may use. An `enum` metric lists its accepted values in `values`.",
            "example": "number"
          },
          "unit": {
            "type": "string",
            "description": "Unit the metric is expressed in, when it has one.",
            "example": "USD"
          },
          "values": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Accepted values of an `enum` metric. Conditions are checked against this list."
          },
          "description": {
            "type": "string",
            "description": "What the metric measures, including when it is null."
          }
        }
      },
      "WebhookEventType": {
        "type": "object",
        "description": "One entry in the served webhook event catalog. Subscriptions are validated against this declaration, so it is the authority on the filters, parameters and metrics an event type accepts.",
        "required": [
          "type",
          "schema_version",
          "live",
          "scope",
          "venues",
          "filters",
          "params",
          "metrics",
          "latency_class",
          "description",
          "cost_floor",
          "filters_example",
          "operators"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "Event type identifier. Send this as `event_type` when creating a subscription.",
            "example": "market.liquidation"
          },
          "schema_version": {
            "type": "integer",
            "description": "Version of the delivered payload shape for this event type.",
            "example": 1
          },
          "live": {
            "type": "boolean",
            "description": "True when the type accepts subscriptions. A type that is published but not yet live is refused at create time.",
            "example": true
          },
          "scope": {
            "type": "string",
            "enum": [
              "public",
              "user",
              "addresses"
            ],
            "description": "Who the event is about. `public` is market wide, `user` is your own account and platform activity, and `addresses` reports only on wallets on your watched list.",
            "example": "public"
          },
          "venues": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Venues the type covers. Empty when the type is not venue scoped.",
            "example": [
              "hyperliquid",
              "hip3",
              "lighter"
            ]
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Filter keys the subscription config accepts for this type. A key that is not listed here is refused rather than ignored.",
            "example": [
              "venue",
              "symbols"
            ]
          },
          "params": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/WebhookEventTypeParam"
            },
            "description": "Tunable parameters, keyed by parameter name."
          },
          "metrics": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/WebhookEventTypeMetric"
            },
            "description": "Metrics carried by the event, keyed by metric name. A condition may only reference a metric declared here."
          },
          "cost_floor": {
            "type": "object",
            "nullable": true,
            "description": "The smallest occurrence this type reports at all, below which nothing is detected. Null when the type has no floor.",
            "properties": {
              "metric": {
                "type": "string",
                "description": "Metric the floor applies to.",
                "example": "notional_usd"
              },
              "min": {
                "type": "number",
                "description": "Lowest value still reported.",
                "example": 100
              },
              "unit": {
                "type": "string",
                "description": "Unit of `min` when it is not the metric's own unit.",
                "example": "HYPE"
              },
              "note": {
                "type": "string",
                "description": "How the floor applies, when it needs saying."
              }
            },
            "required": [
              "metric",
              "min"
            ]
          },
          "latency_class": {
            "type": "string",
            "enum": [
              "seconds",
              "minutes"
            ],
            "description": "Rough delivery latency for the type, measured from the occurrence to the first delivery attempt.",
            "example": "seconds"
          },
          "description": {
            "type": "string",
            "description": "What the event reports and what one occurrence means.",
            "example": "A liquidation on a covered venue."
          },
          "filters_example": {
            "type": "object",
            "additionalProperties": true,
            "description": "A worked example of a config for this type."
          },
          "operators": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Operator vocabulary, grouped: `number` (metric types `number` and `integer`), `text` (`string` and `enum`), `boolean`, `timestamp`, and `any`, which applies to every metric. A condition on a metric may use the operators of its group or of `any`."
          }
        }
      },
      "WebhookEndpoint": {
        "type": "object",
        "description": "A delivery destination. The signing secret is not part of this shape: it is returned once when the endpoint is created and again when it is rotated, and never on a list.",
        "required": [
          "id",
          "url",
          "description",
          "format",
          "status",
          "consecutive_failures",
          "created_at"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Endpoint identifier."
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "HTTPS destination that receives deliveries.",
            "example": "https://example.com/hooks/0xarchive"
          },
          "description": {
            "type": "string",
            "description": "Your own label for the endpoint.",
            "example": "Trading desk alerts"
          },
          "format": {
            "type": "string",
            "enum": [
              "json",
              "discord",
              "slack",
              "telegram"
            ],
            "description": "How deliveries are rendered. `json`: the signed JSON envelope (`WebhookDeliveryEnvelope`). `discord` and `slack`: a chat message in that service's webhook format, still signed. `telegram`: a message posted to a connected Telegram chat; Telegram endpoints are created by connecting a chat, not by URL, and their deliveries carry no signature.",
            "example": "json"
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "disabled",
              "auto_disabled"
            ],
            "description": "`active` is serving. `auto_disabled` means a long run of failed deliveries switched it off; bring it back with the enable route, which also resets the failure count. `disabled` is reserved.",
            "example": "active"
          },
          "consecutive_failures": {
            "type": "integer",
            "format": "int32",
            "description": "Failed attempts since the last success. Resets to zero on a delivery that lands.",
            "example": 0
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the endpoint was created."
          }
        }
      },
      "WebhookEndpointCreated": {
        "type": "object",
        "description": "A newly created endpoint, including the signing secret. This is one of the two responses that carry the secret; the other is a rotation. Store it now, because it is not shown again.",
        "required": [
          "id",
          "url",
          "description",
          "format",
          "status",
          "consecutive_failures",
          "created_at",
          "secret"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Endpoint identifier."
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "HTTPS destination that receives deliveries.",
            "example": "https://example.com/hooks/0xarchive"
          },
          "description": {
            "type": "string",
            "description": "Your own label for the endpoint.",
            "example": "Trading desk alerts"
          },
          "format": {
            "type": "string",
            "enum": [
              "json",
              "discord",
              "slack",
              "telegram"
            ],
            "description": "How deliveries are rendered. `json`: the signed JSON envelope (`WebhookDeliveryEnvelope`). `discord` and `slack`: a chat message in that service's webhook format, still signed. `telegram`: a message posted to a connected Telegram chat; Telegram endpoints are created by connecting a chat, not by URL, and their deliveries carry no signature.",
            "example": "json"
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "disabled",
              "auto_disabled"
            ],
            "description": "`active` is serving. `auto_disabled` means a long run of failed deliveries switched it off; bring it back with the enable route, which also resets the failure count. `disabled` is reserved.",
            "example": "active"
          },
          "consecutive_failures": {
            "type": "integer",
            "format": "int32",
            "description": "Failed attempts since the last success. Resets to zero on a delivery that lands.",
            "example": 0
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the endpoint was created."
          },
          "secret": {
            "type": "string",
            "description": "Signing secret for this endpoint. Every delivery is signed with it, and your receiver verifies the signature against it.",
            "example": "whsec_6f1c0b2a4d8e5f3a9c7b1e0d2f4a6c8b1d3e5f7a9c0b2d4e6f8a1c3b5d7e9f0a"
          }
        }
      },
      "WebhookEndpointSecret": {
        "type": "object",
        "description": "A freshly rotated signing secret.",
        "required": [
          "secret"
        ],
        "properties": {
          "secret": {
            "type": "string",
            "description": "The new signing secret. The previous one keeps verifying for 24 hours so a receiver can roll over without dropping deliveries.",
            "example": "whsec_6f1c0b2a4d8e5f3a9c7b1e0d2f4a6c8b1d3e5f7a9c0b2d4e6f8a1c3b5d7e9f0a"
          }
        }
      },
      "WebhookSubscriptionConfig": {
        "type": "object",
        "description": "What a subscription matches on. Every key is checked against the event type's catalog declaration, so an unknown key, an undeclared parameter or a condition on an undeclared metric is refused rather than ignored. The stored config is the normalised form: venues and addresses lowercased, declared parameters filled in at their defaults, and operators written in their canonical spelling.",
        "properties": {
          "venue": {
            "description": "Venue or venues to match, from the event type's `venues` list. Accepts a single string, a pipe separated string or a list. Omit to match every covered venue.",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ],
            "example": "hyperliquid"
          },
          "symbols": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Instrument symbols to match. Omit to match every symbol.",
            "example": [
              "BTC",
              "ETH"
            ]
          },
          "addresses": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Wallets to match, for an address scoped event type. Every address must already be on your watched list. Omit to match all of them.",
            "example": [
              "0x6b9e773128f453f5c2c60935ee2de2cbc5390a24"
            ]
          },
          "params": {
            "type": "object",
            "additionalProperties": true,
            "description": "Parameter values for the event type, keyed by the parameter names it declares. A declared parameter you leave out is stored at its default. A declared parameter may also be written at the top level of the config.",
            "example": {
              "max_age_s": 3600
            }
          },
          "conditions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebhookSubscriptionCondition"
            },
            "description": "Conditions on the event's metrics, all of which must hold for a delivery. At most 16 per subscription."
          },
          "min_notional_usd": {
            "type": "number",
            "description": "Shorthand for a `notional_usd` at-or-above condition, kept for compatibility. It is stored as a condition, and it is mirrored back here as the loosest notional lower bound the config carries.",
            "example": 100000
          }
        }
      },
      "WebhookSubscriptionCondition": {
        "type": "object",
        "description": "One condition on an event metric. The operator vocabulary is grouped by the metric's type; see `operators` on the event type.",
        "required": [
          "metric",
          "op"
        ],
        "properties": {
          "metric": {
            "type": "string",
            "description": "A metric declared by the event type.",
            "example": "notional_usd"
          },
          "op": {
            "type": "string",
            "enum": [
              "greater_than",
              "greater_than_or_equal",
              "less_than",
              "less_than_or_equal",
              "equal",
              "not_equal",
              "between",
              "not_between",
              "in",
              "not_in",
              "contains",
              "not_contains",
              "starts_with",
              "ends_with",
              "before",
              "after",
              "is_empty",
              "is_not_empty"
            ],
            "description": "Comparison to apply. Symbol spellings such as `>=` are accepted on the way in and stored in the canonical spelling shown here.",
            "example": "greater_than_or_equal"
          },
          "value": {
            "description": "What to compare against. A number, string, boolean or RFC 3339 timestamp for a single value comparison; a two entry `[low, high]` list for `between` and `not_between`; a non-empty list for `in` and `not_in`. Omitted for `is_empty` and `is_not_empty`.",
            "example": 100000
          }
        }
      },
      "WebhookSubscription": {
        "type": "object",
        "description": "A rule: one event type, one configuration, delivered to one endpoint.",
        "required": [
          "id",
          "endpoint_id",
          "event_type",
          "filters",
          "enabled",
          "created_at",
          "status",
          "suppressed_count",
          "last_suppressed_count"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Subscription identifier."
          },
          "endpoint_id": {
            "type": "string",
            "format": "uuid",
            "description": "Endpoint that receives this rule's deliveries."
          },
          "event_type": {
            "type": "string",
            "description": "Event type this rule subscribes to.",
            "example": "market.liquidation"
          },
          "filters": {
            "$ref": "#/components/schemas/WebhookSubscriptionConfig"
          },
          "enabled": {
            "type": "boolean",
            "description": "Your own on and off switch. Resuming a paused rule never changes it.",
            "example": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the rule was created."
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "auto_paused"
            ],
            "description": "`active` is serving. `auto_paused` means delivery was paused for you and nothing is being sent; it stays paused until you resume it.",
            "example": "active"
          },
          "pause_message": {
            "type": "string",
            "description": "Why this rule is paused and what clears it, in plain words. Present only while the rule is paused.",
            "example": "This rule was paused because the account reached its Pro plan limit of 50000 webhook deliveries in a day. The daily allowance resets at 2026-09-21 00:00 UTC, and a paused rule does not restart with it. Resume it with POST /v1/webhooks/subscriptions/resume."
          },
          "paused_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Start of the current gap. Null while the rule is serving."
          },
          "pause_reason": {
            "type": "string",
            "nullable": true,
            "description": "Machine readable cause of the current pause, either `deliveries_per_day_cap` (the account reached its daily delivery limit) or `plan_no_webhooks` (the plan does not include webhook delivery). Null while the rule is serving. Render `pause_message` for people.",
            "example": "deliveries_per_day_cap"
          },
          "suppressed_count": {
            "type": "integer",
            "format": "int64",
            "description": "Matches observed but not delivered since the current pause began. A lower bound, not a total: occurrences no active rule asked for are never looked at.",
            "example": 0
          },
          "suppressed_first_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "First suppressed match of the current pause."
          },
          "suppressed_last_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Most recent suppressed match of the current pause."
          },
          "last_paused_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Start of the last pause that has already ended."
          },
          "last_resumed_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "When that pause ended."
          },
          "last_pause_reason": {
            "type": "string",
            "nullable": true,
            "description": "Cause of the last pause that has already ended, in the same vocabulary as `pause_reason`."
          },
          "last_suppressed_count": {
            "type": "integer",
            "format": "int64",
            "description": "Matches suppressed during the last pause that has already ended.",
            "example": 0
          },
          "last_suppressed_first_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "First suppressed match of that pause."
          },
          "last_suppressed_last_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Most recent suppressed match of that pause."
          }
        }
      },
      "WebhookResumeGap": {
        "type": "object",
        "description": "The window a resume just closed. Nothing is buffered while a rule is paused, so this describes what was missed rather than replaying it.",
        "required": [
          "paused_at",
          "resumed_at",
          "replay_window",
          "counted",
          "note"
        ],
        "properties": {
          "paused_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Start of the gap."
          },
          "resumed_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "End of the gap."
          },
          "replay_window": {
            "type": "object",
            "description": "The gap as a window to re-read for yourself.",
            "properties": {
              "start": {
                "type": "string",
                "format": "date-time",
                "nullable": true,
                "description": "Window start."
              },
              "end": {
                "type": "string",
                "format": "date-time",
                "nullable": true,
                "description": "Window end."
              }
            }
          },
          "reason": {
            "type": "string",
            "nullable": true,
            "description": "Cause of the pause that was cleared. Null on a bulk resume whose rules were paused for more than one reason; each rule then carries its own.",
            "example": "deliveries_per_day_cap"
          },
          "reasons": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Distinct causes across the resumed rules. Present on a bulk resume only."
          },
          "pause_message": {
            "type": "string",
            "nullable": true,
            "description": "The cause in plain words."
          },
          "suppressed_count": {
            "type": "integer",
            "format": "int64",
            "nullable": true,
            "description": "Matches suppressed inside the window. Null when the rules were address scoped, because a paused address scoped rule is left out of the scan entirely and its occurrences were never looked at.",
            "example": 0
          },
          "counted": {
            "type": "boolean",
            "description": "Whether anything inside the window was counted. False means the count is null because nothing was looked at, not because nothing happened.",
            "example": true
          },
          "suppressed_first_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "First suppressed match inside the window."
          },
          "suppressed_last_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Most recent suppressed match inside the window."
          },
          "uncounted_subscriptions": {
            "type": "integer",
            "description": "How many of the resumed rules were address scoped, and therefore not counted. Present on a bulk resume only.",
            "example": 0
          },
          "note": {
            "type": "string",
            "description": "What can and cannot be recovered for the window, and how."
          }
        }
      },
      "WebhookDelivery": {
        "type": "object",
        "description": "One delivery attempt record for one event to one endpoint. An event and an endpoint share a single row for their whole life, so a repeat delivery rewrites this record rather than adding another.",
        "required": [
          "id",
          "event_id",
          "event_type",
          "state",
          "attempts",
          "next_attempt_at",
          "created_at",
          "payload"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Delivery identifier."
          },
          "event_id": {
            "type": "string",
            "format": "uuid",
            "description": "Event identifier, stable across retries and repeat deliveries. Deduplicate on this in your receiver."
          },
          "event_type": {
            "type": "string",
            "description": "Event type delivered.",
            "example": "market.liquidation"
          },
          "state": {
            "type": "string",
            "enum": [
              "pending",
              "delivered",
              "failed",
              "exhausted"
            ],
            "description": "`pending` is queued or waiting to retry, `delivered` landed, `failed` is the last attempt's result, and `exhausted` means the retry window closed without success.",
            "example": "delivered"
          },
          "attempts": {
            "type": "integer",
            "format": "int32",
            "description": "Attempts made so far.",
            "example": 1
          },
          "last_status_code": {
            "type": "integer",
            "format": "int32",
            "nullable": true,
            "description": "HTTP status your receiver returned on the last attempt.",
            "example": 200
          },
          "last_error": {
            "type": "string",
            "nullable": true,
            "description": "Why the last attempt failed. Null when it succeeded."
          },
          "last_latency_ms": {
            "type": "integer",
            "format": "int32",
            "nullable": true,
            "description": "How long the last attempt took, in milliseconds.",
            "example": 142
          },
          "next_attempt_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the next attempt is due."
          },
          "delivered_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "When the delivery landed. Null until it does."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the delivery was queued. A repeat delivery resets this to the moment it was requested."
          },
          "payload": {
            "type": "object",
            "additionalProperties": true,
            "description": "The event body as sent, including its `id`, `type`, `schema_version`, `observed_at` and `data`."
          }
        }
      },
      "WebhookDeliveryQueued": {
        "type": "object",
        "description": "A delivery that has just been queued.",
        "required": [
          "delivery_id",
          "event_id"
        ],
        "properties": {
          "delivery_id": {
            "type": "string",
            "format": "uuid",
            "description": "Delivery identifier. Read it back from the endpoint's delivery log."
          },
          "event_id": {
            "type": "string",
            "format": "uuid",
            "description": "Event identifier carried in the delivered payload."
          }
        }
      },
      "WebhookRedelivery": {
        "type": "object",
        "description": "A past delivery queued for another attempt. The identifiers are unchanged, because the delivery is re-queued in place.",
        "required": [
          "delivery_id",
          "event_id",
          "event_type",
          "state",
          "attempts",
          "next_attempt_at"
        ],
        "properties": {
          "delivery_id": {
            "type": "string",
            "format": "uuid",
            "description": "Delivery identifier, the same one that was asked for."
          },
          "event_id": {
            "type": "string",
            "format": "uuid",
            "description": "Event identifier, unchanged, so a receiver that already processed this event can deduplicate on it."
          },
          "event_type": {
            "type": "string",
            "description": "Event type being delivered again.",
            "example": "market.liquidation"
          },
          "state": {
            "type": "string",
            "enum": [
              "pending"
            ],
            "description": "Always `pending` immediately after a repeat delivery is queued.",
            "example": "pending"
          },
          "attempts": {
            "type": "integer",
            "format": "int32",
            "description": "Attempt counter, restarted from zero.",
            "example": 0
          },
          "next_attempt_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the attempt is due, which is immediately."
          }
        }
      },
      "WebhookWatchedAddress": {
        "type": "object",
        "description": "A wallet on your watched list. Address scoped event types report only on these.",
        "required": [
          "id",
          "address",
          "label",
          "created_at"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Watched address identifier."
          },
          "address": {
            "type": "string",
            "description": "The wallet, stored lowercase.",
            "example": "0x6b9e773128f453f5c2c60935ee2de2cbc5390a24"
          },
          "label": {
            "type": "string",
            "description": "Your own label for the wallet. At most 64 characters.",
            "example": "Desk 1"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the wallet was added."
          }
        }
      },
      "WebhookLimitUsage": {
        "type": "object",
        "description": "One cap: what the plan allows, what is in use, and what is left.",
        "required": [
          "used",
          "limit",
          "remaining"
        ],
        "properties": {
          "used": {
            "type": "integer",
            "format": "int64",
            "description": "In use now.",
            "example": 1
          },
          "limit": {
            "type": "integer",
            "format": "int64",
            "description": "What the plan allows. Zero on a plan without webhook delivery.",
            "example": 4
          },
          "remaining": {
            "type": "integer",
            "format": "int64",
            "description": "What is left, never below zero. A plan change can leave an account legitimately over a cap.",
            "example": 3
          }
        }
      },
      "WebhookDeliveryBudget": {
        "type": "object",
        "description": "Today's delivery budget. The budget resets on its own; a paused rule does not.",
        "required": [
          "used",
          "limit",
          "remaining",
          "unlimited",
          "resets_at"
        ],
        "properties": {
          "used": {
            "type": "integer",
            "format": "int64",
            "description": "Deliveries today.",
            "example": 412
          },
          "limit": {
            "type": "integer",
            "format": "int64",
            "nullable": true,
            "description": "Deliveries a day the plan allows. Null when the plan has no ceiling.",
            "example": 50000
          },
          "remaining": {
            "type": "integer",
            "format": "int64",
            "nullable": true,
            "description": "Deliveries left today, never below zero. Null when the plan has no ceiling.",
            "example": 49588
          },
          "unlimited": {
            "type": "boolean",
            "description": "True when the plan has no daily ceiling.",
            "example": false
          },
          "resets_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the budget resets."
          },
          "resets_at_note": {
            "type": "string",
            "description": "Present only while something is paused, to say that the reset time is the budget's and not the pause's."
          }
        }
      },
      "WebhookPausedSubscriptions": {
        "type": "object",
        "description": "Paused rules on the account. Always present, so zero paused needs no special case.",
        "required": [
          "count",
          "reasons"
        ],
        "properties": {
          "count": {
            "type": "integer",
            "format": "int64",
            "description": "How many rules are paused and delivering nothing.",
            "example": 0
          },
          "earliest_paused_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Start of the oldest pause still in force."
          },
          "reasons": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Distinct causes across the paused rules: the account reached its daily delivery limit, or the plan does not include webhook delivery.",
            "example": []
          },
          "message": {
            "type": "string",
            "description": "What is paused and what clears it, in plain words. Present only when something is paused."
          }
        }
      },
      "WebhookLimits": {
        "type": "object",
        "description": "What this plan allows and what is in use, in one call. Every number is read from the same place the caps are enforced from, so a refusal and this report cannot disagree.",
        "required": [
          "plan",
          "included",
          "preview_included",
          "endpoints",
          "subscriptions",
          "watched_addresses",
          "deliveries_per_day",
          "paused_subscriptions"
        ],
        "properties": {
          "plan": {
            "type": "string",
            "description": "The plan webhook decisions are priced at.",
            "example": "pro"
          },
          "plan_label": {
            "type": "string",
            "nullable": true,
            "description": "The plan's display name, or null for a plan this build cannot name.",
            "example": "Pro"
          },
          "included": {
            "type": "boolean",
            "description": "Whether the plan has webhook delivery at all. False on Free, where every cap is zero.",
            "example": true
          },
          "preview_included": {
            "type": "boolean",
            "description": "Whether the estimate and the dry-run are available. True on every plan, including Free.",
            "example": true
          },
          "endpoints": {
            "$ref": "#/components/schemas/WebhookLimitUsage"
          },
          "subscriptions": {
            "$ref": "#/components/schemas/WebhookLimitUsage"
          },
          "watched_addresses": {
            "$ref": "#/components/schemas/WebhookLimitUsage"
          },
          "deliveries_per_day": {
            "$ref": "#/components/schemas/WebhookDeliveryBudget"
          },
          "paused_subscriptions": {
            "$ref": "#/components/schemas/WebhookPausedSubscriptions"
          },
          "notice": {
            "type": "string",
            "description": "Why the caps are zero, and what to do about it. Present only on a plan without webhook delivery."
          }
        }
      },
      "WebhookPreviewWindow": {
        "type": "object",
        "description": "The window a preview vouches for. It can start later than the one that was asked for when a scan reached its row cap.",
        "required": [
          "from",
          "to"
        ],
        "properties": {
          "from": {
            "type": "string",
            "format": "date-time",
            "description": "Start of the window the answer covers."
          },
          "to": {
            "type": "string",
            "format": "date-time",
            "description": "End of the window, which is the moment of the request."
          }
        }
      },
      "WebhookPreviewOccurrence": {
        "type": "object",
        "description": "One occurrence that would have been delivered, in the shape the delivered payload carries.",
        "required": [
          "observed_at_estimate",
          "data"
        ],
        "properties": {
          "observed_at_estimate": {
            "type": "string",
            "format": "date-time",
            "description": "The occurrence's own timestamp. A real delivery's `observed_at` is this plus the time it takes to see the occurrence."
          },
          "data": {
            "type": "object",
            "additionalProperties": true,
            "description": "The occurrence body, the same `data` a delivery would carry."
          }
        }
      },
      "WebhookDryRun": {
        "type": "object",
        "description": "Which occurrences in the requested window a would-be subscription would have delivered. Nothing is stored and no delivery is sent.",
        "required": [
          "event_type",
          "window",
          "matched",
          "truncated",
          "occurrences"
        ],
        "properties": {
          "event_type": {
            "type": "string",
            "description": "Event type that was evaluated.",
            "example": "market.liquidation"
          },
          "window": {
            "$ref": "#/components/schemas/WebhookPreviewWindow"
          },
          "matched": {
            "type": "integer",
            "description": "Occurrences that matched inside the window, before `limit` is applied.",
            "example": 37
          },
          "truncated": {
            "type": "boolean",
            "description": "True when fewer occurrences are returned than matched, or when a scan hit its row cap and the window was narrowed.",
            "example": false
          },
          "occurrences": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebhookPreviewOccurrence"
            },
            "description": "Newest first, at most `limit`."
          },
          "notes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Advisories about the scan, for example a venue that could not be read. Omitted when there are none."
          }
        }
      },
      "WebhookEstimateDayCount": {
        "type": "object",
        "description": "One 24 hour bin of the estimate window.",
        "required": [
          "date",
          "count"
        ],
        "properties": {
          "date": {
            "type": "string",
            "format": "date",
            "description": "UTC date the bin ends on.",
            "example": "2026-09-19"
          },
          "count": {
            "type": "integer",
            "format": "int64",
            "description": "Occurrences that would have been delivered in the bin.",
            "example": 12
          }
        }
      },
      "WebhookEstimateRung": {
        "type": "object",
        "description": "One rung of the threshold ladder: the daily rate the same configuration would have had at a different threshold.",
        "required": [
          "value",
          "per_day"
        ],
        "properties": {
          "value": {
            "type": "number",
            "description": "Threshold on the primary metric.",
            "example": 250000
          },
          "per_day": {
            "type": "number",
            "description": "Deliveries a day at that threshold, everything else unchanged.",
            "example": 3.4
          }
        }
      },
      "WebhookEstimateDistribution": {
        "type": "object",
        "description": "Quantiles of the primary metric over the matched occurrences, for choosing a threshold against real history.",
        "required": [
          "n",
          "p50",
          "p90",
          "p99",
          "max"
        ],
        "properties": {
          "n": {
            "type": "integer",
            "format": "int64",
            "description": "Occurrences the quantiles are computed over.",
            "example": 842
          },
          "p50": {
            "type": "number",
            "description": "Median.",
            "example": 18400
          },
          "p90": {
            "type": "number",
            "description": "90th percentile.",
            "example": 132000
          },
          "p99": {
            "type": "number",
            "description": "99th percentile.",
            "example": 910000
          },
          "max": {
            "type": "number",
            "description": "Largest value seen.",
            "example": 4210000
          }
        }
      },
      "WebhookEstimateBasis": {
        "type": "object",
        "description": "How the estimate was produced, so the numbers can be read for what they are.",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "type": "string",
            "enum": [
              "exact",
              "sampled",
              "replayed"
            ],
            "description": "`exact` counted every occurrence in the window. `sampled` scaled the counts from a capped scan, and the note says by how much. `replayed` re-ran a windowed rule over history at your own parameters.",
            "example": "exact"
          },
          "note": {
            "type": "string",
            "nullable": true,
            "description": "What qualifies the numbers, when anything does."
          }
        }
      },
      "WebhookEstimate": {
        "type": "object",
        "description": "How often a would-be subscription would have fired over the requested window. Nothing is stored and no delivery is sent.",
        "required": [
          "event_type",
          "window",
          "days",
          "total",
          "per_day",
          "per_day_p50",
          "per_day_max",
          "ladder",
          "sample",
          "basis"
        ],
        "properties": {
          "event_type": {
            "type": "string",
            "description": "Event type that was evaluated.",
            "example": "market.liquidation"
          },
          "window": {
            "$ref": "#/components/schemas/WebhookPreviewWindow"
          },
          "days": {
            "type": "integer",
            "format": "int64",
            "description": "Days the answer covers. Shorter than requested when the event type carries a shorter cap.",
            "example": 7
          },
          "total": {
            "type": "integer",
            "format": "int64",
            "description": "Occurrences that would have been delivered across the window.",
            "example": 84
          },
          "per_day": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebhookEstimateDayCount"
            },
            "description": "One entry per day, oldest first, zero filled. The last entry ends at the moment of the request."
          },
          "per_day_p50": {
            "type": "number",
            "description": "Median deliveries a day across the window.",
            "example": 11
          },
          "per_day_max": {
            "type": "integer",
            "format": "int64",
            "description": "Busiest day in the window.",
            "example": 26
          },
          "primary_metric": {
            "type": "string",
            "nullable": true,
            "description": "The metric the ladder and the distribution are about. Null when the type has none.",
            "example": "notional_usd"
          },
          "ladder": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebhookEstimateRung"
            },
            "description": "Ascending. Empty when there is no primary metric."
          },
          "distribution": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WebhookEstimateDistribution"
              }
            ],
            "nullable": true,
            "description": "Quantiles of the primary metric. Null when the type has no primary metric or nothing matched."
          },
          "sample": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebhookPreviewOccurrence"
            },
            "description": "Newest matches first, in the same shape the dry-run returns."
          },
          "basis": {
            "$ref": "#/components/schemas/WebhookEstimateBasis"
          }
        }
      },
      "WebhookEndpointCreateRequest": {
        "type": "object",
        "description": "A new delivery destination.",
        "required": [
          "url"
        ],
        "properties": {
          "url": {
            "type": "string",
            "format": "uri",
            "description": "HTTPS destination that will receive deliveries. Destinations that resolve to a private or internal address are refused.",
            "example": "https://example.com/hooks/0xarchive"
          },
          "description": {
            "type": "string",
            "description": "Your own label for the endpoint.",
            "default": "",
            "example": "Trading desk alerts"
          },
          "format": {
            "type": "string",
            "enum": [
              "json",
              "discord",
              "slack"
            ],
            "description": "Delivery format. Omit it to detect from the URL: a Discord webhook URL becomes `discord`, a Slack incoming-webhook URL becomes `slack`, anything else `json`. Case-insensitive. Telegram endpoints are created by connecting a chat, not here.",
            "example": "json"
          }
        }
      },
      "WebhookSubscriptionCreateRequest": {
        "type": "object",
        "description": "A new rule. The configuration is validated against the event type's catalog declaration before anything is stored. Send the configuration as `filters` or under its alias `config` (not both). Any other top-level key is refused with a 400 that names it.",
        "required": [
          "endpoint_id",
          "event_type"
        ],
        "properties": {
          "endpoint_id": {
            "type": "string",
            "format": "uuid",
            "description": "Endpoint that will receive this rule's deliveries."
          },
          "event_type": {
            "type": "string",
            "description": "Event type to subscribe to, from the catalog.",
            "example": "market.liquidation"
          },
          "filters": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WebhookSubscriptionConfig"
              }
            ],
            "description": "Rule configuration. Omit it for an empty configuration."
          },
          "config": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WebhookSubscriptionConfig"
              }
            ],
            "description": "Alias of `filters`. Send one or the other."
          }
        }
      },
      "WebhookSubscriptionUpdateRequest": {
        "type": "object",
        "description": "Edit a rule in place. Send `filters` (or its alias `config`), `enabled`, or both; a field you leave out is left alone, and other keys are ignored. A configuration is validated exactly as on create. Send `{}` as the configuration to clear it. Changing the configuration never requires deleting and recreating the rule.",
        "properties": {
          "filters": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WebhookSubscriptionConfig"
              }
            ],
            "description": "New rule configuration."
          },
          "config": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WebhookSubscriptionConfig"
              }
            ],
            "description": "Alias of `filters`. Send one or the other."
          },
          "enabled": {
            "type": "boolean",
            "description": "Your own on and off switch for the rule.",
            "example": true
          }
        }
      },
      "WebhookDryRunRequest": {
        "type": "object",
        "description": "A would-be subscription to evaluate against recent history. Same shape as a create, without the endpoint, plus the window.",
        "required": [
          "event_type"
        ],
        "properties": {
          "event_type": {
            "type": "string",
            "description": "Event type to evaluate.",
            "example": "market.liquidation"
          },
          "config": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WebhookSubscriptionConfig"
              }
            ],
            "description": "Rule configuration to evaluate. `filters` is accepted as an alias."
          },
          "filters": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WebhookSubscriptionConfig"
              }
            ],
            "description": "Alias of `config`. Send one or the other."
          },
          "lookback_s": {
            "type": "integer",
            "format": "int64",
            "description": "Seconds of history to scan, ending now. Between 60 and 86400 (24 hours); a value outside that range is refused with a 400.",
            "default": 3600,
            "minimum": 60,
            "maximum": 86400,
            "example": 3600
          },
          "limit": {
            "type": "integer",
            "format": "int64",
            "description": "Occurrences to return, newest first. Between 1 and 200; a value outside that range is refused with a 400.",
            "default": 100,
            "minimum": 1,
            "maximum": 200,
            "example": 100
          }
        }
      },
      "WebhookEstimateRequest": {
        "type": "object",
        "description": "A would-be subscription to evaluate against history. Same shape as a create, without the endpoint, plus the window.",
        "required": [
          "event_type"
        ],
        "properties": {
          "event_type": {
            "type": "string",
            "description": "Event type to evaluate.",
            "example": "market.liquidation"
          },
          "config": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WebhookSubscriptionConfig"
              }
            ],
            "description": "Rule configuration to evaluate. `filters` is accepted as an alias."
          },
          "filters": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WebhookSubscriptionConfig"
              }
            ],
            "description": "Alias of `config`. Send one or the other."
          },
          "lookback_days": {
            "type": "integer",
            "format": "int64",
            "description": "Days of history to evaluate, ending now. Between 1 and 30; a value outside that range is refused with a 400. Some event types evaluate a shorter window (for example 7 days for `account.fill`); the response's `days` and `basis.note` then say so.",
            "default": 7,
            "minimum": 1,
            "maximum": 30,
            "example": 7
          }
        }
      },
      "WebhookWatchedAddressCreateRequest": {
        "type": "object",
        "description": "A wallet to add to your watched list.",
        "required": [
          "address"
        ],
        "properties": {
          "address": {
            "type": "string",
            "description": "A 0x prefixed 40 hex character wallet address. Stored lowercase.",
            "example": "0x6b9e773128f453f5c2c60935ee2de2cbc5390a24"
          },
          "label": {
            "type": "string",
            "description": "Your own label for the wallet. At most 64 characters.",
            "default": "",
            "example": "Desk 1"
          }
        }
      },
      "ApiResponseWebhookAck": {
        "type": "object",
        "description": "API response for a webhook management call that returns nothing beyond confirmation.",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          }
        },
        "required": [
          "success"
        ]
      },
      "ApiResponseWebhookEventTypeArray": {
        "type": "object",
        "description": "API response containing the served webhook event catalog.",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebhookEventType"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        },
        "required": [
          "success",
          "data",
          "meta"
        ]
      },
      "ApiResponseWebhookLimits": {
        "type": "object",
        "description": "API response containing webhook plan limits and current usage.",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/WebhookLimits"
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        },
        "required": [
          "success",
          "data",
          "meta"
        ]
      },
      "ApiResponseWebhookEndpointArray": {
        "type": "object",
        "description": "API response containing your webhook delivery endpoints.",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebhookEndpoint"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        },
        "required": [
          "success",
          "data",
          "meta"
        ]
      },
      "ApiResponseWebhookEndpointCreated": {
        "type": "object",
        "description": "API response containing a newly created endpoint and its signing secret.",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/WebhookEndpointCreated"
          },
          "note": {
            "type": "string",
            "description": "That the secret is shown once.",
            "example": "Store the secret now; it is not shown again."
          }
        }
      },
      "ApiResponseWebhookEndpointSecret": {
        "type": "object",
        "description": "API response containing a rotated signing secret.",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/WebhookEndpointSecret"
          },
          "note": {
            "type": "string",
            "description": "How long the previous secret keeps verifying.",
            "example": "Previous secret remains valid for 24 hours."
          }
        }
      },
      "ApiResponseWebhookDeliveryArray": {
        "type": "object",
        "description": "API response containing an endpoint's delivery log.",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebhookDelivery"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        },
        "required": [
          "success",
          "data",
          "meta"
        ]
      },
      "ApiResponseWebhookDeliveryQueued": {
        "type": "object",
        "description": "API response containing a newly queued delivery.",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/WebhookDeliveryQueued"
          }
        }
      },
      "ApiResponseWebhookRedelivery": {
        "type": "object",
        "description": "API response containing a delivery queued for another attempt.",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/WebhookRedelivery"
          },
          "note": {
            "type": "string",
            "description": "What the repeat delivery rewrites on the delivery record, and what it does not."
          }
        }
      },
      "ApiResponseWebhookSubscription": {
        "type": "object",
        "description": "API response containing one webhook subscription.",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/WebhookSubscription"
          }
        }
      },
      "ApiResponseWebhookSubscriptionArray": {
        "type": "object",
        "description": "API response containing your webhook subscriptions.",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebhookSubscription"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        },
        "required": [
          "success",
          "data",
          "meta"
        ]
      },
      "ApiResponseWebhookSubscriptionResume": {
        "type": "object",
        "description": "API response for resuming one paused subscription.",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/WebhookSubscription"
          },
          "gap": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WebhookResumeGap"
              }
            ],
            "nullable": true,
            "description": "The window the resume closed. Null when the rule was already serving, in which case nothing was changed."
          },
          "note": {
            "type": "string",
            "description": "Present only when nothing changed, to say why.",
            "example": "This subscription was already active, so nothing changed."
          }
        }
      },
      "ApiResponseWebhookSubscriptionResumeAll": {
        "type": "object",
        "description": "API response for resuming every paused subscription on the account.",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebhookSubscription"
            }
          },
          "resumed_count": {
            "type": "integer",
            "description": "How many rules were put back into service.",
            "example": 8
          },
          "gap": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WebhookResumeGap"
              }
            ],
            "nullable": true,
            "description": "The window the resume closed, across the rules it cleared. Null when nothing was paused."
          },
          "note": {
            "type": "string",
            "description": "Present only when nothing changed, to say why.",
            "example": "Nothing on this account is paused, so nothing changed."
          }
        }
      },
      "ApiResponseWebhookDryRun": {
        "type": "object",
        "description": "API response containing a subscription dry-run.",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/WebhookDryRun"
          }
        }
      },
      "ApiResponseWebhookEstimate": {
        "type": "object",
        "description": "API response containing a subscription estimate.",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/WebhookEstimate"
          }
        }
      },
      "ApiResponseWebhookWatchedAddress": {
        "type": "object",
        "description": "API response containing one watched wallet address.",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/WebhookWatchedAddress"
          },
          "limit": {
            "type": "integer",
            "format": "int64",
            "description": "Watched wallets this plan allows.",
            "example": 15
          }
        }
      },
      "ApiResponseWebhookWatchedAddressArray": {
        "type": "object",
        "description": "API response containing your watched wallet addresses.",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebhookWatchedAddress"
            }
          },
          "limit": {
            "type": "integer",
            "format": "int64",
            "description": "Watched wallets this plan allows.",
            "example": 15
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        },
        "required": [
          "success",
          "data",
          "meta"
        ]
      },
      "PositionLeverage": {
        "type": "object",
        "description": "Leverage of a position.",
        "required": [
          "type",
          "value"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "Margin type: `cross`, `isolated`, or `unknown`. On Lighter this is the margin mode of the position.",
            "example": "cross"
          },
          "value": {
            "type": "string",
            "nullable": true,
            "description": "Leverage multiple as a decimal string. Null when unknown (Lighter rows and as-of reconstructions).",
            "example": "20"
          }
        }
      },
      "PositionCumulativeFunding": {
        "type": "object",
        "description": "Cumulative funding in USD (decimal strings). Null when not reported, including every Lighter row and as-of reconstructions.",
        "required": [
          "all_time",
          "since_open",
          "since_change"
        ],
        "properties": {
          "all_time": {
            "type": "string",
            "nullable": true,
            "description": "Funding paid or received over the account lifetime for this coin.",
            "example": "-12.345678"
          },
          "since_open": {
            "type": "string",
            "nullable": true,
            "description": "Funding since the current position opened.",
            "example": "-1.25"
          },
          "since_change": {
            "type": "string",
            "nullable": true,
            "description": "Funding since the last change in position size.",
            "example": "-0.5"
          }
        }
      },
      "Position": {
        "type": "object",
        "description": "One open position. Numbers are decimal strings (sizes to the market size precision, prices to the market price precision, USD values to 6 decimals); a flat position serializes as `\"0\"`. Hyperliquid rows carry `dex` on HIP-3; Lighter rows carry `account_index`, `account_kind`, and the Lighter fields at the end. Fields a source does not report are null, never estimated.",
        "required": [
          "symbol",
          "coin",
          "size",
          "side",
          "entry_price",
          "mark_price",
          "mark_time",
          "position_value",
          "unrealized_pnl",
          "return_on_equity",
          "leverage",
          "max_leverage",
          "margin_used",
          "liquidation_price",
          "liquidation_price_status",
          "cum_funding",
          "opened_at",
          "snapshot_as_of",
          "quality"
        ],
        "properties": {
          "snapshot_ts": {
            "type": "string",
            "format": "date-time",
            "description": "Hour the row describes. Present on hourly history rows only."
          },
          "account_index": {
            "type": "string",
            "description": "Lighter only: account index, serialized as a string because it can exceed JavaScript integers.",
            "example": "281474976710654"
          },
          "account_kind": {
            "type": "string",
            "description": "Lighter only: `user`, `insurance`, `settlement`, or `system`. Non-user accounts appear in market routes only with `include_system=true`.",
            "example": "user"
          },
          "symbol": {
            "type": "string",
            "description": "Market symbol (HIP-3: `dex:COIN`).",
            "example": "BTC"
          },
          "coin": {
            "type": "string",
            "description": "Alias of `symbol`.",
            "example": "BTC"
          },
          "dex": {
            "type": "string",
            "description": "HIP-3 only: the dex the position belongs to.",
            "example": "xyz"
          },
          "size": {
            "type": "string",
            "description": "Signed position size in base units (negative is short).",
            "example": "-0.5"
          },
          "side": {
            "type": "string",
            "enum": [
              "long",
              "short"
            ],
            "description": "Position side.",
            "example": "short"
          },
          "entry_price": {
            "type": "string",
            "nullable": true,
            "description": "Average entry price.",
            "example": "64210.5"
          },
          "mark_price": {
            "type": "string",
            "nullable": true,
            "description": "Mark price used for value and PnL. Null when no mark is available.",
            "example": "65020.1"
          },
          "mark_time": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Time of the mark price."
          },
          "position_value": {
            "type": "string",
            "nullable": true,
            "description": "Absolute position value in USD at the mark price.",
            "example": "32510.05"
          },
          "unrealized_pnl": {
            "type": "string",
            "nullable": true,
            "description": "Unrealized PnL in USD at the mark price.",
            "example": "-404.8"
          },
          "return_on_equity": {
            "type": "string",
            "nullable": true,
            "description": "Return on equity as a decimal ratio. Hyperliquid snapshot rows only.",
            "example": "-0.1245"
          },
          "leverage": {
            "$ref": "#/components/schemas/PositionLeverage"
          },
          "max_leverage": {
            "type": "integer",
            "nullable": true,
            "description": "Maximum leverage allowed for the market. Hyperliquid snapshot rows only.",
            "example": 40
          },
          "margin_used": {
            "type": "string",
            "nullable": true,
            "description": "Margin allocated to the position in USD. Hyperliquid snapshot rows only.",
            "example": "1625.5"
          },
          "liquidation_price": {
            "type": "string",
            "nullable": true,
            "description": "Liquidation price as reported for the position. Hyperliquid snapshot rows only.",
            "example": "81250"
          },
          "liquidation_price_status": {
            "type": "string",
            "description": "How `liquidation_price` should be read: `exact`, `not_published_cross`, `changed_since_snapshot`, or `unavailable` (always `unavailable` on Lighter and on as-of reconstructions).",
            "example": "exact"
          },
          "cum_funding": {
            "$ref": "#/components/schemas/PositionCumulativeFunding"
          },
          "opened_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Start of the current position lifecycle. Null when it opened before coverage."
          },
          "snapshot_as_of": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Time the leverage, margin, and funding fields describe, which can differ from the hour. Hyperliquid snapshot rows only."
          },
          "quality": {
            "type": "string",
            "description": "Quality of this row. `complete`, `partial` (a mark or entry is missing, so value and PnL fields are null), or `degraded`. Lighter rows can also read `preliminary` (built from real-time trades not yet reconciled), `unreconciled` (a market with no reconciled trades), or `incomplete`. No row reads `complete` when its own data is not complete, or when its snapshot has a problem that could not be pinned to specific rows. A small number of Hyperliquid positions around three short windows in June and July 2025, where Hyperliquid's published fill data has gaps, read `partial`.",
            "example": "complete"
          },
          "initial_margin_fraction": {
            "type": "string",
            "nullable": true,
            "description": "Lighter only: initial margin fraction at the last trade, as a decimal ratio.",
            "example": "0.05"
          },
          "allocated_margin": {
            "type": "string",
            "nullable": true,
            "description": "Lighter only: isolated margin allocated to the position.",
            "example": "1200.5"
          },
          "margin_mode": {
            "type": "string",
            "description": "Lighter only: `cross`, `isolated`, or `unknown`.",
            "example": "cross"
          },
          "mark_source": {
            "type": "string",
            "description": "Lighter only: where the mark came from: `mark`, `last_trade`, `stale_mark`, or `none`.",
            "example": "mark"
          },
          "finalized": {
            "type": "boolean",
            "description": "Lighter only: true when every trade behind the row is final (reconciled).",
            "example": true
          }
        }
      },
      "MarketPosition": {
        "type": "object",
        "description": "One open position in a market-wide listing (`/positions/{symbol}` and bulk `/positions`). A lean record: use the wallet or account routes for the full `Position`.",
        "required": [
          "symbol",
          "coin",
          "size",
          "side",
          "entry_price",
          "mark_price",
          "position_value",
          "unrealized_pnl",
          "leverage_type",
          "liquidation_price",
          "quality"
        ],
        "properties": {
          "snapshot_ts": {
            "type": "string",
            "format": "date-time",
            "description": "Hour the row describes. Present on bulk `/positions` rows."
          },
          "user_address": {
            "type": "string",
            "description": "Hyperliquid and HIP-3 only: wallet address holding the position (lowercase).",
            "example": "0x31ca8395cf837de08b24da3f660e77761dfb974b"
          },
          "account_index": {
            "type": "string",
            "description": "Lighter only: account index as a string.",
            "example": "513030"
          },
          "account_kind": {
            "type": "string",
            "description": "Lighter only: `user`, `insurance`, `settlement`, or `system`.",
            "example": "user"
          },
          "symbol": {
            "type": "string",
            "description": "Market symbol (HIP-3: `dex:COIN`).",
            "example": "BTC"
          },
          "coin": {
            "type": "string",
            "description": "Alias of `symbol`.",
            "example": "BTC"
          },
          "dex": {
            "type": "string",
            "description": "HIP-3 only: dex of the market.",
            "example": "xyz"
          },
          "size": {
            "type": "string",
            "description": "Signed position size in base units.",
            "example": "12.5"
          },
          "side": {
            "type": "string",
            "enum": [
              "long",
              "short"
            ],
            "example": "long"
          },
          "entry_price": {
            "type": "string",
            "nullable": true,
            "description": "Average entry price.",
            "example": "64210.5"
          },
          "mark_price": {
            "type": "string",
            "nullable": true,
            "description": "Mark price.",
            "example": "65020.1"
          },
          "position_value": {
            "type": "string",
            "nullable": true,
            "description": "Absolute position value in USD. Listings sort by this value, largest first.",
            "example": "812751.25"
          },
          "unrealized_pnl": {
            "type": "string",
            "nullable": true,
            "description": "Unrealized PnL in USD.",
            "example": "10120.2"
          },
          "leverage_type": {
            "type": "string",
            "description": "`cross`, `isolated`, or `unknown` (Lighter: the margin mode).",
            "example": "cross"
          },
          "liquidation_price": {
            "type": "string",
            "nullable": true,
            "description": "Reported liquidation price. Hyperliquid only; null on Lighter.",
            "example": "51000"
          },
          "quality": {
            "type": "string",
            "description": "Quality of this row. `complete`, `partial` (a mark or entry is missing, so value and PnL fields are null), or `degraded`. Lighter rows can also read `preliminary` (built from real-time trades not yet reconciled), `unreconciled` (a market with no reconciled trades), or `incomplete`. No row reads `complete` when its own data is not complete, or when its snapshot has a problem that could not be pinned to specific rows. A small number of Hyperliquid positions around three short windows in June and July 2025, where Hyperliquid's published fill data has gaps, read `partial`.",
            "example": "complete"
          }
        }
      },
      "PositionChange": {
        "type": "object",
        "description": "One leg of the position change log: a trade, liquidation, auto-deleverage, or settlement that changed (or touched) a position, with the position before and after. Hyperliquid legs carry `direction`, `closed_pnl`, `crossed`, and `seq`; Lighter legs carry `realized_pnl`, `is_maker`, and the Lighter fields at the end.",
        "required": [
          "timestamp",
          "symbol",
          "coin",
          "side",
          "price",
          "size",
          "start_position",
          "end_position",
          "entry_price_after",
          "event_type",
          "cause",
          "fee",
          "fee_token",
          "trade_id",
          "order_id",
          "opened_at",
          "continuity",
          "finalized"
        ],
        "properties": {
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Execution time (UTC).",
            "example": "2026-09-25T14:03:11.482Z"
          },
          "account_index": {
            "type": "string",
            "description": "Lighter only: account index as a string.",
            "example": "513030"
          },
          "account_kind": {
            "type": "string",
            "description": "Lighter only: `user`, `insurance`, `settlement`, or `system`.",
            "example": "user"
          },
          "symbol": {
            "type": "string",
            "description": "Market symbol (HIP-3: `dex:COIN`).",
            "example": "BTC"
          },
          "coin": {
            "type": "string",
            "description": "Alias of `symbol`.",
            "example": "BTC"
          },
          "dex": {
            "type": "string",
            "description": "HIP-3 only: dex of the market.",
            "example": "xyz"
          },
          "side": {
            "type": "string",
            "enum": [
              "B",
              "A"
            ],
            "description": "Side of this account in the trade, exactly as on the trades routes: `B` (buy) or `A` (sell).",
            "example": "B"
          },
          "price": {
            "type": "string",
            "nullable": true,
            "description": "Execution price.",
            "example": "65010.2"
          },
          "size": {
            "type": "string",
            "nullable": true,
            "description": "Traded size in base units.",
            "example": "0.25"
          },
          "start_position": {
            "type": "string",
            "nullable": true,
            "description": "Signed position size before the leg.",
            "example": "-0.5"
          },
          "end_position": {
            "type": "string",
            "nullable": true,
            "description": "Signed position size after the leg.",
            "example": "-0.25"
          },
          "entry_price_after": {
            "type": "string",
            "nullable": true,
            "description": "Average entry price after the leg. Null when the position is flat after it.",
            "example": "64210.5"
          },
          "event_type": {
            "type": "string",
            "description": "Effect on the position: `open`, `increase`, `reduce`, `close`, or `flip`. Lighter also reports `settlement` (the settlement counterparty side of a market settlement) and `unchanged`.",
            "example": "reduce"
          },
          "cause": {
            "type": "string",
            "description": "Why the leg happened: `trade`, `liquidation`, `liquidation_counterparty`, `adl`, `settlement`, or `unknown`.",
            "example": "trade"
          },
          "direction": {
            "type": "string",
            "description": "Hyperliquid and HIP-3 only: direction label as reported by Hyperliquid (for example `Close Short`).",
            "example": "Close Short"
          },
          "closed_pnl": {
            "type": "string",
            "nullable": true,
            "description": "Hyperliquid and HIP-3 only: realized PnL of the leg in USD.",
            "example": "19.9"
          },
          "realized_pnl": {
            "type": "string",
            "description": "Lighter only: realized PnL of the leg in the quote asset (0 on open and increase).",
            "example": "19.9"
          },
          "fee": {
            "type": "string",
            "nullable": true,
            "description": "Fee paid for the leg (negative is a rebate).",
            "example": "0.4875"
          },
          "fee_token": {
            "type": "string",
            "description": "Asset the fee is paid in: USDC on Hyperliquid and Lighter mainnet, USDG on Lighter on Robinhood Chain.",
            "example": "USDC"
          },
          "crossed": {
            "type": "boolean",
            "description": "Hyperliquid and HIP-3 only: true when this account was the taker.",
            "example": true
          },
          "is_maker": {
            "type": "boolean",
            "description": "Lighter only: true when this account was the maker.",
            "example": false
          },
          "trade_id": {
            "type": "integer",
            "format": "int64",
            "description": "Trade ID, shared by both legs of a trade.",
            "example": 26121110211
          },
          "order_id": {
            "type": "integer",
            "format": "int64",
            "nullable": true,
            "description": "Order ID of this account.",
            "example": 844421856609148
          },
          "opened_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Start of the position lifecycle this leg belongs to. Null when it opened before coverage."
          },
          "seq": {
            "type": "integer",
            "description": "Hyperliquid and HIP-3 only: order of legs that share a timestamp.",
            "example": 0
          },
          "block_number": {
            "type": "integer",
            "format": "int64",
            "description": "Hyperliquid and HIP-3 only, present when known (from September 17, 2026): block that executed the leg.",
            "example": 745512345
          },
          "event_index": {
            "type": "integer",
            "description": "Hyperliquid and HIP-3 only, present with `block_number`: execution order within the block.",
            "example": 12
          },
          "continuity": {
            "type": "string",
            "enum": [
              "ok",
              "inferred",
              "first_seen",
              "quarantined"
            ],
            "description": "`ok` when `start_position` continues the previous leg exactly, `inferred` when it was bridged, `first_seen` for the first leg recorded for the account and market, `quarantined` when the chain is broken and the leg is held out of position state.",
            "example": "ok"
          },
          "position_size_before": {
            "type": "string",
            "description": "Lighter only: alias of `start_position`.",
            "example": "-0.5"
          },
          "position_size_after": {
            "type": "string",
            "description": "Lighter only: alias of `end_position`.",
            "example": "-0.25"
          },
          "fee_rate": {
            "type": "string",
            "nullable": true,
            "description": "Lighter only: fee rate as a decimal ratio.",
            "example": "0.00002"
          },
          "fee_usdc": {
            "type": "string",
            "nullable": true,
            "description": "Lighter only: fee in the quote asset, computed from the notional and the fee rate.",
            "example": "0.325"
          },
          "usdc_amount": {
            "type": "string",
            "description": "Lighter only: notional of the leg in the quote asset.",
            "example": "16252.55"
          },
          "finalized": {
            "type": "boolean",
            "description": "True when the leg is final and will not be re-derived.",
            "example": true
          }
        }
      },
      "AccountSummary": {
        "type": "object",
        "description": "Account summary. Hyperliquid and HIP-3 carry the perp clearinghouse fields of one account (HIP-3: one per dex). Lighter carries position aggregates only (`account_index`, totals, and counts). A total is null when any position in it has no mark, never a partial sum.",
        "required": [
          "total_position_value",
          "total_unrealized_pnl",
          "long_value",
          "short_value",
          "n_positions",
          "quality"
        ],
        "properties": {
          "snapshot_ts": {
            "type": "string",
            "format": "date-time",
            "description": "Hour the row describes. Present on hourly history rows only."
          },
          "account_index": {
            "type": "string",
            "description": "Lighter only: account index as a string.",
            "example": "513030"
          },
          "dex": {
            "type": "string",
            "description": "HIP-3 only: dex the account summary belongs to.",
            "example": "xyz"
          },
          "account_value": {
            "type": "string",
            "nullable": true,
            "description": "Hyperliquid and HIP-3 only: account value in USD.",
            "example": "125000.5"
          },
          "cross_account_value": {
            "type": "string",
            "nullable": true,
            "description": "Hyperliquid and HIP-3 only: cross-margin account value in USD.",
            "example": "118000.25"
          },
          "collateral": {
            "type": "string",
            "nullable": true,
            "description": "Hyperliquid and HIP-3 only: collateral in USD.",
            "example": "100000"
          },
          "total_margin_used": {
            "type": "string",
            "nullable": true,
            "description": "Hyperliquid and HIP-3 only: total margin used in USD.",
            "example": "20500.75"
          },
          "cross_maintenance_margin_used": {
            "type": "string",
            "nullable": true,
            "description": "Hyperliquid and HIP-3 only: cross maintenance margin used in USD.",
            "example": "6100.2"
          },
          "withdrawable": {
            "type": "string",
            "nullable": true,
            "description": "Hyperliquid and HIP-3 only: withdrawable amount in USD. Null outside the periods where it was captured."
          },
          "total_position_value": {
            "type": "string",
            "nullable": true,
            "description": "Sum of absolute position values in USD.",
            "example": "412000.5"
          },
          "total_unrealized_pnl": {
            "type": "string",
            "nullable": true,
            "description": "Sum of unrealized PnL in USD.",
            "example": "2510.25"
          },
          "long_value": {
            "type": "string",
            "nullable": true,
            "description": "Value of long positions in USD.",
            "example": "300000"
          },
          "short_value": {
            "type": "string",
            "nullable": true,
            "description": "Value of short positions in USD.",
            "example": "112000.5"
          },
          "n_positions": {
            "type": "integer",
            "description": "Number of open positions.",
            "example": 4
          },
          "account_mode": {
            "type": "string",
            "description": "Hyperliquid and HIP-3 only: account abstraction mode, `standard`, `unified`, `portfolio`, `dex_abstraction`, or `unknown`.",
            "example": "standard"
          },
          "snapshot_as_of": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Hyperliquid and HIP-3 only: time the clearinghouse fields describe."
          },
          "quality": {
            "type": "string",
            "description": "`complete`, `partial` (a total is null because a position has no mark), or `degraded`.",
            "example": "complete"
          }
        }
      },
      "MarketPositionsSummary": {
        "type": "object",
        "description": "Long and short aggregates of every open position in one market at one snapshot. Averages cover only positions with a known entry (`*_positions_with_entry`). Shares are decimal ratios of the side or total value held by the ten largest positions.",
        "required": [
          "snapshot_ts",
          "symbol",
          "coin",
          "long_count",
          "short_count",
          "long_size",
          "short_size",
          "long_value",
          "short_value",
          "long_avg_entry_price",
          "short_avg_entry_price",
          "long_positions_with_entry",
          "short_positions_with_entry",
          "long_top10_value_share",
          "short_top10_value_share",
          "top10_value_share",
          "quality"
        ],
        "properties": {
          "snapshot_ts": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Snapshot the aggregates describe."
          },
          "symbol": {
            "type": "string",
            "example": "BTC"
          },
          "coin": {
            "type": "string",
            "description": "Alias of `symbol`.",
            "example": "BTC"
          },
          "dex": {
            "type": "string",
            "description": "HIP-3 only.",
            "example": "xyz"
          },
          "long_count": {
            "type": "integer",
            "format": "int64",
            "example": 18234
          },
          "short_count": {
            "type": "integer",
            "format": "int64",
            "example": 15102
          },
          "long_size": {
            "type": "string",
            "description": "Total long size in base units.",
            "example": "8123.45"
          },
          "short_size": {
            "type": "string",
            "description": "Total short size in base units.",
            "example": "8120.1"
          },
          "long_value": {
            "type": "string",
            "nullable": true,
            "description": "Total long value in USD. Null when any long position has no mark.",
            "example": "528000000.5"
          },
          "short_value": {
            "type": "string",
            "nullable": true,
            "description": "Total short value in USD. Null when any short position has no mark.",
            "example": "527800000.25"
          },
          "long_avg_entry_price": {
            "type": "string",
            "nullable": true,
            "description": "Size-weighted average entry of long positions with a known entry.",
            "example": "63120.4"
          },
          "short_avg_entry_price": {
            "type": "string",
            "nullable": true,
            "description": "Size-weighted average entry of short positions with a known entry.",
            "example": "66210.9"
          },
          "long_positions_with_entry": {
            "type": "integer",
            "format": "int64",
            "example": 18230
          },
          "short_positions_with_entry": {
            "type": "integer",
            "format": "int64",
            "example": 15100
          },
          "long_top10_value_share": {
            "type": "string",
            "nullable": true,
            "description": "Share of long value held by the ten largest long positions.",
            "example": "0.412345"
          },
          "short_top10_value_share": {
            "type": "string",
            "nullable": true,
            "description": "Share of short value held by the ten largest short positions.",
            "example": "0.385"
          },
          "top10_value_share": {
            "type": "string",
            "nullable": true,
            "description": "Share of total value held by the ten largest positions.",
            "example": "0.301"
          },
          "quality": {
            "type": "string",
            "description": "`complete`, `partial`, or `degraded`, from this market's own rows.",
            "example": "complete"
          }
        }
      },
      "WalletPositions": {
        "type": "object",
        "description": "Positions of one wallet or account at one instant.",
        "required": [
          "positions",
          "account"
        ],
        "properties": {
          "positions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Position"
            }
          },
          "account": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AccountSummary"
              }
            ],
            "nullable": true,
            "description": "Account summary on the first page of a snapshot read. Hyperliquid core: the wallet's summary when the snapshot holds one. HIP-3: when the request is scoped to one dex. Lighter: position aggregates when no `symbol` filter is set. Null otherwise, on later pages, and on as-of reconstructions."
          },
          "account_seen": {
            "type": "string",
            "enum": [
              "flat",
              "never_seen",
              "outside_coverage"
            ],
            "description": "Present only when `positions` is empty: `flat` (activity is recorded but no position is open), `never_seen` (no recorded activity in the covered history, with `meta.notice` and `meta.coverage_from`), or `outside_coverage` (the requested instant is before coverage)."
          }
        }
      },
      "LighterL1Account": {
        "type": "object",
        "required": [
          "account_index",
          "account_type",
          "first_seen"
        ],
        "properties": {
          "account_index": {
            "type": "string",
            "description": "Lighter account index as a string.",
            "example": "513030"
          },
          "account_type": {
            "type": "integer",
            "description": "Lighter account type as reported by Lighter.",
            "example": 0
          },
          "first_seen": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "First time the account was seen."
          }
        }
      },
      "LighterL1Accounts": {
        "type": "object",
        "description": "Lighter mainnet accounts owned by one L1 address.",
        "required": [
          "l1_address",
          "total_accounts",
          "accounts"
        ],
        "properties": {
          "l1_address": {
            "type": "string",
            "description": "L1 address, lowercase.",
            "example": "0x31ca8395cf837de08b24da3f660e77761dfb974b"
          },
          "total_accounts": {
            "type": "integer",
            "format": "int64",
            "description": "Number of accounts the address owns (across all pages).",
            "example": 3
          },
          "accounts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LighterL1Account"
            }
          }
        }
      },
      "PositionsFreshness": {
        "type": "object",
        "description": "Freshness of one positions product.",
        "required": [
          "venue",
          "product",
          "live_snapshot_ts",
          "live_age_seconds",
          "stale",
          "live_quality",
          "hourly_snapshot_ts",
          "built_through",
          "finalized_through"
        ],
        "properties": {
          "venue": {
            "type": "string",
            "description": "`hyperliquid`, `lighter`, or `rh_lighter`.",
            "example": "hyperliquid"
          },
          "product": {
            "type": "string",
            "description": "`core`, `hip3`, `lighter`, or `rh_lighter`.",
            "example": "core"
          },
          "live_snapshot_ts": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Latest live snapshot."
          },
          "live_age_seconds": {
            "type": "integer",
            "format": "int64",
            "nullable": true,
            "description": "Age of the latest live snapshot in seconds.",
            "example": 94
          },
          "stale": {
            "type": "boolean",
            "description": "True when the latest live snapshot is older than 12 minutes, or there is none.",
            "example": false
          },
          "live_quality": {
            "type": "string",
            "nullable": true,
            "description": "Quality of the latest live snapshot.",
            "example": "complete"
          },
          "hourly_snapshot_ts": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Latest committed hourly snapshot."
          },
          "built_through": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Every event before this instant is built into the change log and as-of state."
          },
          "finalized_through": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Every event before this instant is final and will not be re-derived."
          }
        }
      },
      "PositionsMeta": {
        "type": "object",
        "description": "Response metadata of the account positions routes. Every instant is RFC 3339 UTC with milliseconds and comes from the data, never the request time.",
        "required": [
          "count",
          "request_id"
        ],
        "properties": {
          "count": {
            "type": "integer",
            "description": "Number of records returned."
          },
          "next_cursor": {
            "type": "string",
            "nullable": true,
            "description": "Signed, opaque cursor for the next page, bound to the request; present exactly when `has_more` is `true`. Pass it back with the same parameters. A market cursor pins its snapshot; if that snapshot is replaced or expires the next page answers 409 `snapshot_advanced`."
          },
          "request_id": {
            "type": "string",
            "format": "uuid",
            "description": "Unique request ID for support."
          },
          "as_of": {
            "type": "string",
            "format": "date-time",
            "description": "Instant the returned state describes: the snapshot tick or hour, or the requested as-of time."
          },
          "snapshot_ts": {
            "type": "string",
            "format": "date-time",
            "description": "Committed snapshot the response was read from. Market routes echo the resolved `hour` here."
          },
          "source": {
            "type": "string",
            "enum": [
              "snapshot",
              "reconstructed",
              "changes",
              "funding"
            ],
            "description": "How the rows were produced: `snapshot` (live or hourly snapshot), `reconstructed` (as-of state between snapshots), or `changes` (change log), or `funding` (wallet funding payments)."
          },
          "quality": {
            "type": "string",
            "description": "Completeness of the snapshot the response was read from: `complete`, `partial`, or `degraded`. Rows carry their own `quality`. On Lighter and Robinhood Chain, snapshots from the latest day, before the venue's daily trade reconcile, can read `degraded` while their rows read `preliminary`; they read `complete` once the reconcile has run."
          },
          "stale": {
            "type": "boolean",
            "description": "True on current reads when the latest snapshot is older than 12 minutes; paired with `notice`."
          },
          "built_through": {
            "type": "string",
            "format": "date-time",
            "description": "Every event before this instant is built into the change log and as-of state. Reads are clamped to it."
          },
          "finalized_through": {
            "type": "string",
            "format": "date-time",
            "description": "Every event before this instant is final and will not be re-derived (Lighter: the trade finalization watermark). Never later than `built_through`."
          },
          "requested_end": {
            "type": "string",
            "format": "date-time",
            "description": "The `end` or `timestamp` the caller asked for, echoed when the read was clamped."
          },
          "clamped_to": {
            "type": "string",
            "format": "date-time",
            "description": "Boundary the read was clamped to (`built_through`). Present only when clamped."
          },
          "totals": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MarketPositionsSummary"
              }
            ],
            "description": "Market listings, first page only: aggregates over the whole filtered result set, not just this page."
          },
          "coverage_from": {
            "type": "string",
            "format": "date-time",
            "description": "Coverage start, present with `notice` when the request falls before coverage or the address has no recorded activity."
          },
          "notice": {
            "type": "string",
            "description": "Human-readable advisory: before coverage, no recorded activity, or a stale snapshot."
          },
          "has_more": {
            "type": "boolean",
            "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."
          },
          "symbol": {
            "type": "string",
            "description": "Per-symbol routes: the canonical public symbol the response describes (for example `BTC`, `xyz:TSLA`, `HYPE-USDC`, `#0`).",
            "example": "BTC"
          },
          "venue": {
            "type": "string",
            "enum": [
              "hyperliquid",
              "hip3",
              "hip4",
              "spot",
              "lighter",
              "rh-lighter"
            ],
            "description": "Per-symbol routes: the venue the response describes.",
            "example": "hyperliquid"
          }
        }
      },
      "ApiResponseWalletPositions": {
        "type": "object",
        "description": "Positions of one wallet or account.",
        "required": [
          "success",
          "data",
          "meta"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/WalletPositions"
          },
          "meta": {
            "$ref": "#/components/schemas/PositionsMeta"
          }
        }
      },
      "ApiResponsePositionArray": {
        "type": "object",
        "description": "Hourly position rows.",
        "required": [
          "success",
          "data",
          "meta"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Position"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/PositionsMeta"
          }
        }
      },
      "ApiResponsePositionChangeArray": {
        "type": "object",
        "description": "Position change log legs in timestamp order.",
        "required": [
          "success",
          "data",
          "meta"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PositionChange"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/PositionsMeta"
          }
        }
      },
      "ApiResponseAccountSummaryArray": {
        "type": "object",
        "description": "Account summaries (current: one per account or HIP-3 dex; history: one per hour).",
        "required": [
          "success",
          "data",
          "meta"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccountSummary"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/PositionsMeta"
          }
        }
      },
      "ApiResponseMarketPositionArray": {
        "type": "object",
        "description": "Open positions in a market or across markets.",
        "required": [
          "success",
          "data",
          "meta"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MarketPosition"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/PositionsMeta"
          }
        }
      },
      "ApiResponseMarketPositionsSummaryArray": {
        "type": "object",
        "description": "Market long/short aggregates: one point now, or one per hour.",
        "required": [
          "success",
          "data",
          "meta"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MarketPositionsSummary"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/PositionsMeta"
          }
        }
      },
      "ApiResponseLighterL1Accounts": {
        "type": "object",
        "description": "Lighter accounts owned by an L1 address.",
        "required": [
          "success",
          "data",
          "meta"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/LighterL1Accounts"
          },
          "meta": {
            "$ref": "#/components/schemas/PositionsMeta"
          }
        }
      },
      "ApiResponsePositionsFreshnessArray": {
        "type": "object",
        "description": "Freshness of every positions product.",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PositionsFreshness"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "TimeInput": {
        "description": "An instant: Unix milliseconds, or an RFC 3339 string such as `2026-01-01T00:00:00Z` (encode a `+` offset as `%2B`). An unparsable value answers 400 `invalid_time_range`.",
        "oneOf": [
          {
            "type": "integer",
            "format": "int64",
            "description": "Unix milliseconds.",
            "example": 1767225600000
          },
          {
            "type": "string",
            "format": "date-time",
            "description": "RFC 3339 instant.",
            "example": "2026-01-01T00:00:00Z"
          }
        ]
      },
      "ErrorCode": {
        "type": "string",
        "description": "Stable, machine-readable error code. Branch on this value, not on the `error` text.\n\n**Contract codes**\n\n| Code | HTTP | Meaning |\n|---|---|---|\n| `invalid_parameter` | 400 | A parameter failed to parse or validate. `param` names it and `valid_values` lists accepted values where the set is fixed. |\n| `invalid_symbol` | 400 | The symbol is not listed on this venue. |\n| `invalid_interval` | 400 | The `interval` (bucket width) is not one this route accepts. |\n| `invalid_cursor` | 400 | The `cursor` is malformed, stale, or was issued for other filters. Restart pagination without a cursor. Trades, liquidations, L2 and L4 diffs, order history and TP/SL routes currently return the first page for a malformed cursor instead. |\n| `invalid_time_range` | 400 | `start` is after `end`, or a time value could not be parsed. |\n| `range_before_coverage` | 400 | The whole requested range ends before the first instant this dataset is served from. |\n| `historical_range_exceeded` | 403 | The requested span is longer than the plan allows in one request or replay. |\n| `historical_depth_exceeded` | 403 | The request reaches further back than the plan's history window. |\n| `unsupported_for_venue` | 404 | The venue does not offer this datatype. The message, `datatype` and `available_on` name where it is served. |\n| `route_not_found` | 404 | No route matches the path or method. `GET /v1/capabilities` lists the routes each venue serves. |\n| `not_found` | 404 | The route exists but the requested resource (for example an incident, endpoint or outcome id) does not. |\n| `unauthorized` | 401 | The API key is missing or invalid. |\n| `forbidden` | 403 | The key is valid but not allowed to make this request, including a dataset its plan does not include: `datatype`, `required_plans` and `upgrade_url` name it. A refused request is not charged. |\n| `insufficient_credits` | 429 | The monthly credit allowance is spent (402 on pay-per-request routes). |\n| `rate_limited` | 429 | Too many requests or concurrent queries. Retry after the interval in the rate-limit headers. |\n| `conflict` | 409 | The request conflicts with the current state of the resource. |\n| `upstream_unavailable` | 503 | A dependency is unavailable or saturated. Retry shortly; the response carries `Retry-After`. |\n| `internal_error` | 500 | An unexpected server error. Quote `request_id` when contacting support. |\n\n**WebSocket only** (sent in `{\"type\":\"error\"}` messages, never by REST)\n\n| Code | Where | Meaning |\n|---|---|---|\n| `endpoint_unsupported` | WebSocket | This WebSocket endpoint does not serve the channel or operation. The message names the endpoint that does. |\n| `slow_consumer` | WebSocket | The connection fell behind a stream and messages were dropped. Re-subscribe, or restart the replay, to resynchronise. |\n\n**Route-specific codes**\n\n| Code | HTTP | Meaning |\n|---|---|---|\n| `positions_unavailable` | 503 | Account positions are temporarily unavailable for this venue. |\n| `reconstruction_unavailable` | 503 | The as-of positions state for this instant cannot be reconstructed right now. |\n| `snapshot_advanced` | 409 | A positions market cursor pinned a snapshot that has since been replaced or expired. Restart pagination. |\n| `pagination_unavailable` | 503 | The next positions page cannot be served right now. Retry the same cursor shortly. |\n| `api_key_limit_reached` | 403 | The account already holds the maximum number of API keys for its plan. |\n| `wallet_requires_plan` | 402 | A wallet-authenticated key needs an active plan for this request. |\n| `wallet_account_required` | 403 | Wallet sign-in needs an existing account linked to the wallet. |\n| `wallet_free_signup_retired` | 410 | Free wallet sign-up is no longer offered. |\n| `account_disabled` | 403 | The account is disabled. |\n| `oauth_not_permitted` | 403 | This route is not available to OAuth access tokens. |\n| `insufficient_scope` | 403 | The OAuth access token lacks the scope this route requires. |\n\n**Legacy names.** Requests without `0xArchive-Version: 2026-10-01` keep the four names that predate the contract; with the header they receive the contract names instead.\n\n| Code | HTTP | Meaning |\n|---|---|---|\n| `invalid_query_params` | 400 | Legacy name of `invalid_parameter` (query parameter), or of `invalid_cursor` when the parameter is `cursor`, sent without the version header. |\n| `invalid_path_params` | 400 | Legacy name of `invalid_parameter` (path parameter), sent without the version header. |\n| `history_window_exceeded` | 403 | Legacy name of `historical_depth_exceeded`, sent without the version header. |\n| `request_range_exceeded` | 403 | Legacy name of `historical_range_exceeded`, sent without the version header. |\n\nTreat any value not listed here as a generic error of the HTTP status.",
        "enum": [
          "invalid_parameter",
          "invalid_symbol",
          "invalid_interval",
          "invalid_cursor",
          "invalid_time_range",
          "range_before_coverage",
          "historical_range_exceeded",
          "historical_depth_exceeded",
          "unsupported_for_venue",
          "route_not_found",
          "not_found",
          "unauthorized",
          "forbidden",
          "insufficient_credits",
          "rate_limited",
          "conflict",
          "upstream_unavailable",
          "internal_error",
          "endpoint_unsupported",
          "slow_consumer",
          "positions_unavailable",
          "reconstruction_unavailable",
          "snapshot_advanced",
          "pagination_unavailable",
          "api_key_limit_reached",
          "wallet_requires_plan",
          "wallet_account_required",
          "wallet_free_signup_retired",
          "account_disabled",
          "oauth_not_permitted",
          "insufficient_scope",
          "invalid_query_params",
          "invalid_path_params",
          "history_window_exceeded",
          "request_range_exceeded"
        ],
        "example": "invalid_parameter"
      },
      "ErrorResponse": {
        "type": "object",
        "description": "Body of every non-2xx JSON response. `code` repeats the HTTP status, `error_code` is the stable machine-readable code (see `ErrorCode`), `error` is a human-readable message, and `request_id` identifies the request for support. Validation failures add `param` and, where the accepted set is fixed, `valid_values`. A 404 for a datatype the venue does not offer (`unsupported_for_venue`) adds `venue`, `datatype` and `available_on`; any other unknown path answers 404 `route_not_found`.",
        "required": [
          "success",
          "code",
          "error_code",
          "error",
          "request_id"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ],
            "description": "Always `false` on an error."
          },
          "code": {
            "type": "integer",
            "description": "HTTP status code.",
            "example": 400
          },
          "error_code": {
            "$ref": "#/components/schemas/ErrorCode"
          },
          "error": {
            "type": "string",
            "description": "Human-readable message. Wording can change; do not parse it."
          },
          "request_id": {
            "type": "string",
            "format": "uuid",
            "description": "Unique request ID for support."
          },
          "param": {
            "type": "string",
            "description": "The parameter that failed validation, when one did.",
            "example": "side"
          },
          "valid_values": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Accepted values of `param`, when the set is fixed.",
            "example": [
              "buy",
              "sell"
            ]
          },
          "venue": {
            "type": "string",
            "description": "`unsupported_for_venue` only: the venue the request asked.",
            "example": "spot"
          },
          "datatype": {
            "type": "string",
            "description": "`unsupported_for_venue` and plan refusals (`forbidden`): the datatype the request asked for, as `GET /v1/capabilities` names it.",
            "example": "order_flow"
          },
          "available_on": {
            "type": "array",
            "description": "`unsupported_for_venue` only: the venues and routes that serve the datatype.",
            "items": {
              "type": "object",
              "required": [
                "venue",
                "route"
              ],
              "properties": {
                "venue": {
                  "type": "string",
                  "example": "hyperliquid"
                },
                "route": {
                  "type": "string",
                  "example": "/v1/hyperliquid/orders/{symbol}/flow"
                }
              }
            }
          },
          "credits_used": {
            "type": "integer",
            "format": "int64",
            "description": "`insufficient_credits` only: credits used this period."
          },
          "credits_limit": {
            "type": "integer",
            "format": "int64",
            "description": "`insufficient_credits` only: the period's credit allowance."
          },
          "max_concurrent": {
            "type": "integer",
            "description": "`rate_limited` concurrency refusals only: simultaneous queries the plan allows."
          },
          "suggestion": {
            "type": "object",
            "description": "Present when the symbol exists on another venue: where to request it instead.",
            "properties": {
              "venue": {
                "type": "string",
                "example": "hip3"
              },
              "symbol": {
                "type": "string",
                "example": "xyz:TSLA"
              },
              "endpoint": {
                "type": "string",
                "example": "/v1/hyperliquid/hip3/trades/xyz:TSLA"
              }
            }
          },
          "required_plans": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Plan refusals (`forbidden`) only: the plans that include the datatype.",
            "example": [
              "build",
              "pro",
              "scale",
              "enterprise"
            ]
          },
          "upgrade_url": {
            "type": "string",
            "format": "uri",
            "description": "Plan refusals (`forbidden`) only: where to change plan.",
            "example": "https://0xarchive.io/pricing"
          }
        }
      },
      "ResponseMeta": {
        "type": "object",
        "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.",
        "properties": {
          "count": {
            "type": "integer",
            "description": "Number of records returned"
          },
          "has_more": {
            "type": "boolean",
            "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."
          },
          "next_cursor": {
            "type": "string",
            "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."
          },
          "request_id": {
            "type": "string",
            "format": "uuid",
            "description": "Unique request ID for support"
          },
          "symbol": {
            "type": "string",
            "description": "Per-symbol routes: the canonical public symbol the response describes (for example `BTC`, `xyz:TSLA`, `HYPE-USDC`, `#0`).",
            "example": "BTC"
          },
          "venue": {
            "type": "string",
            "enum": [
              "hyperliquid",
              "hip3",
              "hip4",
              "spot",
              "lighter",
              "rh-lighter"
            ],
            "description": "Per-symbol routes: the venue the response describes.",
            "example": "hyperliquid"
          },
          "coverage_from": {
            "type": "string",
            "format": "date-time",
            "description": "Earliest coverage for the requested symbol and data type. Present only when the requested window ends before coverage begins."
          },
          "notice": {
            "type": "string",
            "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."
          },
          "finalized_through": {
            "type": "string",
            "format": "date-time",
            "description": "Two-tier datasets (Lighter trades): data at or before this instant is final; later data is preliminary."
          },
          "requested_end": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The `end` the request asked for, echoed when it was clamped to `finalized_through`."
          },
          "clamped_to": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The boundary the request's `end` was clamped to, when clamping occurred."
          },
          "preliminary_row_count": {
            "type": "integer",
            "nullable": true,
            "description": "Number of preliminary rows in this response, on routes that intentionally serve preliminary data (Lighter `/recent`, trade intent)."
          },
          "built_through": {
            "type": "string",
            "format": "date-time",
            "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."
          },
          "as_of": {
            "type": "string",
            "format": "date-time",
            "description": "Positioning: the 5-minute close the records describe, equal to each record's `window_end`."
          }
        },
        "required": [
          "request_id"
        ]
      },
      "Capability": {
        "type": "object",
        "description": "One venue and datatype the API serves: its REST routes, WebSocket channels, live and replay availability, the first served instant, cadence, page limit and accepted intervals.",
        "required": [
          "venue",
          "datatype",
          "rest_routes",
          "ws_channels",
          "live",
          "replay",
          "available_from",
          "cadence",
          "page_limit",
          "intervals",
          "notes"
        ],
        "properties": {
          "venue": {
            "type": "string",
            "enum": [
              "hyperliquid",
              "hip3",
              "hip4",
              "spot",
              "lighter",
              "rh-lighter"
            ],
            "description": "Venue, as `meta.venue` names it.",
            "example": "hyperliquid"
          },
          "datatype": {
            "type": "string",
            "description": "Datatype identifier, stable across venues (for example `l2_orderbook`, `l2_full_depth`, `l4_diffs`, `l4_orders`, `trades`, `candles`, `funding`, `oi`, `liquidations`, `order_flow`, `positions`). New datatypes can be added; treat unknown values as opaque.",
            "example": "trades"
          },
          "rest_routes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "REST route templates that serve the datatype on this venue.",
            "example": [
              "/v1/hyperliquid/trades/{symbol}"
            ]
          },
          "ws_channels": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "WebSocket channels for this venue and datatype. Empty when the datatype is REST only.",
            "example": [
              "trades"
            ]
          },
          "live": {
            "type": "boolean",
            "description": "A WebSocket subscription streams it live.",
            "example": true
          },
          "replay": {
            "type": "boolean",
            "description": "A WebSocket replay serves its history.",
            "example": true
          },
          "available_from": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "First served instant, RFC 3339 UTC with milliseconds. Null where the datatype has no venue-wide floor; `/v1/symbols` gives per-symbol coverage.",
            "example": "2023-04-15T03:31:18.000Z"
          },
          "cadence": {
            "type": "string",
            "enum": [
              "event",
              "snapshot",
              "sample",
              "interval",
              "reference"
            ],
            "description": "`event`: one row per exchange event. `snapshot`: periodic state. `sample`: periodic metric readings. `interval`: buckets of the `interval` parameter. `reference`: catalog data.",
            "example": "event"
          },
          "page_limit": {
            "type": "integer",
            "nullable": true,
            "description": "Largest `limit` one page accepts. Null when the route is not paged.",
            "example": 50000
          },
          "intervals": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Values `interval` accepts. Empty when the datatype has no `interval` parameter.",
            "example": []
          },
          "notes": {
            "type": "string",
            "nullable": true,
            "description": "Venue-specific notes, for example replay behaviour or a policy floor.",
            "example": null
          }
        }
      },
      "ApiResponseCapabilityArray": {
        "type": "object",
        "required": [
          "success",
          "data",
          "meta"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Capability"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "OutlierEnvelopeKeys": {
        "type": "object",
        "description": "Keys added to the default body of the data quality routes and `/v1/status/coverage`: `success` first and `meta.request_id` last. The rest of the body is unchanged. With `0xArchive-Version: 2026-10-01` the body is the standard envelope instead, with the route's own object under `data`.",
        "required": [
          "success",
          "meta"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              true
            ]
          },
          "meta": {
            "type": "object",
            "required": [
              "request_id"
            ],
            "properties": {
              "request_id": {
                "type": "string",
                "format": "uuid",
                "description": "Unique request ID for support."
              }
            }
          }
        },
        "not": {
          "required": [
            "data"
          ]
        }
      },
      "SymbolsEnvelope": {
        "type": "object",
        "description": "`/v1/symbols` with `0xArchive-Version: 2026-10-01`: the standard envelope, with the symbol entries under `data` and their number in `meta.count`.",
        "required": [
          "success",
          "data",
          "meta"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              true
            ]
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SymbolEntry"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "LighterLiquidationVolume": {
        "type": "object",
        "description": "One Lighter liquidation volume bucket. Lighter and Lighter on Robinhood Chain report the total only (no long and short split).",
        "required": [
          "symbol",
          "timestamp",
          "total_usd",
          "count"
        ],
        "properties": {
          "symbol": {
            "type": "string",
            "example": "BTC"
          },
          "timestamp": {
            "description": "Bucket start (UTC). By default an integer, Unix milliseconds. With `0xArchive-Version: 2026-10-01` an RFC 3339 UTC string with millisecond precision, and the integer moves to `timestamp_ms`.",
            "oneOf": [
              {
                "type": "integer",
                "format": "int64",
                "description": "Default: Unix milliseconds.",
                "example": 1767225600000
              },
              {
                "type": "string",
                "format": "date-time",
                "description": "Version 2026-10-01: RFC 3339 UTC.",
                "example": "2026-01-01T00:00:00.000Z"
              }
            ]
          },
          "timestamp_ms": {
            "type": "integer",
            "format": "int64",
            "description": "With `0xArchive-Version: 2026-10-01` only: `timestamp` as Unix milliseconds.",
            "example": 1767225600000
          },
          "total_usd": {
            "type": "number",
            "format": "double",
            "description": "Liquidated notional in the bucket, USD.",
            "example": 125000.5
          },
          "count": {
            "type": "integer",
            "format": "int64",
            "description": "Liquidations in the bucket.",
            "example": 12
          }
        }
      },
      "ApiResponseLighterLiquidationVolumeArray": {
        "type": "object",
        "required": [
          "success",
          "data",
          "meta"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LighterLiquidationVolume"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "WebhookDeliveryEnvelope": {
        "type": "object",
        "description": "Body of a webhook delivery to a `json` endpoint. The same `id` is sent on every retry and redelivery of the event; use it (or the `0xa-event-id` header) to deduplicate. Delivery is at least once.",
        "required": [
          "id",
          "type",
          "schema_version",
          "observed_at",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Event identifier, stable across retries and redeliveries. Equals the `0xa-event-id` header."
          },
          "type": {
            "type": "string",
            "description": "Event type from the catalog. Equals the `0xa-event-type` header.",
            "example": "market.liquidation"
          },
          "schema_version": {
            "type": "integer",
            "description": "Version of the `data` shape for this event type.",
            "example": 1
          },
          "observed_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event was detected."
          },
          "late_ms": {
            "type": "integer",
            "format": "int64",
            "nullable": true,
            "description": "How long after the underlying occurrence the event was detected, in milliseconds. Null when the occurrence carries no timestamp; absent on test, export and some operational events."
          },
          "late": {
            "type": "boolean",
            "description": "True when `late_ms` exceeds ten minutes. Absent where `late_ms` is absent."
          },
          "data": {
            "type": "object",
            "additionalProperties": true,
            "description": "Event payload. Its fields are the metrics the catalog declares for the event type."
          }
        }
      },
      "TwapRecord": {
        "type": "object",
        "description": "One TWAP order status event.",
        "required": [
          "timestamp",
          "block_time",
          "block_number",
          "twap_id",
          "status",
          "coin",
          "user_address",
          "side",
          "size",
          "executed_size",
          "executed_notional",
          "minutes",
          "reduce_only",
          "randomize",
          "started_at"
        ],
        "properties": {
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "When the status event happened (RFC 3339, UTC)."
          },
          "block_time": {
            "type": "string",
            "format": "date-time",
            "description": "Time of the block that carried the event (RFC 3339, UTC)."
          },
          "block_number": {
            "type": "integer",
            "format": "int64",
            "description": "Hyperliquid block number."
          },
          "twap_id": {
            "type": "integer",
            "format": "int64",
            "description": "TWAP order ID. Every event of one TWAP carries the same ID."
          },
          "status": {
            "type": "string",
            "description": "`activated`, `waitingForTrigger`, `finished`, `terminated`, `stopped`, or `error`.",
            "example": "activated"
          },
          "coin": {
            "type": "string",
            "description": "Market symbol.",
            "example": "HYPE"
          },
          "user_address": {
            "type": "string",
            "description": "Wallet that placed the TWAP, lowercase."
          },
          "side": {
            "type": "string",
            "enum": [
              "B",
              "A"
            ],
            "description": "`B` (buy) or `A` (sell)."
          },
          "size": {
            "type": "number",
            "description": "Total TWAP size, in base units."
          },
          "executed_size": {
            "type": "number",
            "description": "Size filled so far, in base units."
          },
          "executed_notional": {
            "type": "number",
            "description": "Notional filled so far, in quote units."
          },
          "minutes": {
            "type": "integer",
            "description": "TWAP duration in minutes."
          },
          "reduce_only": {
            "type": "boolean",
            "description": "True for a reduce-only TWAP."
          },
          "randomize": {
            "type": "boolean",
            "description": "True when slice timing is randomized."
          },
          "started_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the TWAP started (RFC 3339, UTC)."
          },
          "trigger_px": {
            "type": "number",
            "description": "Activation trigger price. Omitted for a TWAP without a trigger."
          },
          "trigger_above": {
            "type": "boolean",
            "description": "True when the TWAP activates at or above `trigger_px`. Omitted for a TWAP without a trigger."
          },
          "stop_px": {
            "type": "number",
            "description": "Price bound that ends the TWAP: the highest price for a buy, the lowest for a sell. Omitted when not set."
          }
        }
      },
      "ApiResponseTwapArray": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TwapRecord"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ApiMeta"
          }
        }
      },
      "WalletProfileMetrics": {
        "type": "object",
        "description": "Behavioral metrics for one wallet. Ratios run from 0 to 1 unless noted; USD values use fill or order price times size.",
        "properties": {
          "total_orders": {
            "type": "integer",
            "description": "Orders placed."
          },
          "cancel_rate": {
            "type": "number",
            "description": "Share of orders canceled."
          },
          "fill_rate": {
            "type": "number",
            "description": "Share of orders filled."
          },
          "order_to_trade_ratio": {
            "type": "number",
            "description": "Orders placed per fill (0 when there are no fills)."
          },
          "ioc_ratio": {
            "type": "number",
            "description": "Share of orders that are immediate-or-cancel."
          },
          "post_only_ratio": {
            "type": "number",
            "description": "Share of orders that are post-only."
          },
          "tpsl_ratio": {
            "type": "number",
            "description": "Share of orders that are position TP/SL orders."
          },
          "trigger_order_ratio": {
            "type": "number",
            "description": "Share of orders that are trigger orders."
          },
          "unique_coins_traded": {
            "type": "integer",
            "description": "Markets with orders."
          },
          "uses_tpsl": {
            "type": "boolean",
            "description": "True when the wallet placed any position TP/SL order."
          },
          "uses_builder": {
            "type": "boolean",
            "description": "True when any order went through a builder."
          },
          "top_builder": {
            "type": "string",
            "description": "Builder address with the most orders. Omitted when no order used a builder."
          },
          "avg_order_size_usd": {
            "type": "number",
            "description": "Average order notional in USD."
          },
          "max_order_size_usd": {
            "type": "number",
            "description": "Largest order notional in USD."
          },
          "median_cancel_speed_ms": {
            "type": "number",
            "description": "Median time from placement to cancel, in milliseconds."
          },
          "active_hours": {
            "type": "integer",
            "description": "Hours with at least one order."
          },
          "total_fills": {
            "type": "integer",
            "description": "Fills."
          },
          "total_volume_usd": {
            "type": "number",
            "description": "Fill volume in USD."
          },
          "maker_ratio": {
            "type": "number",
            "description": "Share of fill volume that was maker volume."
          },
          "long_short_ratio": {
            "type": "number",
            "description": "Buy volume divided by sell volume (0 when there is no sell volume). Not bounded by 1."
          },
          "buy_volume_usd": {
            "type": "number",
            "description": "Buy fill volume in USD."
          },
          "sell_volume_usd": {
            "type": "number",
            "description": "Sell fill volume in USD."
          },
          "total_fees_usd": {
            "type": "number",
            "description": "Fees paid, net of rebates."
          },
          "realized_pnl_usd": {
            "type": "number",
            "description": "Realized PnL from closing fills."
          },
          "liquidation_count": {
            "type": "integer",
            "description": "Fills that were liquidations."
          },
          "max_single_fill_usd": {
            "type": "number",
            "description": "Largest single fill in USD."
          },
          "unique_fill_coins": {
            "type": "integer",
            "description": "Markets with fills."
          },
          "uses_twap": {
            "type": "boolean",
            "description": "True when any fill came from a TWAP."
          },
          "twap_fill_ratio": {
            "type": "number",
            "description": "Share of fills that came from a TWAP."
          },
          "uses_cloid": {
            "type": "boolean",
            "description": "True when any fill carried a client order ID."
          },
          "cloid_ratio": {
            "type": "number",
            "description": "Share of fills that carried a client order ID."
          },
          "uses_priority_gas": {
            "type": "boolean",
            "description": "True when any fill paid priority gas."
          },
          "total_priority_gas_paid": {
            "type": "number",
            "description": "Priority gas paid."
          },
          "total_builder_fees_paid": {
            "type": "number",
            "description": "Builder and deployer fees paid."
          }
        }
      },
      "WalletProfile": {
        "type": "object",
        "properties": {
          "address": {
            "type": "string",
            "description": "Wallet address, lowercase."
          },
          "metrics": {
            "$ref": "#/components/schemas/WalletProfileMetrics"
          },
          "period": {
            "type": "string",
            "description": "Lookback window that was applied, for example `24h`.",
            "example": "24h"
          }
        }
      },
      "ApiResponseWalletProfile": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/WalletProfile"
          },
          "meta": {
            "$ref": "#/components/schemas/ApiMeta"
          }
        }
      },
      "FeedbackSubmissionRequest": {
        "type": "object",
        "description": "A product feedback request. Anonymous submissions are allowed. Account identity is derived only from a validated credential, never from request fields. Optional structured context fields are flat on the request and share a 2,048-byte serialized limit.",
        "required": [
          "type",
          "message"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "bug",
              "feature",
              "question",
              "other"
            ],
            "description": "Feedback type. Security reports use type=other with category=security."
          },
          "category": {
            "type": "string",
            "enum": [
              "support",
              "security"
            ],
            "default": "support",
            "description": "Optional feedback category. Defaults to support."
          },
          "message": {
            "type": "string",
            "minLength": 1,
            "maxLength": 5000,
            "description": "Required nonblank message, limited to 5,000 UTF-8 bytes. Include any free-text reproduction details in this field; there is no separate free-text context property."
          },
          "email": {
            "type": "string",
            "format": "email",
            "maxLength": 254,
            "description": "Optional contact email for anonymous submissions. If a credential authenticates the request, this field is ignored and the account email is used; this field never establishes account identity."
          },
          "surface": {
            "type": "string",
            "description": "Optional surface identifier (maximum 64 UTF-8 bytes)."
          },
          "route": {
            "type": "string",
            "description": "Optional route identifier (maximum 512 UTF-8 bytes)."
          },
          "venue": {
            "type": "string",
            "description": "Optional venue identifier (maximum 64 UTF-8 bytes)."
          },
          "market_family": {
            "type": "string",
            "description": "Optional market-family identifier (maximum 64 UTF-8 bytes)."
          },
          "symbol": {
            "type": "string",
            "description": "Optional symbol identifier (maximum 128 UTF-8 bytes)."
          },
          "data_type": {
            "type": "string",
            "description": "Optional data-type identifier (maximum 64 UTF-8 bytes)."
          },
          "start": {
            "type": "integer",
            "format": "int64",
            "minimum": 0,
            "maximum": 253402300799999,
            "description": "Optional start timestamp in Unix milliseconds. When both start and end are supplied, start must not exceed end."
          },
          "end": {
            "type": "integer",
            "format": "int64",
            "minimum": 0,
            "maximum": 253402300799999,
            "description": "Optional end timestamp in Unix milliseconds. When both start and end are supplied, start must not exceed end."
          },
          "request_id": {
            "type": "string",
            "description": "Optional request identifier (maximum 128 UTF-8 bytes)."
          },
          "error_code": {
            "type": "string",
            "description": "Optional error-code identifier (maximum 128 UTF-8 bytes)."
          }
        }
      },
      "FeedbackSubmissionResponse": {
        "type": "object",
        "description": "Receipt returned when feedback has been accepted. The standard response envelope, plus the legacy `message` field.",
        "required": [
          "success",
          "data",
          "meta",
          "message"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              true
            ],
            "example": true
          },
          "data": {
            "type": "object",
            "required": [
              "id",
              "status"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "description": "Feedback receipt identifier. Quote it if you contact support about this report.",
                "example": "53f2a55a-72b9-43e6-a182-f266bc47e302"
              },
              "status": {
                "type": "string",
                "enum": [
                  "received"
                ],
                "example": "received"
              }
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          },
          "message": {
            "type": "string",
            "description": "Human-readable acknowledgement kept from the earlier response. It does not promise a reply.",
            "example": "Thank you for your feedback!"
          }
        }
      },
      "UsdcFlowEvent": {
        "type": "object",
        "description": "One USDC flow into or out of HyperCore.",
        "required": [
          "id",
          "timestamp",
          "timestamp_ms",
          "kind",
          "amount_usd",
          "fee_usd",
          "user",
          "tx_hash",
          "block_number",
          "event_index"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "The event's identity, `block_number:event_index`. Deduplicate and join pages on it: `(timestamp, tx_hash)` is not unique, because a bridge batch finalizes up to 10 withdrawals under one hash and one millisecond.",
            "example": "1194932733:0"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Execution time, RFC 3339 UTC with milliseconds.",
            "example": "2026-10-24T00:35:30.560Z"
          },
          "timestamp_ms": {
            "type": "integer",
            "format": "int64",
            "description": "`timestamp` as Unix milliseconds.",
            "example": 1792802130560
          },
          "kind": {
            "type": "string",
            "enum": [
              "deposit",
              "withdraw",
              "evm_in",
              "evm_out"
            ],
            "description": "`deposit` and `withdraw`: the Arbitrum bridge. `evm_in` and `evm_out`: USDC from and to HyperEVM, which is also how CCTP moves USDC in and out of HyperCore.",
            "example": "evm_out"
          },
          "amount_usd": {
            "type": "number",
            "format": "double",
            "description": "USDC moved, zero or more; `kind` gives the direction.",
            "example": 7000000.0
          },
          "fee_usd": {
            "type": "number",
            "format": "double",
            "description": "The withdrawal fee (1 USDC) or a transfer's fee charged in USDC, else 0.",
            "example": 0.0
          },
          "user": {
            "type": "string",
            "nullable": true,
            "description": "The HyperCore account the USDC entered or left.",
            "example": "0x7fdafde5cfb5465924316eced2d3715494c517d1"
          },
          "tx_hash": {
            "type": "string",
            "nullable": true,
            "description": "The HyperCore transaction hash.",
            "example": "0x429c669731c25129441604473939fd0202a3007cccc56ffbe66511e9f0c62b13"
          },
          "block_number": {
            "type": "integer",
            "format": "int64",
            "description": "HyperCore block number.",
            "example": 1194932733
          },
          "event_index": {
            "type": "integer",
            "description": "Position of the event within its block.",
            "example": 0
          }
        }
      },
      "ApiResponseUsdcFlowEventArray": {
        "type": "object",
        "description": "API response containing USDC flow events.",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UsdcFlowEvent"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "UsdcFlowVolumeBucket": {
        "type": "object",
        "description": "USDC flow totals for one bucket. Buckets with no flows are returned with zeros.",
        "required": [
          "timestamp",
          "timestamp_ms",
          "deposit_usd",
          "deposit_count",
          "withdraw_usd",
          "withdraw_count",
          "evm_in_usd",
          "evm_in_count",
          "evm_out_usd",
          "evm_out_count",
          "net_usd"
        ],
        "properties": {
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Bucket open time, RFC 3339 UTC.",
            "example": "2026-10-24T00:00:00.000Z"
          },
          "timestamp_ms": {
            "type": "integer",
            "format": "int64",
            "description": "`timestamp` as Unix milliseconds.",
            "example": 1792800000000
          },
          "deposit_usd": {
            "type": "number",
            "format": "double",
            "description": "USD of Arbitrum bridge deposits in the bucket, to the cent.",
            "example": 469653.6
          },
          "deposit_count": {
            "type": "integer",
            "format": "int64",
            "description": "Number of Arbitrum bridge deposits in the bucket.",
            "example": 54
          },
          "withdraw_usd": {
            "type": "number",
            "format": "double",
            "description": "USD of Arbitrum bridge withdrawals in the bucket, to the cent.",
            "example": 1844442.5
          },
          "withdraw_count": {
            "type": "integer",
            "format": "int64",
            "description": "Number of Arbitrum bridge withdrawals in the bucket.",
            "example": 48
          },
          "evm_in_usd": {
            "type": "number",
            "format": "double",
            "description": "USD of transfers from HyperEVM in the bucket, to the cent.",
            "example": 1628294.58
          },
          "evm_in_count": {
            "type": "integer",
            "format": "int64",
            "description": "Number of transfers from HyperEVM in the bucket.",
            "example": 363
          },
          "evm_out_usd": {
            "type": "number",
            "format": "double",
            "description": "USD of transfers to HyperEVM in the bucket, to the cent.",
            "example": 8417715.29
          },
          "evm_out_count": {
            "type": "integer",
            "format": "int64",
            "description": "Number of transfers to HyperEVM in the bucket.",
            "example": 253
          },
          "net_usd": {
            "type": "number",
            "format": "double",
            "description": "Deposits and HyperEVM inflows less withdrawals and HyperEVM outflows, to the cent.",
            "example": -8164209.61
          }
        }
      },
      "ApiResponseUsdcFlowVolumeArray": {
        "type": "object",
        "description": "API response containing USDC flow totals per bucket.",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UsdcFlowVolumeBucket"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "TradeIntentBucket": {
        "type": "object",
        "description": "One bucket of trade intent for one market. Both sides of every trade are counted, so the eight intent buckets plus `mm_usd` sum to twice the bucket's traded notional, less delisting settlements, which are in no bucket. Winners and losers are aggregates over the market's trailing 72 hours: no wallet is named.",
        "required": [
          "timestamp",
          "timestamp_ms",
          "close",
          "price_source",
          "open_long",
          "open_short",
          "tp_long",
          "tp_short",
          "stop_long",
          "stop_short",
          "flip_ls",
          "flip_sl",
          "mm_usd",
          "winners_flow",
          "losers_flow",
          "winners_net",
          "winners_gross",
          "losers_net",
          "losers_gross",
          "winners_count",
          "losers_count",
          "quality",
          "is_final",
          "preliminary",
          "preliminary_from",
          "preliminary_from_ms",
          "method"
        ],
        "properties": {
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Bucket open time, RFC 3339 UTC.",
            "example": "2026-10-23T00:00:00.000Z"
          },
          "timestamp_ms": {
            "type": "integer",
            "format": "int64",
            "description": "`timestamp` as Unix milliseconds.",
            "example": 1792713600000
          },
          "close": {
            "type": "number",
            "format": "double",
            "nullable": true,
            "description": "The price the bucket's end is marked at. Null on second intervals.",
            "example": 81448.0
          },
          "price_source": {
            "type": "string",
            "nullable": true,
            "enum": [
              "mark",
              "oracle",
              "carried",
              "trade"
            ],
            "description": "Where `close` comes from: `mark`, `oracle` (a HIP-3 market without a stored mark), `carried` (the last of those when none is recent) or `trade`. Null on second intervals.",
            "example": "mark"
          },
          "open_long": {
            "type": "number",
            "format": "double",
            "description": "USD bought to open or increase a long. To the cent.",
            "example": 50638693.18
          },
          "open_short": {
            "type": "number",
            "format": "double",
            "description": "USD sold to open or increase a short. To the cent.",
            "example": 41296459.21
          },
          "tp_long": {
            "type": "number",
            "format": "double",
            "description": "USD sold to reduce or close a long at a profit (closed PnL above zero, not forced). To the cent.",
            "example": 8084342.05
          },
          "tp_short": {
            "type": "number",
            "format": "double",
            "description": "USD bought to reduce or close a short at a profit (closed PnL above zero, not forced). To the cent.",
            "example": 29240753.02
          },
          "stop_long": {
            "type": "number",
            "format": "double",
            "description": "USD sold to reduce or close a long at a loss or break-even, or by liquidation or auto-deleveraging. To the cent.",
            "example": 30236676.09
          },
          "stop_short": {
            "type": "number",
            "format": "double",
            "description": "USD bought to reduce or close a short at a loss or break-even, or by liquidation or auto-deleveraging. To the cent.",
            "example": 12304052.04
          },
          "flip_ls": {
            "type": "number",
            "format": "double",
            "description": "USD sold that took a position from long to short in one fill. To the cent.",
            "example": 683012.29
          },
          "flip_sl": {
            "type": "number",
            "format": "double",
            "description": "USD bought that took a position from short to long in one fill. To the cent.",
            "example": 334456.02
          },
          "mm_usd": {
            "type": "number",
            "format": "double",
            "description": "USD traded by wallets classified as market makers, counted here instead of in an intent bucket. To the cent.",
            "example": 84960401.5
          },
          "winners_flow": {
            "type": "number",
            "format": "double",
            "description": "What the market's winners bought less what they sold in the bucket, in USD, weighted as the cohort stood at the previous hour's close. Null when `quality` is `quarantined`.",
            "example": -2861558.86,
            "nullable": true
          },
          "losers_flow": {
            "type": "number",
            "format": "double",
            "description": "The same for the market's losers.",
            "example": -607408.26,
            "nullable": true
          },
          "winners_net": {
            "type": "number",
            "format": "double",
            "description": "The winners' net position in USD (long positive) at the bucket's end. Null on second intervals and when `quality` is `quarantined`.",
            "example": -77011655.75,
            "nullable": true
          },
          "winners_gross": {
            "type": "number",
            "format": "double",
            "description": "The winners' gross position in USD at the bucket's end. Null on second intervals and when `quality` is `quarantined`.",
            "example": 121926882.58,
            "nullable": true
          },
          "losers_net": {
            "type": "number",
            "format": "double",
            "description": "The losers' net position in USD at the bucket's end. Null on second intervals and when `quality` is `quarantined`.",
            "example": 46895101.67,
            "nullable": true
          },
          "losers_gross": {
            "type": "number",
            "format": "double",
            "description": "The losers' gross position in USD at the bucket's end. Null on second intervals and when `quality` is `quarantined`.",
            "example": 155965344.67,
            "nullable": true
          },
          "winners_count": {
            "type": "integer",
            "nullable": true,
            "description": "Winners counted at full weight. Null on second intervals and when `quality` is `quarantined`.",
            "example": 17
          },
          "losers_count": {
            "type": "integer",
            "nullable": true,
            "description": "Losers counted at full weight. Null on second intervals and when `quality` is `quarantined`.",
            "example": 16
          },
          "quality": {
            "type": "string",
            "enum": [
              "ok",
              "partial",
              "quarantined"
            ],
            "description": "`ok`; `partial` while the method's 7-day lookbacks were not yet full; `quarantined` when an input of the bucket failed a continuity check, so the winners' and losers' figures are null. Intent buckets and `mm_usd` are always served.",
            "example": "ok"
          },
          "is_final": {
            "type": "boolean",
            "description": "The bucket is complete and will not change.",
            "example": true
          },
          "preliminary": {
            "type": "boolean",
            "description": "The bucket holds figures computed live after the archive's end. They are replaced by the archived figures once those hours are built.",
            "example": false
          },
          "preliminary_from": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Where the bucket's preliminary figures begin: inside the bucket, or at its open when the whole bucket is preliminary. Null when `preliminary` is false.",
            "example": null
          },
          "preliminary_from_ms": {
            "type": "integer",
            "format": "int64",
            "nullable": true,
            "description": "`preliminary_from` as Unix milliseconds.",
            "example": null
          },
          "method": {
            "type": "string",
            "description": "Version of the method the bucket was computed with: `who/3`, or `who/2` on older rows.",
            "example": "who/3"
          }
        }
      },
      "ApiResponseTradeIntentBucketArray": {
        "type": "object",
        "description": "API response containing trade intent buckets. `meta` carries `symbol`, `venue`, `built_through`, and `preliminary_row_count` when preliminary buckets are present.",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TradeIntentBucket"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "MaBreadthCounts": {
        "type": "object",
        "description": "The counts a moving-average breadth reading is made from. `above + at + below = eligible`; `eligible + excluded_stale_price + excluded_short_history = candidates`.",
        "required": [
          "candidates",
          "eligible",
          "above",
          "at",
          "below",
          "excluded_stale_price",
          "excluded_short_history"
        ],
        "properties": {
          "candidates": {
            "type": "integer",
            "description": "Every perp the venue has listed, from its first one-minute candle on, delisted perps included.",
            "example": 221
          },
          "eligible": {
            "type": "integer",
            "description": "Candidates with a recent price and n days of history: the denominator of `value_pct`.",
            "example": 177
          },
          "above": {
            "type": "integer",
            "description": "Eligible perps whose price is above their n-day moving average.",
            "example": 61
          },
          "at": {
            "type": "integer",
            "description": "Eligible perps whose price equals their n-day moving average.",
            "example": 0
          },
          "below": {
            "type": "integer",
            "description": "Eligible perps whose price is below their n-day moving average.",
            "example": 116
          },
          "excluded_stale_price": {
            "type": "integer",
            "description": "Candidates with no one-minute close in the 24 hours before the reading. A delisted perp is counted here from 24 hours after its last trade.",
            "example": 43
          },
          "excluded_short_history": {
            "type": "integer",
            "description": "Candidates younger than n UTC days before the reading's day.",
            "example": 1
          }
        }
      },
      "MaBreadthDistance": {
        "type": "object",
        "description": "Quartiles of price / average - 1 over the eligible perps, to 6 decimals, linear interpolation. Each is null when nothing is eligible, never 0.",
        "required": [
          "p25",
          "median",
          "p75"
        ],
        "properties": {
          "p25": {
            "type": "number",
            "format": "double",
            "nullable": true,
            "example": -0.09803
          },
          "median": {
            "type": "number",
            "format": "double",
            "nullable": true,
            "example": -0.027606
          },
          "p75": {
            "type": "number",
            "format": "double",
            "nullable": true,
            "example": 0.036555
          }
        }
      },
      "MaBreadthReading": {
        "type": "object",
        "description": "One moving-average breadth reading: the last reading of a bucket.",
        "required": [
          "timestamp",
          "timestamp_ms",
          "calculated_at",
          "calculated_at_ms",
          "n",
          "method",
          "value_pct",
          "coverage_ratio",
          "counts",
          "distance",
          "is_final"
        ],
        "properties": {
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Bucket open time, RFC 3339 UTC.",
            "example": "2026-10-20T00:00:00.000Z"
          },
          "timestamp_ms": {
            "type": "integer",
            "format": "int64",
            "description": "`timestamp` as Unix milliseconds.",
            "example": 1792454400000
          },
          "calculated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The reading's instant: the bucket's end, or for the bucket still forming the newest settled minute, about 4 minutes before now.",
            "example": "2026-10-21T00:00:00.000Z"
          },
          "calculated_at_ms": {
            "type": "integer",
            "format": "int64",
            "description": "`calculated_at` as Unix milliseconds.",
            "example": 1792540800000
          },
          "n": {
            "type": "integer",
            "enum": [
              5,
              20,
              50,
              200
            ],
            "description": "The moving average's length in days.",
            "example": 50
          },
          "method": {
            "type": "string",
            "description": "Version of the method: `ma-breadth/1`.",
            "example": "ma-breadth/1"
          },
          "value_pct": {
            "type": "number",
            "format": "double",
            "nullable": true,
            "description": "100 * above / eligible, to 4 decimals. Null when nothing is eligible, never 0.",
            "example": 34.4633
          },
          "coverage_ratio": {
            "type": "number",
            "format": "double",
            "minimum": 0,
            "maximum": 1,
            "description": "eligible / candidates, to 4 decimals. It depends on n and falls as perps delist: it is not a data-quality measure and is not comparable with breadth above session VWAP.",
            "example": 0.8009
          },
          "counts": {
            "$ref": "#/components/schemas/MaBreadthCounts"
          },
          "distance": {
            "$ref": "#/components/schemas/MaBreadthDistance"
          },
          "is_final": {
            "type": "boolean",
            "description": "Every candle the reading uses is final. A final reading changes only if the candles it uses are rebuilt.",
            "example": true
          }
        }
      },
      "ApiResponseMaBreadthReading": {
        "type": "object",
        "description": "API response containing the newest moving-average breadth reading.",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/MaBreadthReading"
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "ApiResponseMaBreadthReadingArray": {
        "type": "object",
        "description": "API response containing moving-average breadth readings, one per bucket.",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MaBreadthReading"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "PositioningRecord": {
        "type": "object",
        "description": "One listed perp over the trailing window.",
        "required": [
          "symbol",
          "window",
          "window_start",
          "window_start_ms",
          "window_end",
          "window_end_ms",
          "oi_start",
          "oi_end",
          "mark_start",
          "mark_end",
          "oi_buckets",
          "buy_usd",
          "sell_usd",
          "liq_long_usd",
          "liq_short_usd",
          "liq_long_count",
          "liq_short_count",
          "typical_price",
          "typical_oi",
          "typical_flow",
          "typical_windows"
        ],
        "properties": {
          "symbol": {
            "type": "string",
            "description": "The market's symbol.",
            "example": "BTC"
          },
          "window": {
            "type": "string",
            "enum": [
              "1h",
              "4h",
              "24h"
            ],
            "description": "The requested window.",
            "example": "4h"
          },
          "window_start": {
            "type": "string",
            "format": "date-time",
            "description": "Start of the window, inclusive.",
            "example": "2026-11-04T16:00:00.000Z"
          },
          "window_start_ms": {
            "type": "integer",
            "format": "int64",
            "description": "`window_start` as Unix milliseconds.",
            "example": 1793808000000
          },
          "window_end": {
            "type": "string",
            "format": "date-time",
            "description": "End of the window, exclusive: the 5-minute close the cross-section is as of. Equal to `meta.as_of`.",
            "example": "2026-11-04T20:00:00.000Z"
          },
          "window_end_ms": {
            "type": "integer",
            "format": "int64",
            "description": "`window_end` as Unix milliseconds.",
            "example": 1793822400000
          },
          "oi_start": {
            "type": "number",
            "format": "double",
            "nullable": true,
            "description": "Open interest in contracts at the 5-minute reading before the window. Null when that bucket has no reading, never 0.",
            "example": 41558.2733
          },
          "oi_end": {
            "type": "number",
            "format": "double",
            "nullable": true,
            "description": "Open interest in contracts at the window's last 5-minute reading. Null when that bucket has no reading.",
            "example": 39592.93574
          },
          "mark_start": {
            "type": "number",
            "format": "double",
            "nullable": true,
            "description": "Mark price at the 5-minute reading before the window. Null when that bucket has no reading.",
            "example": 80139.0
          },
          "mark_end": {
            "type": "number",
            "format": "double",
            "nullable": true,
            "description": "Mark price at the window's last 5-minute reading. Null when that bucket has no reading.",
            "example": 80010.0
          },
          "oi_buckets": {
            "type": "integer",
            "description": "Number of 5-minute open interest readings inside the window.",
            "example": 48
          },
          "buy_usd": {
            "type": "number",
            "format": "double",
            "description": "Taker buy notional in the window, USD to the cent. 0 means none.",
            "example": 426153898.11
          },
          "sell_usd": {
            "type": "number",
            "format": "double",
            "description": "Taker sell notional in the window, USD to the cent. 0 means none.",
            "example": 452128639.73
          },
          "liq_long_usd": {
            "type": "number",
            "format": "double",
            "description": "Notional of long positions liquidated in the window, USD to the cent.",
            "example": 132411.14
          },
          "liq_short_usd": {
            "type": "number",
            "format": "double",
            "description": "Notional of short positions liquidated in the window, USD to the cent.",
            "example": 5186.43
          },
          "liq_long_count": {
            "type": "integer",
            "format": "int64",
            "description": "Long liquidations in the window.",
            "example": 35
          },
          "liq_short_count": {
            "type": "integer",
            "format": "int64",
            "description": "Short liquidations in the window.",
            "example": 1
          },
          "typical_price": {
            "type": "number",
            "format": "double",
            "nullable": true,
            "description": "Median absolute relative change of the mark over every window of this length in the last 2,000 five-minute buckets. Null under 288 counted windows.",
            "example": 0.003597216644913026
          },
          "typical_oi": {
            "type": "number",
            "format": "double",
            "nullable": true,
            "description": "Median absolute relative change of open interest over the same windows. Null under 288 counted windows.",
            "example": 0.010328192376292733
          },
          "typical_flow": {
            "type": "number",
            "format": "double",
            "nullable": true,
            "description": "Median absolute taker imbalance, (buy - sell) / (buy + sell), over the same windows. Null under 288 counted windows.",
            "example": 0.10512875847481765
          },
          "typical_windows": {
            "type": "integer",
            "description": "Windows counted for the `typical_*` figures.",
            "example": 1952
          }
        }
      },
      "ApiResponsePositioningArray": {
        "type": "object",
        "description": "API response containing one positioning record per listed perp, sorted by symbol. `meta.as_of` is the 5-minute close the records describe.",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PositioningRecord"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        }
      },
      "FundingPayment": {
        "type": "object",
        "description": "One hourly funding settlement of one position of a wallet.",
        "required": [
          "timestamp",
          "symbol",
          "coin",
          "position_size",
          "funding_rate",
          "funding_amount",
          "direction"
        ],
        "properties": {
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Settlement time (UTC).",
            "example": "2026-11-06T00:00:00.025Z"
          },
          "symbol": {
            "type": "string",
            "description": "Market symbol (HIP-3: `dex:COIN`).",
            "example": "BTC"
          },
          "coin": {
            "type": "string",
            "description": "Alias of `symbol`.",
            "example": "BTC"
          },
          "dex": {
            "type": "string",
            "description": "HIP-3 only: dex of the market.",
            "example": "xyz"
          },
          "position_size": {
            "type": "string",
            "nullable": true,
            "description": "Signed position size at settlement, in base units. Negative is short.",
            "example": "-2319.60124"
          },
          "funding_rate": {
            "type": "string",
            "nullable": true,
            "description": "Hourly funding rate that settled, as a fraction (up to 10 decimals).",
            "example": "0.0000125"
          },
          "funding_amount": {
            "type": "string",
            "nullable": true,
            "description": "The wallet's funding cash flow in the market's collateral, 6 decimals: positive when received, negative when paid.",
            "example": "2225.541409"
          },
          "direction": {
            "type": "string",
            "enum": [
              "received",
              "paid",
              "none"
            ],
            "description": "`received` or `paid`, following the sign of `funding_amount`; `none` when the payment rounds to zero.",
            "example": "received"
          },
          "block_number": {
            "type": "integer",
            "format": "int64",
            "description": "Hyperliquid block of the settlement. Omitted when unknown.",
            "example": 1206818191
          }
        }
      },
      "ApiResponseFundingPaymentArray": {
        "type": "object",
        "description": "Funding payments ordered by timestamp, then symbol.",
        "required": [
          "success",
          "data",
          "meta"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FundingPayment"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/PositionsMeta"
          }
        }
      }
    },
    "responses": {
      "BadRequest": {
        "description": "Invalid request: a parameter, symbol, interval, cursor or time range failed validation. See `error_code`.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "examples": {
              "invalid_parameter": {
                "value": {
                  "success": false,
                  "code": 400,
                  "error_code": "invalid_parameter",
                  "error": "Invalid side 'up'. Use buy or sell.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05",
                  "param": "side",
                  "valid_values": [
                    "buy",
                    "sell"
                  ]
                }
              },
              "invalid_symbol": {
                "value": {
                  "success": false,
                  "code": 400,
                  "error_code": "invalid_symbol",
                  "error": "The symbol 'ZZZ' does not exist. Please see /v1/hyperliquid/instruments for available symbols.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05",
                  "param": "symbol"
                }
              },
              "invalid_time_range": {
                "value": {
                  "success": false,
                  "code": 400,
                  "error_code": "invalid_time_range",
                  "error": "start must be <= end",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              },
              "legacy_invalid_query_params": {
                "value": {
                  "success": false,
                  "code": 400,
                  "error_code": "invalid_query_params",
                  "error": "Failed to deserialize query string: limit: invalid digit found in string",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              },
              "current_main": {
                "value": {
                  "code": 400,
                  "error": "Failed to deserialize query string: limit: invalid digit found in string",
                  "error_code": "invalid_query_params",
                  "param": "limit",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05",
                  "success": false
                }
              }
            }
          }
        },
        "headers": {
          "0xArchive-Version": {
            "$ref": "#/components/headers/ApiVersion"
          }
        }
      },
      "Unauthorized": {
        "description": "Authentication required: the API key is missing or invalid.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "example": {
              "success": false,
              "code": 401,
              "error_code": "unauthorized",
              "error": "Missing authentication credentials. Provide X-API-Key header or Bearer token.",
              "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
            }
          }
        },
        "headers": {
          "0xArchive-Version": {
            "$ref": "#/components/headers/ApiVersion"
          }
        }
      },
      "Forbidden": {
        "description": "The request is outside the plan's history window or per-request span, or the key is not allowed to make it.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "examples": {
              "historical_depth_exceeded": {
                "value": {
                  "success": false,
                  "code": 403,
                  "error_code": "historical_depth_exceeded",
                  "error": "Your plan includes the most recent 30 days of history: this request starts at 2026-01-01T00:00:00Z, before the earliest allowed timestamp 2026-08-30T00:00:00Z. Requests cannot be chunked across the age boundary.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              },
              "historical_range_exceeded": {
                "value": {
                  "success": false,
                  "code": 403,
                  "error_code": "historical_range_exceeded",
                  "error": "Maximum range is 30 days per request on your plan. Requested range is 45 days.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          }
        },
        "headers": {
          "0xArchive-Version": {
            "$ref": "#/components/headers/ApiVersion"
          }
        }
      },
      "NotFound": {
        "description": "Not found. `not_found`: the resource id is unknown. `unsupported_for_venue`: the venue does not offer this datatype (`available_on` names where it is served). `route_not_found`: no route matches the path.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "examples": {
              "not_found": {
                "value": {
                  "success": false,
                  "code": 404,
                  "error_code": "not_found",
                  "error": "Resource not found",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              },
              "unsupported_for_venue": {
                "value": {
                  "success": false,
                  "code": 404,
                  "error_code": "unsupported_for_venue",
                  "error": "Order flow is not offered on Hyperliquid spot. It is available on Hyperliquid (/v1/hyperliquid/orders/{symbol}/flow), HIP-3 (/v1/hyperliquid/hip3/orders/{symbol}/flow) and HIP-4 (/v1/hyperliquid/hip4/orders/{symbol}/flow).",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05",
                  "venue": "spot",
                  "datatype": "order_flow",
                  "available_on": [
                    {
                      "venue": "hyperliquid",
                      "route": "/v1/hyperliquid/orders/{symbol}/flow"
                    },
                    {
                      "venue": "hip3",
                      "route": "/v1/hyperliquid/hip3/orders/{symbol}/flow"
                    },
                    {
                      "venue": "hip4",
                      "route": "/v1/hyperliquid/hip4/orders/{symbol}/flow"
                    }
                  ]
                }
              },
              "route_not_found": {
                "value": {
                  "success": false,
                  "code": 404,
                  "error_code": "route_not_found",
                  "error": "No route matches GET /v1/not-a-route. GET /v1/capabilities lists the routes each venue serves.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              },
              "current_main": {
                "value": {
                  "code": 404,
                  "error": "No L4 checkpoint available before requested timestamp",
                  "error_code": "not_found",
                  "request_id": "ad7df471-eb8a-477c-bd9f-c685a9825f5b",
                  "success": false
                }
              }
            }
          }
        },
        "headers": {
          "0xArchive-Version": {
            "$ref": "#/components/headers/ApiVersion"
          }
        }
      },
      "RateLimited": {
        "description": "Rate limit, concurrency limit or monthly credits exceeded. See `error_code`.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "examples": {
              "rate_limited": {
                "value": {
                  "success": false,
                  "code": 429,
                  "error_code": "rate_limited",
                  "error": "Rate limit exceeded",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              },
              "insufficient_credits": {
                "value": {
                  "success": false,
                  "code": 429,
                  "error_code": "insufficient_credits",
                  "error": "Monthly credit limit exceeded. Please upgrade your plan.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05",
                  "credits_used": 50000,
                  "credits_limit": 50000
                }
              }
            }
          }
        },
        "headers": {
          "X-RateLimit-Limit": {
            "schema": {
              "type": "integer"
            },
            "description": "Requests per second limit"
          },
          "X-RateLimit-Remaining": {
            "schema": {
              "type": "integer"
            },
            "description": "Remaining requests this second"
          },
          "X-RateLimit-Reset": {
            "schema": {
              "type": "integer"
            },
            "description": "Unix timestamp when limit resets"
          },
          "0xArchive-Version": {
            "$ref": "#/components/headers/ApiVersion"
          }
        }
      },
      "Error": {
        "description": "Any other error. The body is an `ErrorResponse`; branch on `error_code`. A 503 (`upstream_unavailable`) carries `Retry-After`.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "examples": {
              "upstream_unavailable": {
                "value": {
                  "success": false,
                  "code": 503,
                  "error_code": "upstream_unavailable",
                  "error": "The service is temporarily unavailable. Retry shortly.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              },
              "internal_error": {
                "value": {
                  "success": false,
                  "code": 500,
                  "error_code": "internal_error",
                  "error": "Internal server error",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
                }
              }
            }
          }
        },
        "headers": {
          "Retry-After": {
            "$ref": "#/components/headers/RetryAfter"
          },
          "0xArchive-Version": {
            "$ref": "#/components/headers/ApiVersion"
          }
        }
      },
      "PlanRequired": {
        "description": "The dataset is not included with the key's plan. The body names the datatype, the plans that include it and where to upgrade. A refused request is not charged.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "examples": {
              "forbidden": {
                "value": {
                  "success": false,
                  "code": 403,
                  "error_code": "forbidden",
                  "error": "Trade intent is included with the Build, Pro, Scale and Enterprise plans. Upgrade at https://0xarchive.io/pricing.",
                  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05",
                  "datatype": "trade_intent",
                  "required_plans": [
                    "build",
                    "pro",
                    "scale",
                    "enterprise"
                  ],
                  "upgrade_url": "https://0xarchive.io/pricing"
                }
              }
            }
          }
        },
        "headers": {
          "0xArchive-Version": {
            "$ref": "#/components/headers/ApiVersion"
          }
        }
      }
    },
    "parameters": {
      "ApiVersion": {
        "name": "0xArchive-Version",
        "in": "header",
        "required": false,
        "description": "Selects the 2026-10 response contract. Send `2026-10-01`; any dated version on or after it selects the same shapes. Without the header every response keeps its existing shape. With it:\n\n- The data quality routes, `/v1/status/coverage` and `/v1/symbols` answer the standard `{success, data, meta}` envelope.\n- Record times that are integer milliseconds by default become RFC 3339 UTC strings with millisecond precision, and the integer moves to a `*_ms` field: L4 resting-order `timestamp` (`timestamp_ms`), CVD buckets, HIP-3 oracle reads, Lighter and Lighter on Robinhood Chain liquidations and liquidation volume. Levels and trigger-levels `snapshot_ts` become RFC 3339 with `snapshot_ts_ms`.\n- Error bodies carry the contract `error_code` names: `invalid_parameter` instead of `invalid_query_params` and `invalid_path_params`, `historical_depth_exceeded` instead of `history_window_exceeded`, and `historical_range_exceeded` instead of `request_range_exceeded`; a malformed cursor that fails to parse answers 400 `invalid_cursor` instead of `invalid_query_params`. With `0xArchive-Version: 2026-10-01`, malformed cursors on trades, liquidations, L2 and L4 diffs, order history, TP/SL and order-flow routes answer 400 `invalid_cursor`. Without the header, the first six route families treat a malformed cursor as no cursor and return the first page; order flow answers 400 `invalid_query_params`. Malformed trade time inputs answer 400 `invalid_time_range` with the header and 400 `invalid_query_params` without it.\n\nThe response echoes the selected version in its own `0xArchive-Version` header.",
        "schema": {
          "type": "string",
          "enum": [
            "2026-10-01"
          ],
          "example": "2026-10-01"
        }
      }
    },
    "headers": {
      "ApiVersion": {
        "description": "The contract version the response was shaped with. Present only when the request sent `0xArchive-Version`.",
        "schema": {
          "type": "string",
          "enum": [
            "2026-10-01"
          ],
          "example": "2026-10-01"
        }
      },
      "Deprecation": {
        "description": "`true` on deprecated legacy routes.",
        "schema": {
          "type": "string",
          "example": "true"
        }
      },
      "Link": {
        "description": "Names the successor route family: `</v1/hyperliquid/>; rel=\"successor-version\"`.",
        "schema": {
          "type": "string",
          "example": "</v1/hyperliquid/>; rel=\"successor-version\""
        }
      },
      "RetryAfter": {
        "description": "Seconds to wait before retrying.",
        "schema": {
          "type": "integer",
          "example": 2
        }
      }
    }
  },
  "x-0xarchive-docs-overlay": {
    "name": "hyperliquid-spot",
    "reason": "Hyperliquid Spot routes are included in the local REST contract.",
    "source": "live endpoint behavior and public CLI/MCP/Skill surface truth",
    "updated_at": "2026-05-08",
    "remove_when": "Public source contract includes the same Spot route family."
  }
}
