# agent402.tools Options Chain

> agent402.tools Options Chain is a paid API for AI agents from agent402.tools, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Returns the full option chain for a US-listed ticker: all expiration dates, strike ladder, and per-contract bid/ask/last/volume/open-interest/IV for calls and puts at a given expiry.

## Facts

- Endpoint: GET https://agent402.tools/api/options-chain
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 2
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-options-chain-21e1186c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_G4BkZyNdpJBF1RWr-WsY1

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent402-tools-options-chain-21e1186c
```

Example prompt: Pull the full options chain for SPY — all strikes with bid, ask, volume, open interest, and implied vol for calls and puts — using the nearest expiration date.

## When to prefer this

Use this endpoint when you need real-time options market data for a US-listed equity or ETF, including full strike coverage, Greeks-adjacent metrics (IV), and both calls and puts in a single call. Prefer this over a generic stock price endpoint when the user is researching options strategies, scanning for unusual activity (volume/OI), or needs expiry-level contract detail. The x402 micropayment model makes it suitable for per-query agent workflows without subscription overhead.

## Known failure modes

- Invalid or non-US ticker symbol returns an error or empty result
- Expiration date not in the listed expirations list returns an error
- Malformed date format (not YYYY-MM-DD) causes a validation error
- Ticker has no listed options (e.g. thinly traded stocks) returns empty or error
- Payment of 0.005 USDC not completed results in 402 Payment Required response
- Rate limiting or upstream data provider outage may return 503 or timeout

## How this service works

Option chain for a US-listed ticker: all listed expiration dates, the strike ladder, and per-contract bid/ask/last/volume/open-interest/implied-volatility for calls and puts at one expiry (nearest by default, or pass `expiration` as YYYY-MM-DD). Backed by Yahoo Finance's options endpoint with the session-crumb handshake handled server-side.

## Output

A structured response containing: (1) all listed expiration dates for the ticker, (2) the strike ladder for the selected expiry, and (3) per-contract data (bid, ask, last, volume, open interest, implied volatility) for both calls and puts at that expiry. Defaults to the nearest expiration if none is specified.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "symbol"
     ],
     "properties": {
      "symbol": {
       "type": "string",
       "description": "US-listed ticker (e.g. AAPL, SPY, TSLA)"
      },
      "expiration": {
       "type": "string",
       "description": "Optional expiry to fetch, YYYY-MM-DD - must be one of the listed expirations (default: nearest)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "symbol",
      "underlyingPrice",
      "currency",
      "expiration",
      "expirations",
      "strikes",
      "calls",
      "puts",
      "callCount",
      "putCount"
     ],
     "properties": {
      "puts": {
       "type": "array"
      },
      "calls": {
       "type": "array"
      },
      "symbol": {
       "type": "string"
      },
      "strikes": {
       "type": "array"
      },
      "currency": {
       "type": "string"
      },
      "putCount": {
       "type": "integer"
      },
      "callCount": {
       "type": "integer"
      },
      "expiration": {
       "type": "string"
      },
      "expirations": {
       "type": "array"
      },
      "underlyingPrice": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "puts": [
   {
    "ask": 2.02,
    "bid": 1.9,
    "strike": 230,
    "volume": 987,
    "lastPrice": 1.95,
    "expiration": "2026-07-17",
    "inTheMoney": false,
    "openInterest": 5410,
    "contractSymbol": "AAPL260717P00230000",
    "impliedVolatility": 0.2519
   }
  ],
  "calls": [
   {
    "ask": 4.45,
    "bid": 4.3,
    "strike": 230,
    "volume": 1523,
    "lastPrice": 4.35,
    "expiration": "2026-07-17",
    "inTheMoney": true,
    "openInterest": 8211,
    "contractSymbol": "AAPL260717C00230000",
    "impliedVolatility": 0.2431
   }
  ],
  "symbol": "AAPL",
  "strikes": [
   220,
   225,
   230,
   235,
   240
  ],
  "currency": "USD",
  "putCount": 1,
  "callCount": 1,
  "expiration": "2026-07-17",
  "expirations": [
   "2026-07-17",
   "2026-07-24",
   "2026-08-21"
  ],
  "underlyingPrice": 232.45
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-options-chain-21e1186c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
