Polygon · Arazzo Workflow

Polygon Options Contract Deep Dive

Version 1.0.0

List an underlying's option contracts, snapshot the top contract, and pull its bars.

1 workflow 3 source APIs 1 provider
View Spec View on GitHub FinanceFintechMarket DataStocksOptionsForexCryptoIndicesFuturesWebSocketsReal-TimeHistoricalPublic APIsArazzoWorkflows

Provider

polygon

Workflows

options-contract-deep-dive
Drill from an underlying to a single option contract's snapshot and bars.
Lists option contracts for an underlying, then chains the contract snapshot and aggregate bars for the first matching contract.
3 steps inputs: contractType, expirationDate, from, to, underlyingTicker outputs: bars, contractTicker, impliedVolatility, openInterest
1
listContracts
List option contracts for the underlying filtered by contract type and expiration date, returning the first match.
2
getContractSnapshot
Read the full snapshot for the matched option contract, including greeks, implied volatility, and open interest.
3
getContractBars
Retrieve aggregate bars for the matched option contract over the requested date range.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Polygon Options Contract Deep Dive
  summary: List an underlying's option contracts, snapshot the top contract, and pull its bars.
  description: >-
    An options analysis flow that drills from an underlying down to a single
    contract. The workflow lists option contracts for an underlying ticker
    filtered by type and expiration, takes the first matching contract,
    reads its full snapshot (greeks, implied volatility, open interest), and
    then pulls aggregate bars for that contract. The contract ticker
    resolved in the first step feeds the path parameters of the following
    two steps. Every step spells out its request inline so the flow can be
    read and executed without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: aggregatesApi
  url: ../openapi/polygon-aggregates-api-openapi.yml
  type: openapi
- name: contractsApi
  url: ../openapi/polygon-contracts-api-openapi.yml
  type: openapi
- name: snapshotsApi
  url: ../openapi/polygon-snapshots-api-openapi.yml
  type: openapi
workflows:
- workflowId: options-contract-deep-dive
  summary: Drill from an underlying to a single option contract's snapshot and bars.
  description: >-
    Lists option contracts for an underlying, then chains the contract
    snapshot and aggregate bars for the first matching contract.
  inputs:
    type: object
    required:
    - underlyingTicker
    - contractType
    - expirationDate
    - from
    - to
    properties:
      underlyingTicker:
        type: string
        description: The underlying ticker symbol (e.g. AAPL).
      contractType:
        type: string
        description: The contract type to filter on (call or put).
      expirationDate:
        type: string
        description: The contract expiration date to filter on (YYYY-MM-DD).
      from:
        type: string
        description: Start of the aggregate window (YYYY-MM-DD).
      to:
        type: string
        description: End of the aggregate window (YYYY-MM-DD).
  steps:
  - stepId: listContracts
    description: >-
      List option contracts for the underlying filtered by contract type
      and expiration date, returning the first match.
    operationId: listOptionsContracts
    parameters:
    - name: underlying_ticker
      in: query
      value: $inputs.underlyingTicker
    - name: contract_type
      in: query
      value: $inputs.contractType
    - name: expiration_date
      in: query
      value: $inputs.expirationDate
    - name: limit
      in: query
      value: 1
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      contractTicker: $response.body#/results/0/ticker
      strikePrice: $response.body#/results/0/strike_price
  - stepId: getContractSnapshot
    description: >-
      Read the full snapshot for the matched option contract, including
      greeks, implied volatility, and open interest.
    operationId: getOptionContractSnapshot
    parameters:
    - name: underlyingAsset
      in: path
      value: $inputs.underlyingTicker
    - name: optionContract
      in: path
      value: $steps.listContracts.outputs.contractTicker
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      impliedVolatility: $response.body#/results/implied_volatility
      openInterest: $response.body#/results/open_interest
      greeks: $response.body#/results/greeks
  - stepId: getContractBars
    description: >-
      Retrieve aggregate bars for the matched option contract over the
      requested date range.
    operationId: getOptionsAggregateBars
    parameters:
    - name: optionsTicker
      in: path
      value: $steps.listContracts.outputs.contractTicker
    - name: multiplier
      in: path
      value: 1
    - name: timespan
      in: path
      value: day
    - name: from
      in: path
      value: $inputs.from
    - name: to
      in: path
      value: $inputs.to
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      bars: $response.body#/results
      resultsCount: $response.body#/resultsCount
  outputs:
    contractTicker: $steps.listContracts.outputs.contractTicker
    impliedVolatility: $steps.getContractSnapshot.outputs.impliedVolatility
    openInterest: $steps.getContractSnapshot.outputs.openInterest
    bars: $steps.getContractBars.outputs.bars

Work with this as data

Every workflow 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 arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • 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 workflow
curl "https://apis.io/api/v1/arazzo/polygon-options-contract-deep-dive-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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