TradeStation Options API

Retrieve options-related market data including expirations, strike prices, spread types, and risk/reward calculations.

Operations 4

GET /v3/marketdata/options/expirations/{underlying} Get option expirations #
GET /v3/marketdata/options/strikes/{underlying} Get option strikes #
GET /v3/marketdata/options/spreadtypes Get option spread types #
POST /v3/marketdata/options/riskreward Calculate option risk/reward #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/tradestation:tradestation-options-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

tradestation-options-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: TradeStation Options API
  description: The TradeStation API is a collection of RESTful brokerage and market data services used to build trading applications for stocks, options, futures, and cryptocurrency.
  version: '3.0'
  contact:
    name: TradeStation API Support
    url: https://api.tradestation.com/docs/
  termsOfService: https://www.tradestation.com/important-information/
servers:
- url: https://api.tradestation.com
  description: Production Server
- url: https://sim-api.tradestation.com
  description: Simulator Server (Paper Trading)
security:
- oauth2AuthCode: []
tags:
- name: Options
  description: Retrieve options-related market data including expirations, strike prices, spread types, and risk/reward calculations.
paths:
  /v3/marketdata/options/expirations/{underlying}:
    get:
      operationId: getOptionExpirations
      summary: Get option expirations
      description: Retrieves available option expiration dates for a given underlying symbol. Returns expiration dates along with expiration type information such as monthly, weekly, or quarterly.
      tags:
      - Options
      parameters:
      - $ref: '#/components/parameters/Underlying'
      responses:
        '200':
          description: Successfully retrieved option expirations
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OptionExpirationsResponse'
        '400':
          description: Invalid underlying symbol
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v3/marketdata/options/strikes/{underlying}:
    get:
      operationId: getOptionStrikes
      summary: Get option strikes
      description: Retrieves available strike prices for options on a given underlying symbol. Returns the list of strike prices available for trading.
      tags:
      - Options
      parameters:
      - $ref: '#/components/parameters/Underlying'
      responses:
        '200':
          description: Successfully retrieved option strikes
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OptionStrikesResponse'
        '400':
          description: Invalid underlying symbol
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v3/marketdata/options/spreadtypes:
    get:
      operationId: getOptionSpreadTypes
      summary: Get option spread types
      description: Retrieves the list of available option spread types supported by TradeStation. Returns spread type names and identifiers for use in multi-leg option order construction.
      tags:
      - Options
      responses:
        '200':
          description: Successfully retrieved option spread types
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OptionSpreadTypesResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v3/marketdata/options/riskreward:
    post:
      operationId: calculateOptionRiskReward
      summary: Calculate option risk/reward
      description: Calculates the risk and reward profile for one or more option positions. Returns theoretical profit/loss values at various price levels for the specified option strategy.
      tags:
      - Options
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RiskRewardRequest'
      responses:
        '200':
          description: Successfully calculated risk/reward
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RiskRewardResponse'
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    RiskRewardResponse:
      type: object
      description: Response containing the risk/reward analysis results.
      properties:
        MaxGain:
          type: number
          format: double
          description: The maximum potential gain.
        MaxLoss:
          type: number
          format: double
          description: The maximum potential loss.
        BreakEvenPoints:
          type: array
          description: Break-even price points.
          items:
            type: number
            format: double
    RiskRewardRequest:
      type: object
      description: Request body for option risk/reward calculation.
      required:
      - SpreadPrice
      - Legs
      properties:
        SpreadPrice:
          type: number
          format: double
          description: The net price of the option spread.
        Legs:
          type: array
          description: The option legs to include in the calculation.
          items:
            $ref: '#/components/schemas/OptionLeg'
    OptionExpiration:
      type: object
      description: An option expiration date with its type classification.
      properties:
        Date:
          type: string
          format: date
          description: The expiration date.
        Type:
          type: string
          description: The expiration type classification.
          enum:
          - Monthly
          - Weekly
          - Quarterly
          - EOM
    OptionExpirationsResponse:
      type: object
      description: Response containing option expiration dates for an underlying symbol.
      properties:
        Expirations:
          type: array
          description: List of option expirations.
          items:
            $ref: '#/components/schemas/OptionExpiration'
    OptionLeg:
      type: object
      description: A single leg of an option strategy.
      properties:
        Symbol:
          type: string
          description: The option symbol.
        Quantity:
          type: integer
          description: The number of contracts.
        TradeAction:
          type: string
          description: The trade action for this leg.
          enum:
          - BuyToOpen
          - BuyToClose
          - SellToOpen
          - SellToClose
    OptionStrikesResponse:
      type: object
      description: Response containing available strike prices for an underlying symbol.
      properties:
        Strikes:
          type: array
          description: List of available strike prices.
          items:
            type: number
            format: double
    OptionSpreadTypesResponse:
      type: object
      description: Response containing available option spread types.
      properties:
        SpreadTypes:
          type: array
          description: List of available spread types.
          items:
            type: object
            properties:
              Name:
                type: string
                description: The name of the spread type.
              Id:
                type: string
                description: The unique identifier of the spread type.
    Error:
      type: object
      description: Standard error response returned by the TradeStation API.
      properties:
        StatusCode:
          type: integer
          description: HTTP status code of the error.
        Message:
          type: string
          description: Human-readable description of the error.
        TraceId:
          type: string
          format: uuid
          description: Unique trace identifier for debugging and support purposes.
  parameters:
    Underlying:
      name: underlying
      in: path
      required: true
      description: The underlying symbol for options data retrieval.
      schema:
        type: string
  securitySchemes:
    oauth2AuthCode:
      type: oauth2
      description: OAuth 2.0 authorization code flow for accessing TradeStation API resources. Requires user authorization and supports token refresh.
      flows:
        authorizationCode:
          authorizationUrl: https://signin.tradestation.com/authorize
          tokenUrl: https://signin.tradestation.com/oauth/token
          scopes:
            marketdata: Access to market data endpoints
            readaccount: Read access to account information
            trade: Access to order placement and management
externalDocs:
  description: TradeStation API Documentation
  url: https://api.tradestation.com/docs/