OptionWhales Open Interest API

The open-interest API from OptionWhales — 8 operation(s) for open-interest.

GitHub OpenAPI

Operations 8

GET /v1/oi/health Oi Health #
GET /v1/oi/tickers Oi Tickers #
GET /v1/oi/movers Oi Movers #
GET /v1/oi/contract/{occ} Oi Contract #
GET /v1/oi/{ticker}/timeseries Oi Timeseries #
GET /v1/oi/{ticker}/change Oi Change #
GET /v1/oi/{ticker}/strike-change Oi Strike Change #
GET /v1/oi/{ticker}/latest Oi Latest #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/optionwhales-io:optionwhales-io-open-interest-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

optionwhales-io-open-interest-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OptionWhales Pro Open Interest API
  description: Premium API for intent flow, momentum, abnormal trades, earnings intelligence, economic events, directional scores, GEX, dark pool, implied-volatility analytics, open interest, and an MCP server for AI agents
  version: 1.2.0
tags:
- name: open-interest
paths:
  /v1/oi/health:
    get:
      tags:
      - open-interest
      summary: Oi Health
      description: OI service health (any tier — lets a key be smoke-tested).
      operationId: oi_health_v1_oi_health_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /v1/oi/tickers:
    get:
      tags:
      - open-interest
      summary: Oi Tickers
      description: Tickers with available OI snapshots (Pro+).
      operationId: oi_tickers_v1_oi_tickers_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /v1/oi/movers:
    get:
      tags:
      - open-interest
      summary: Oi Movers
      description: 'Market-wide OI movers — tickers ranked by DAY-OVER-DAY total-OI change

        (latest OI date vs the prior): top_gainers, top_losers, most_active. The

        response ``as_of`` / ``prior_as_of`` carry the two oi_dates being diffed (Pro+).'
      operationId: oi_movers_v1_oi_movers_get
      parameters:
      - name: dte
        in: query
        required: false
        schema:
          type: string
          description: 'DTE bucket: all|lt8|gte8'
          default: all
          title: Dte
        description: 'DTE bucket: all|lt8|gte8'
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 500
          minimum: 1
          default: 50
          title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/oi/contract/{occ}:
    get:
      tags:
      - open-interest
      summary: Oi Contract
      description: 'Open interest for a single option contract by OCC symbol

        (e.g. ``O:SPY260130C00600000``), from the latest snapshot (Pro+).'
      operationId: oi_contract_v1_oi_contract__occ__get
      parameters:
      - name: occ
        in: path
        required: true
        schema:
          type: string
          title: Occ
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/oi/{ticker}/timeseries:
    get:
      tags:
      - open-interest
      summary: Oi Timeseries
      description: Per-ticker OI + volume timeseries across AM/PM snapshots (Pro+).
      operationId: oi_timeseries_v1_oi__ticker__timeseries_get
      parameters:
      - name: ticker
        in: path
        required: true
        schema:
          type: string
          title: Ticker
      - name: start
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: YYYY-MM-DD
          title: Start
        description: YYYY-MM-DD
      - name: end
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: YYYY-MM-DD
          title: End
        description: YYYY-MM-DD
      - name: dte
        in: query
        required: false
        schema:
          type: string
          description: 'DTE bucket: all|lt8|gte8'
          default: all
          title: Dte
        description: 'DTE bucket: all|lt8|gte8'
      - name: slot
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: AM|PM (default both)
          title: Slot
        description: AM|PM (default both)
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/oi/{ticker}/change:
    get:
      tags:
      - open-interest
      summary: Oi Change
      description: 'OI change for a ticker between the two most-recent snapshots — call/put/

        total OI and volume deltas (+ % change) (Pro+).'
      operationId: oi_change_v1_oi__ticker__change_get
      parameters:
      - name: ticker
        in: path
        required: true
        schema:
          type: string
          title: Ticker
      - name: dte
        in: query
        required: false
        schema:
          type: string
          description: 'DTE bucket: all|lt8|gte8'
          default: all
          title: Dte
        description: 'DTE bucket: all|lt8|gte8'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/oi/{ticker}/strike-change:
    get:
      tags:
      - open-interest
      summary: Oi Strike Change
      description: 'Per-STRIKE and per-EXPIRY day-over-day OI change for a ticker (call/put/

        total, latest OI date vs the prior). Complements /{ticker}/change, which is

        the ticker-level total (Pro+).'
      operationId: oi_strike_change_v1_oi__ticker__strike_change_get
      parameters:
      - name: ticker
        in: path
        required: true
        schema:
          type: string
          title: Ticker
      - name: dte
        in: query
        required: false
        schema:
          type: string
          description: 'DTE bucket: all|lt8|gte8'
          default: all
          title: Dte
        description: 'DTE bucket: all|lt8|gte8'
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 1000
          minimum: 1
          description: Max strike rows
          default: 100
          title: Limit
        description: Max strike rows
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/oi/{ticker}/latest:
    get:
      tags:
      - open-interest
      summary: Oi Latest
      description: Most recent OI snapshot summary for a ticker (Pro+).
      operationId: oi_latest_v1_oi__ticker__latest_get
      parameters:
      - name: ticker
        in: path
        required: true
        schema:
          type: string
          title: Ticker
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError