tastytradeDeveloper Docs
Legacy ↗

API Reference / Instruments

Get Equity Option

getInstrumentsEquityOptionsSymbol
get/instruments/equity-options/{symbol}

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

Returns a single equity option instrument for the given symbol in OCC symbology (e.g. `SPY 230731C00393000`). Remember to URL-encode the embedded spaces.

Code samples

curl -X GET 'https://api.cert.tastyworks.com/instruments/equity-options/FB    180629C00200000?active=true' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'User-Agent: tastytrade-docs-example/1.0'

Parameters

NameInTypeDescription
symbol*pathstringThe symbol of the equity option using OCC Symbology, i.e. `FB 180629C00200000`
e.g. "FB 180629C00200000"
activequerybooleanWhether an option is available for trading with the broker. Terminology is somewhat misleading as this is generally used to filter non-standard / flex options out.
e.g. true

Responses

200The equity option instrument for the requested symbol.application/json

Example response

{
  "data": {
    "active": true,
    "days-to-expiration": 1,
    "exercise-style": "American",
    "expiration-date": "2023-07-31",
    "expiration-type": "Weekly",
    "expires-at": "2023-07-31T20:15:00.000+00:00",
    "halted-at": "2024-01-15T14:30:00.000Z",
    "instrument-type": "Equity Option",
    "is-closing-only": false,
    "listed-market": "string",
    "market-time-instrument-collection": "string",
    "old-security-number": "string",
    "option-chain-type": "Standard",
    "option-type": "C",
    "root-symbol": "SPY",
    "settlement-type": "PM",
    "shares-per-contract": 100,
    "stops-trading-at": "2023-07-31T20:15:00.000+00:00",
    "streamer-symbol": ".SPY230731C393",
    "strike-price": "393.0",
    "symbol": "SPY   230731C00393000",
    "underlying-symbol": "SPY"
  },
  "context": "/instruments/equity-options/{symbol}"
}

Schema

  • datarequiredobject (EquityOption)

    An equity option contract identified by its OCC symbol (e.g. `SPY 230731C00393000`).

    • activeboolean

      Whether the option is currently available for trading with the broker.

      example: true

    • days-to-expirationinteger <int32>

      Number of days remaining until the option expires.

      example: 1

    • exercise-stylestring

      Exercise style of the option, e.g. `American` or `European`.

      example: "American"

    • expiration-datestring <date>

      Calendar date on which the option expires (ISO-8601).

      example: "2023-07-31"

    • expiration-typestring

      Expiration classification, e.g. `Regular`, `Weekly`, or `Quarterly`.

      example: "Weekly"

    • expires-atstring <date-time>

      Exact timestamp at which the option expires (ISO-8601).

      example: "2023-07-31T20:15:00.000+00:00"

    • halted-atstring <date-time>
    • instrument-typestring

      Instrument type discriminator; always `Equity Option` for this model.

      example: "Equity Option"

    • is-closing-onlyboolean

      Whether the option is restricted to closing transactions only.

      example: false

    • listed-marketstring
    • market-time-instrument-collectionstring
    • old-security-numberstring
    • option-chain-typestring

      Type of option chain the contract belongs to, e.g. `Standard`.

      example: "Standard"

    • option-typestring

      Whether the option is a call (`C`) or a put (`P`).

      example: "C"

    • root-symbolstring

      Root symbol of the option, typically the underlying ticker.

      example: "SPY"

    • settlement-typestring

      Settlement type, e.g. `PM` or `AM`.

      example: "PM"

    • shares-per-contractinteger <int32>

      Number of underlying shares deliverable per contract.

      example: 100

    • stops-trading-atstring <date-time>

      Timestamp at which the option stops trading (ISO-8601).

      example: "2023-07-31T20:15:00.000+00:00"

    • streamer-symbolstring

      Symbol used to subscribe to market data on the DXLink streamer.

      example: ".SPY230731C393"

    • strike-pricestring <decimal>

      Strike price of the option. Decimal value serialized as a JSON string (e.g. "150.25").

      example: "393.0"

    • symbolstring

      The equity option symbol in OCC format.

      example: "SPY 230731C00393000"

    • underlying-symbolstring

      Ticker symbol of the underlying equity.

      example: "SPY"

  • contextrequiredstring

    example: "/instruments/equity-options/{symbol}"

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 equity option exists for the given symbol. Verify the OCC symbol and that spaces are URL-encoded.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.