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

# Get Open Interest

> Get historical open interest snapshots for one symbol. Values are returned as closed interval buckets sorted newest first.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/market/open-interest
openapi: 3.1.0
info:
  title: ekiden-gateway
  description: >-
    API Gateway and WebSocket proxy based on Axum and Utoipa, handling auth,
    rate limiting, and connection buffering.
  license:
    name: ''
  version: 0.1.1
servers:
  - url: https://api.ekiden.fi/
    description: Production
  - url: https://api.staging.ekiden.fi/
    description: Staging
  - url: https://api.dev.ekiden.fi/
    description: Development
  - url: http://localhost:4020/
    description: Local
security: []
paths:
  /api/v1/market/open-interest:
    get:
      tags:
        - Market
      summary: Get Open Interest
      description: >-
        Get historical open interest snapshots for one symbol. Values are
        returned as closed interval buckets sorted newest first.
      operationId: get_open_interest
      parameters:
        - name: symbol
          in: query
          required: true
          schema:
            $ref: '#/components/schemas/Symbol'
        - name: interval
          in: query
          required: true
          schema:
            $ref: 5e40d9d7-61d2-4c0e-823f-d2b8d60ebdca
        - name: start_time
          in: query
          required: false
          schema:
            type:
              - string
              - 'null'
            format: date-time
        - name: end_time
          in: query
          required: false
          schema:
            type:
              - string
              - 'null'
            format: date-time
        - name: limit
          in: query
          required: false
          schema:
            type:
              - integer
              - 'null'
            format: int32
            minimum: 0
        - name: cursor
          in: query
          required: false
          schema:
            type:
              - string
              - 'null'
      responses:
        '200':
          description: Open interest data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetOpenInterestResponse'
components:
  schemas:
    Symbol:
      type: string
      example: BTCUSDC
    GetOpenInterestResponse:
      type: object
      description: Open interest response.
      required:
        - symbol
        - list
        - next_page_cursor
      properties:
        list:
          type: array
          items:
            $ref: '#/components/schemas/OpenInterest'
        next_page_cursor:
          type: string
        symbol:
          $ref: '#/components/schemas/Symbol'
    OpenInterest:
      type: object
      required:
        - open_interest
        - open_interest_value
        - timestamp
      properties:
        open_interest:
          type: string
        open_interest_value:
          type: string
        timestamp:
          type: string
          format: date-time
          example: '1672531200000'

````