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

# Historical

> Provides historical liquidation data for options contracts, detailing liquidation actions, prices, volumes, mark and index prices, and buy/sell sides to track liquidation events over time across supported exchanges.

<Warning>
  The maximum time range (difference between `startDate` and `endDate`) is **365 days (1 year)**.
</Warning>


## OpenAPI

````yaml get /options/liquidations/{instrument}
openapi: 3.1.0
info:
  title: market-api
  version: '2'
servers:
  - url: https://api.amberdata.com/markets
security:
  - ApiKeyAuth: []
paths:
  /options/liquidations/{instrument}:
    get:
      summary: Historical
      description: >-
        Provides historical liquidation data for options contracts, detailing
        liquidation actions, prices, volumes, mark and index prices, and
        buy/sell sides to track liquidation events over time across supported
        exchanges.
      operationId: options-liquidations-historical
      parameters:
        - name: instrument
          in: path
          description: The instrument for which to retrieve the requested data.
          schema:
            type: string
            default: BTC-27DEC24-100000-C
          required: true
        - name: exchange
          in: query
          description: >-
            The exchange(s) for which to retrieve the requested data (comma
            separated). **[Defaults]** All available exchanges.
          required: true
          schema:
            type: string
            default: deribit
        - name: startDate
          in: query
          description: >-
            **[Optional]** Payload only includes data after this date
            (inclusive). **[Formats]** `seconds | milliseconds | iso8601`
            **[Examples]** `1578531600 | 1578531600000 | 2020-09-01T01:00:00`
          schema:
            type: string
            format: date-time
            default: '1691321498000'
        - name: endDate
          in: query
          description: >-
            **[Optional]** Payload only includes data before this date
            (exclusive). **[Formats]** `seconds | milliseconds | iso8601`
            **[Examples]** `1578531600 | 1578531600000 | 2020-09-01T01:00:00`
          schema:
            type: string
            format: date-time
        - name: timeFormat
          in: query
          description: >-
            **[Optional]** Time format of the timestamps in the return payload.
            **[Defaults]** `milliseconds | ms* | iso | iso8601 | hr |
            human_readable`
          schema:
            type: string
        - name: sortDirection
          in: query
          description: >-
            **[Optional]** Specifies the direction in which the data is sorted
            (by timestamp).   **[Defaults]** asc (ascending order).   **[Usage
            Conditions]** This parameter can only be used if the `startDate` and
            `endDate` timeframe is within the most recent 24 hours, or if the
            `startDate` and `endDate` parameters are not used at all.  
            **[Examples]** ascending | descending | asc | desc
          schema:
            type: string
        - name: Accept-Encoding
          in: header
          required: true
          description: ''
          schema:
            type: string
            default: gzip, deflate, br
        - name: api-version
          in: header
          schema:
            type: string
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Success:
                  value:
                    status: 200
                    title: OK
                    description: Successful request
                    payload:
                      metadata:
                        next: null
                        api-version: '2023-09-30'
                      data:
                        - instrument: BTC-29DEC23-30000-C
                          exchange: deribit
                          exchangeTimestamp: 1691321498000
                          exchangeTimestampNanoseconds: 0
                          action: null
                          orderId: '262149185'
                          side: BUY
                          status: null
                          timeInForce: null
                          type: null
                          price: 0.0935
                          volume: 2
                          unit: base_asset
                          tickDirection: 2
                          markPrice: 0.09432956
                          indexPrice: 29033.78
              schema:
                oneOf:
                  - title: Success
                    type: object
                    properties:
                      status:
                        type: integer
                        example: 200
                        default: 0
                      title:
                        type: string
                        example: OK
                      description:
                        type: string
                        example: Successful request
                      payload:
                        type: object
                        properties:
                          metadata:
                            type: object
                            properties:
                              next: {}
                              api-version:
                                type: string
                                example: '2023-09-30'
                          data:
                            type: array
                            items:
                              type: object
                              properties:
                                instrument:
                                  type: string
                                  example: BTC-29DEC23-30000-C
                                exchange:
                                  type: string
                                  example: deribit
                                exchangeTimestamp:
                                  type: integer
                                  example: 1691321498000
                                  default: 0
                                exchangeTimestampNanoseconds:
                                  type: integer
                                  example: 0
                                  default: 0
                                action: {}
                                orderId:
                                  type: string
                                  example: '262149185'
                                side:
                                  type: string
                                  example: BUY
                                status: {}
                                timeInForce: {}
                                type: {}
                                price:
                                  type: number
                                  example: 0.0935
                                  default: 0
                                volume:
                                  type: integer
                                  example: 2
                                  default: 0
                                unit:
                                  type: string
                                  example: base_asset
                                tickDirection:
                                  type: integer
                                  example: 2
                                  default: 0
                                markPrice:
                                  type: number
                                  example: 0.09432956
                                  default: 0
                                indexPrice:
                                  type: number
                                  example: 29033.78
                                  default: 0
      deprecated: false
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````