tastytradeDeveloper Docs
Legacy ↗

API Reference / Instruments

List Compact Option Chains

getOptionChainsSymbolCompact
get/option-chains/{symbol}/compact

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 compact form that concatenates every strike symbol across all expirations into a single array, minimizing content size.

Code samples

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

Parameters

NameInTypeDescription
symbol*pathstring
e.g. "AAPL"

Responses

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

Example response

{
  "data": {
    "items": [
      {
        "underlying-symbol": "SPY",
        "root-symbol": "SPY",
        "option-chain-type": "Standard",
        "settlement-type": "PM",
        "shares-per-contract": 100,
        "expiration-type": "Weekly",
        "deliverables": [
          {
            "id": 114830,
            "root-symbol": "SPY",
            "deliverable-type": "Shares",
            "description": "100 shares of SPY",
            "amount": "100.0",
            "symbol": "SPY",
            "instrument-type": "Equity",
            "percent": "100"
          }
        ],
        "symbols": [
          "SPY   230731C00370000",
          "SPY   230731P00370000",
          "SPY   230731C00380000",
          "SPY   230731P00380000"
        ],
        "streamer-symbols": [
          ".SPY230706C370",
          ".SPY230706P370"
        ]
      }
    ]
  },
  "context": "/option-chains/{symbol}/compact"
}

Schema

  • datarequiredobject (CompactOptionChainList)

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

    • itemsrequiredarray<object>{9 fields}

      Compact option chain objects for the underlying symbol.

  • contextrequiredstring

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

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.