TD Ameritrade Holding · Capability

TD Ameritrade Accounts and Trading API — Options

TD Ameritrade Accounts and Trading API — Options. 1 operations. Lead operation: Get Option Chain. Self-contained Naftiko capability covering one Td Ameritrade Holding business surface.

Run with Naftiko Td Ameritrade HoldingOptions

What You Can Do

GET
Getoptionchain — Get Option Chain
/v1/marketdata/chains

MCP Tools

get-option-chain

Get Option Chain

read-only idempotent

Capability Spec

td-ameritrade-accounts-trading-options.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: TD Ameritrade Accounts and Trading API — Options
  description: 'TD Ameritrade Accounts and Trading API — Options. 1 operations. Lead operation: Get Option Chain. Self-contained
    Naftiko capability covering one Td Ameritrade Holding business surface.'
  tags:
  - Td Ameritrade Holding
  - Options
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TD_AMERITRADE_HOLDING_API_KEY: TD_AMERITRADE_HOLDING_API_KEY
capability:
  consumes:
  - type: http
    namespace: td-ameritrade-accounts-trading-options
    baseUri: https://api.tdameritrade.com/v1
    description: TD Ameritrade Accounts and Trading API — Options business capability. Self-contained, no shared references.
    resources:
    - name: marketdata-chains
      path: /marketdata/chains
      operations:
      - name: getoptionchain
        method: GET
        description: Get Option Chain
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: symbol
          in: query
          type: string
          description: Optionable security symbol
          required: true
        - name: contractType
          in: query
          type: string
          description: Type of contracts to return
        - name: strikeCount
          in: query
          type: integer
          description: Number of strikes above and below the at-the-money price
        - name: includeQuotes
          in: query
          type: boolean
          description: Include quotes for options in the option chain
        - name: strategy
          in: query
          type: string
          description: Passing a value returns a strategy chain
        - name: fromDate
          in: query
          type: string
          description: Only return expirations after this date (yyyy-MM-dd)
        - name: toDate
          in: query
          type: string
          description: Only return expirations before this date (yyyy-MM-dd)
    authentication:
      type: bearer
      token: '{{env.TD_AMERITRADE_HOLDING_API_KEY}}'
  exposes:
  - type: rest
    namespace: td-ameritrade-accounts-trading-options-rest
    port: 8080
    description: REST adapter for TD Ameritrade Accounts and Trading API — Options. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/marketdata/chains
      name: marketdata-chains
      description: REST surface for marketdata-chains.
      operations:
      - method: GET
        name: getoptionchain
        description: Get Option Chain
        call: td-ameritrade-accounts-trading-options.getoptionchain
        with:
          symbol: rest.symbol
          contractType: rest.contractType
          strikeCount: rest.strikeCount
          includeQuotes: rest.includeQuotes
          strategy: rest.strategy
          fromDate: rest.fromDate
          toDate: rest.toDate
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: td-ameritrade-accounts-trading-options-mcp
    port: 9090
    transport: http
    description: MCP adapter for TD Ameritrade Accounts and Trading API — Options. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: get-option-chain
      description: Get Option Chain
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: td-ameritrade-accounts-trading-options.getoptionchain
      with:
        symbol: tools.symbol
        contractType: tools.contractType
        strikeCount: tools.strikeCount
        includeQuotes: tools.includeQuotes
        strategy: tools.strategy
        fromDate: tools.fromDate
        toDate: tools.toDate
      outputParameters:
      - type: object
        mapping: $.