tastytradeDeveloper Docs
Legacy ↗

API Reference / Instruments

List Nested Option Chains

getOptionChainsSymbolNested
get/option-chains/{symbol}/nested

Base URL: https://api.cert.tastyworks.com (Sandbox) · https://api.tastyworks.com (Production)

Returns the equity option chain for an underlying symbol (e.g. `AAPL`) in a nested form that groups expirations and strikes together to minimize redundant processing. Each strike provides its call and put symbols.

Code samples

curl -X GET 'https://api.cert.tastyworks.com/option-chains/AAPL/nested' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'User-Agent: tastytrade-docs-example/1.0'

Parameters

NameInTypeDescription
symbol*pathstring
e.g. "AAPL"

Responses

200The nested equity option chain for the given underlying symbol.application/json

Example response

{
  "data": {
    "items": [
      {
        "underlying-symbol": "SPY",
        "root-symbol": "SPY",
        "option-chain-type": "Standard",
        "shares-per-contract": 100,
        "tick-sizes": [
          {}
        ],
        "deliverables": [
          {}
        ],
        "expirations": [
          {}
        ]
      }
    ]
  },
  "context": "/option-chains/{symbol}/nested"
}

Schema

  • datarequiredobject (NestedOptionChainList)

    Container for the nested equity option chain. The chain objects are returned in an `items` array.

    • itemsrequiredarray<object>{7 fields}

      Nested option chain objects for the underlying symbol.

  • contextrequiredstring

    example: "/option-chains/{symbol}/nested"

401Missing or expired access token, or a missing/malformed `User-Agent` header.application/json

Example response

{
  "error": {
    "code": "unauthorized",
    "message": "No valid access token was provided; access tokens expire after 15 minutes."
  }
}

Schema

  • errorrequiredobject
    • coderequiredstring

      Machine-readable error code (see the Error reference).

    • messagerequiredstring

      Human-readable explanation.

    • errorsarray<object>{3 fields}

      Present for multi-error / validation failures; one entry per problem.

404No option chain exists for the given underlying symbol.application/json

Example response

{
  "error": {
    "code": "string",
    "message": "string",
    "errors": [
      {
        "code": "string",
        "message": "string",
        "domain": "string"
      }
    ]
  }
}

Schema

  • errorrequiredobject
    • coderequiredstring

      Machine-readable error code (see the Error reference).

    • messagerequiredstring

      Human-readable explanation.

    • errorsarray<object>{3 fields}

      Present for multi-error / validation failures; one entry per problem.

429Request rate exceeded. Back off exponentially and reduce request frequency.application/json

Example response

{
  "error": {
    "code": "string",
    "message": "string",
    "errors": [
      {
        "code": "string",
        "message": "string",
        "domain": "string"
      }
    ]
  }
}

Schema

  • errorrequiredobject
    • coderequiredstring

      Machine-readable error code (see the Error reference).

    • messagerequiredstring

      Human-readable explanation.

    • errorsarray<object>{3 fields}

      Present for multi-error / validation failures; one entry per problem.

Related

Agents: this page is also Markdown (with the embedded OpenAPI definition) — append .md or send Accept: text/markdown. Index at /llms.txt.