> ## 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.

# Open Interest

> This endpoint returns the end-of-day (EOD) open interest snapshot. Unlike the crypto landscape where open interest is continuously updated, the tradFi environment only updates open interest once per day. This is because the clearing house needs to tally up all the activity for the day, in order to publish outstanding open interest at the end-of-the-day.



## OpenAPI

````yaml get /analytics/volatility/open-interest/tradfi
openapi: 3.1.0
info:
  title: derivatives-api
  version: '2'
servers:
  - url: https://api.amberdata.com/markets/derivatives
security:
  - sec0: []
paths:
  /analytics/volatility/open-interest/tradfi:
    get:
      summary: Open Interest
      description: >-
        This endpoint returns the end-of-day (EOD) open interest snapshot.
        Unlike the crypto landscape where open interest is continuously updated,
        the tradFi environment only updates open interest once per day. This is
        because the clearing house needs to tally up all the activity for the
        day, in order to publish outstanding open interest at the
        end-of-the-day.
      operationId: tradfi-open-interest
      parameters:
        - name: currency
          in: query
          description: >
            **[Required]** The underlying currency for which there are listed
            option instruments. 

            **[Examples]** ` IBIT | COIN ` 
          required: true
          schema:
            type: string
            default: IBIT
        - name: strike
          in: query
          description: >-
            **[Optional]** The option instrument subset with a given strike
            price. 

            **[Examples]** ` 50 | 100 `
          schema:
            type: string
        - name: expiration
          in: query
          description: >-
            **[Optional]** The option instrument subset with a given expiration
            date. 

            **[Examples]** ` 2027-01-15`
          schema:
            type: string
        - name: putCall
          in: query
          description: >-
            **[Optional]** The option instrument subset that's either a call (C)
            or put (P). 

            **[Examples]** ` P | C `
          schema:
            type: string
        - name: timestamp
          in: query
          description: |-
            **[Optional]** Payload only includes data for this timestamp. 
            **[Formats]** `seconds | milliseconds | iso8601`
            **[Examples]** `1578531600 | 1578531600000 | 2024-11-19`
          required: true
          schema:
            type: string
        - 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
            default: hr
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                  title:
                    type: string
                  description:
                    type: string
                  payload:
                    type: object
              examples:
                Result:
                  value:
                    status: 200
                    title: OK
                    description: Successful request
                    payload:
                      data:
                        - currency: IBIT
                          expirationTimestamp: 2025-05-02 00:00:00 000
                          instrument: IBIT-02MAY25-25-C
                          instrumentNormalized: TRADFI-IBIT-02MAY25-25-C
                          openInterest: 23713
                          putCall: C
                          strike: 25
                          timestamp: 2025-04-30 00:00:00 000
                        - currency: IBIT
                          expirationTimestamp: 2025-05-02 00:00:00 000
                          instrument: IBIT-02MAY25-25-P
                          instrumentNormalized: TRADFI-IBIT-02MAY25-25-P
                          openInterest: 12580
                          putCall: P
                          strike: 25
                          timestamp: 2025-04-30 00:00:00 000
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value: {}
              schema:
                type: object
                properties: {}
      deprecated: false
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````