ZeroGEX Tools API

Trader-facing calculators and what-if utilities. Includes the option-calculator (intrinsic-value P&L fan across underlying-price moves).

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 1

GET /api/tools/option-calculator Option Calculator #

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-tools-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-tools-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ZeroGEX Tools 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: Tools
  description: Trader-facing calculators and what-if utilities. Includes the option-calculator (intrinsic-value P&L fan across underlying-price moves).
paths:
  /api/tools/option-calculator:
    get:
      tags:
      - Tools
      summary: Option Calculator
      description: Project intrinsic-value P&L across a fan of underlying-price moves.
      operationId: option_calculator_api_tools_option_calculator_get
      security:
      - HTTPBearer: []
      parameters:
      - name: underlying
        in: query
        required: true
        schema:
          type: string
          description: Underlying symbol, e.g. SPY
          title: Underlying
        description: Underlying symbol, e.g. SPY
      - name: strike
        in: query
        required: true
        schema:
          type: number
          exclusiveMinimum: 0
          description: Strike price
          title: Strike
        description: Strike price
      - name: expiration
        in: query
        required: true
        schema:
          type: string
          description: Expiration date (YYYY-MM-DD)
          title: Expiration
        description: Expiration date (YYYY-MM-DD)
      - name: option_type
        in: query
        required: true
        schema:
          enum:
          - C
          - P
          type: string
          description: 'Option type: C or P'
          title: Option Type
        description: 'Option type: C or P'
      - name: num_contracts
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          description: Number of contracts (each contract = 100 shares).
          default: 1
          title: Num Contracts
        description: Number of contracts (each contract = 100 shares).
      - name: steps
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          description: Number of price-move scenarios to project (1–100).
          default: 20
          title: Steps
        description: Number of price-move scenarios to project (1–100).
      - name: step_pct
        in: query
        required: false
        schema:
          type: number
          maximum: 0.01
          exclusiveMinimum: 0
          description: Percent move per step as a fraction (max 0.01).
          default: 0.001
          title: Step Pct
        description: Percent move per step as a fraction (max 0.01).
      - name: fee_per_contract
        in: query
        required: false
        schema:
          type: number
          minimum: 0.0
          description: Brokerage fee per contract.
          default: 0.5
          title: Fee Per Contract
        description: Brokerage fee per contract.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OptionCalculatorResponse'
        '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
    OptionCalculatorResponse:
      properties:
        underlying:
          type: string
          title: Underlying
        strike:
          type: number
          title: Strike
        expiration:
          type: string
          format: date
          title: Expiration
        option_type:
          type: string
          enum:
          - C
          - P
          title: Option Type
        num_contracts:
          type: integer
          title: Num Contracts
        steps:
          type: integer
          title: Steps
        step_pct:
          type: number
          title: Step Pct
        fee_per_contract:
          type: number
          title: Fee Per Contract
        spot_price:
          type: number
          title: Spot Price
        entry_price:
          type: number
          title: Entry Price
        entry_price_source:
          type: string
          title: Entry Price Source
          description: Which option-chain field was used as the entry price (mid/last/bid_ask_avg).
        quote_timestamp:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Quote Timestamp
        total_cost:
          type: number
          title: Total Cost
          description: entry_price × num_contracts × 100 + num_contracts × fee_per_contract
        total_fees:
          type: number
          title: Total Fees
        breakeven_price:
          type: number
          title: Breakeven Price
        pct_move_to_breakeven:
          type: number
          title: Pct Move To Breakeven
        scenarios:
          items:
            $ref: '#/components/schemas/OptionCalculatorScenario'
          type: array
          title: Scenarios
      type: object
      required:
      - underlying
      - strike
      - expiration
      - option_type
      - num_contracts
      - steps
      - step_pct
      - fee_per_contract
      - spot_price
      - entry_price
      - entry_price_source
      - total_cost
      - total_fees
      - breakeven_price
      - pct_move_to_breakeven
      - scenarios
      title: OptionCalculatorResponse
    OptionCalculatorScenario:
      properties:
        pct_move:
          type: number
          title: Pct Move
          description: Percent move applied to spot for this step.
        underlying_price:
          type: number
          title: Underlying Price
          description: Underlying price after the move.
        intrinsic_per_contract:
          type: number
          title: Intrinsic Per Contract
          description: Intrinsic value of one contract at this underlying price.
        intrinsic_position:
          type: number
          title: Intrinsic Position
          description: Intrinsic value of the whole position (per_contract × contracts × 100).
        pnl:
          type: number
          title: Pnl
          description: P&L assuming intrinsic value at expiration (intrinsic_position − total_cost).
      type: object
      required:
      - pct_move
      - underlying_price
      - intrinsic_per_contract
      - intrinsic_position
      - pnl
      title: OptionCalculatorScenario
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
      bearerFormat: API-Key