> ## Documentation Index
> Fetch the complete documentation index at: https://docs.allium.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Get liquidations

> Historical liquidations feed for a perpetual market.

<Warning>
  **Alpha** — The Market Data API is in alpha. Schema and response format may change. To request access, [contact us](https://www.allium.so/contact) or reach out to your account manager.
</Warning>

Returns the historical liquidations feed for a perpetual market, newest first, with cursor pagination. Perp markets only. A live streaming variant is [available on request](/api/developer/market-data/streaming).

<Note>
  `side` is the direction of the **liquidated position** (`long` or `short`), not
  the matching fill's taker side. The cursor format is `{ts_ms}_{id}`. The query
  window is currently capped at **7 days** per request.
</Note>


## OpenAPI

````yaml _openapi/market-data-api.json GET /api/v1/markets/{market_id}/perps/liquidations
openapi: 3.1.0
info:
  title: Allium Market Data API
  version: 0.1.0
  description: >-
    Unified market data — reference, pricing, and perps primitives across
    trading venues. Alpha; schema may change.
servers:
  - url: https://api.allium.so
security:
  - APIKeyBearer: []
paths:
  /api/v1/markets/{market_id}/perps/liquidations:
    get:
      summary: Get liquidations
      description: >-
        Historical liquidations feed for a perpetual market, newest first, with
        cursor pagination. Query window capped at 7 days per request.
      parameters:
        - $ref: '#/components/parameters/MarketIdPath'
        - $ref: '#/components/parameters/StartTimestamp'
        - $ref: '#/components/parameters/EndTimestamp'
        - name: limit
          in: query
          description: Maximum rows to return (1–5000).
          schema:
            type: integer
            default: 500
            minimum: 1
            maximum: 5000
        - name: cursor
          in: query
          description: 'Pagination cursor from a previous response. Format: {ts_ms}_{id}.'
          schema:
            type: string
      responses:
        '200':
          description: Liquidation events.
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/Liquidation'
                  cursor:
                    type: string
                    description: >-
                      Cursor for the next page. Absent when there are no more
                      results.
                required:
                  - items
components:
  parameters:
    MarketIdPath:
      name: market_id
      in: path
      required: true
      description: Canonical market slug, {venue}:{instrument_type}:{pair}.
      schema:
        type: string
      example: hl:perp:BTC-USDC
    StartTimestamp:
      name: start_timestamp
      in: query
      required: true
      description: Start of the window (ISO 8601; naive datetimes treated as UTC).
      schema:
        type: string
      example: '2026-05-01T00:00:00Z'
    EndTimestamp:
      name: end_timestamp
      in: query
      required: true
      description: End of the window (ISO 8601).
      schema:
        type: string
      example: '2026-05-02T00:00:00Z'
  schemas:
    Liquidation:
      type: object
      properties:
        market_id:
          type: string
          examples:
            - hl:perp:BTC-USDC
        ts:
          type: string
          description: ISO 8601 timestamp (millisecond precision).
          examples:
            - '2026-05-01T13:21:04.512000+00:00'
        side:
          type: string
          enum:
            - long
            - short
          description: >-
            Direction of the liquidated position (not the matching fill's taker
            side).
        size_base:
          type: string
          description: Liquidation size in base-asset units.
          examples:
            - '1.2500'
        price:
          type: string
          description: Liquidation fill price.
          examples:
            - '103420.00'
        notional_usd:
          type: string
          description: Notional value in USD.
          examples:
            - '129275.00'
      required:
        - market_id
        - ts
        - side
        - size_base
        - price
        - notional_usd
  securitySchemes:
    APIKeyBearer:
      type: apiKey
      in: header
      name: X-API-KEY

````