ZeroGEX Max Pain API

Max pain analysis

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 2

GET /api/max-pain/timeseries Get Max Pain Timeseries #
GET /api/max-pain/current Get Max Pain Current #

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/zerogex-io:zerogex-io-max-pain-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

zerogex-io-max-pain-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ZeroGEX Max Pain API
  description: 'Real-time options analytics API.


    **Two versions are served.**


    * **v2 (recommended)** — `/api/v2/*`. Every endpoint returns `{"data": ..., "freshness": {...}}`, where the `freshness` block reports response evaluation time, the underlying data''s source timestamp, the market session, the expected update cadence, and a rolled-up `freshness_status` — so endpoint health and data age are separate, machine-readable facts on every response.

    * **v1 (stable)** — `/api/*` and `/api/v1/levels/*`. Unchanged and supported; `data` in a v2 response is byte-for-byte the v1 body.


    See "API versions & the freshness envelope" in API_Guide.md for the field contract and the per-endpoint cadence table.'
  version: 2.0.0
tags:
- name: Max Pain
  description: Max pain analysis
paths:
  /api/max-pain/timeseries:
    get:
      tags:
      - Max Pain
      summary: Get Max Pain Timeseries
      description: Get max pain over time aggregated by timeframe.
      operationId: get_max_pain_timeseries_api_max_pain_timeseries_get
      security:
      - HTTPBearer: []
      parameters:
      - name: symbol
        in: query
        required: false
        schema:
          type: string
          default: SPY
          title: Symbol
      - name: timeframe
        in: query
        required: false
        schema:
          enum:
          - 1min
          - 5min
          - 15min
          - 1hr
          - 1day
          - 1hour
          type: string
          default: 5min
          title: Timeframe
      - name: window_units
        in: query
        required: false
        schema:
          type: integer
          maximum: 300
          minimum: 1
          default: 90
          title: Window Units
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MaxPainTimeseriesPoint'
                title: Response Get Max Pain Timeseries Api Max Pain Timeseries Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/max-pain/current:
    get:
      tags:
      - Max Pain
      summary: Get Max Pain Current
      description: 'Get current max pain and strike-by-strike call/put payout notional.


        The top-level ``timestamp``, ``max_pain``, ``underlying_price``, and

        ``difference`` fields reflect the latest analytics-engine reading and

        agree with the most recent point in ``/api/max-pain/timeseries``.


        The ``expirations[]`` array (per-expiration max pain plus the full

        call/put payoff curve at each settlement candidate) comes from a

        daily pre-market snapshot — open interest only publishes once per

        day at settlement, so this detail is stable through the trading day.'
      operationId: get_max_pain_current_api_max_pain_current_get
      security:
      - HTTPBearer: []
      parameters:
      - name: symbol
        in: query
        required: false
        schema:
          type: string
          default: SPY
          title: Symbol
      - name: strike_limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 1000
          minimum: 10
          default: 200
          title: Strike Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MaxPainCurrent'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    MaxPainCurrent:
      properties:
        timestamp:
          type: string
          format: date-time
          title: Timestamp
        symbol:
          type: string
          title: Symbol
        underlying_price:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Underlying Price
        max_pain:
          anyOf:
          - type: string
            pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          - type: 'null'
          title: Max Pain
        difference:
          anyOf:
          - type: string
            pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          - type: 'null'
          title: Difference
        expirations:
          items:
            $ref: '#/components/schemas/MaxPainExpiration'
          type: array
          title: Expirations
      type: object
      required:
      - timestamp
      - symbol
      - underlying_price
      - expirations
      title: MaxPainCurrent
    MaxPainPoint:
      properties:
        expiration:
          anyOf:
          - type: string
            format: date
          - type: 'null'
          title: Expiration
        settlement_price:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Settlement Price
        call_notional:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Call Notional
        put_notional:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Put Notional
        total_notional:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Total Notional
      type: object
      required:
      - settlement_price
      - call_notional
      - put_notional
      - total_notional
      title: MaxPainPoint
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    MaxPainExpiration:
      properties:
        expiration:
          type: string
          format: date
          title: Expiration
        max_pain:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Max Pain
        difference_from_underlying:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Difference From Underlying
        strikes:
          items:
            $ref: '#/components/schemas/MaxPainPoint'
          type: array
          title: Strikes
      type: object
      required:
      - expiration
      - max_pain
      - difference_from_underlying
      - strikes
      title: MaxPainExpiration
    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
    MaxPainTimeseriesPoint:
      properties:
        timestamp:
          type: string
          format: date-time
          title: Timestamp
        symbol:
          type: string
          title: Symbol
        max_pain:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Max Pain
      type: object
      required:
      - timestamp
      - symbol
      - max_pain
      title: MaxPainTimeseriesPoint
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
      bearerFormat: API-Key