naftiko: 1.0.0-alpha2 info: label: TradeStation API — Options description: 'TradeStation API — Options. 4 operations. Lead operation: Get option expirations. Self-contained Naftiko capability covering one Tradestation business surface.' tags: - Tradestation - Options created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: TRADESTATION_API_KEY: TRADESTATION_API_KEY capability: consumes: - type: http namespace: tradestation-options baseUri: https://api.tradestation.com description: TradeStation API — Options business capability. Self-contained, no shared references. resources: - name: v3-marketdata-options-expirations-underlying path: /v3/marketdata/options/expirations/{underlying} operations: - name: getoptionexpirations method: GET description: Get option expirations outputRawFormat: json outputParameters: - name: result type: object value: $. - name: v3-marketdata-options-riskreward path: /v3/marketdata/options/riskreward operations: - name: calculateoptionriskreward method: POST description: Calculate option risk/reward outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: v3-marketdata-options-spreadtypes path: /v3/marketdata/options/spreadtypes operations: - name: getoptionspreadtypes method: GET description: Get option spread types outputRawFormat: json outputParameters: - name: result type: object value: $. - name: v3-marketdata-options-strikes-underlying path: /v3/marketdata/options/strikes/{underlying} operations: - name: getoptionstrikes method: GET description: Get option strikes outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.TRADESTATION_API_KEY}}' exposes: - type: rest namespace: tradestation-options-rest port: 8080 description: REST adapter for TradeStation API — Options. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v3/marketdata/options/expirations/{underlying} name: v3-marketdata-options-expirations-underlying description: REST surface for v3-marketdata-options-expirations-underlying. operations: - method: GET name: getoptionexpirations description: Get option expirations call: tradestation-options.getoptionexpirations outputParameters: - type: object mapping: $. - path: /v1/v3/marketdata/options/riskreward name: v3-marketdata-options-riskreward description: REST surface for v3-marketdata-options-riskreward. operations: - method: POST name: calculateoptionriskreward description: Calculate option risk/reward call: tradestation-options.calculateoptionriskreward with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v3/marketdata/options/spreadtypes name: v3-marketdata-options-spreadtypes description: REST surface for v3-marketdata-options-spreadtypes. operations: - method: GET name: getoptionspreadtypes description: Get option spread types call: tradestation-options.getoptionspreadtypes outputParameters: - type: object mapping: $. - path: /v1/v3/marketdata/options/strikes/{underlying} name: v3-marketdata-options-strikes-underlying description: REST surface for v3-marketdata-options-strikes-underlying. operations: - method: GET name: getoptionstrikes description: Get option strikes call: tradestation-options.getoptionstrikes outputParameters: - type: object mapping: $. - type: mcp namespace: tradestation-options-mcp port: 9090 transport: http description: MCP adapter for TradeStation API — Options. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-option-expirations description: Get option expirations hints: readOnly: true destructive: false idempotent: true call: tradestation-options.getoptionexpirations outputParameters: - type: object mapping: $. - name: calculate-option-risk-reward description: Calculate option risk/reward hints: readOnly: false destructive: false idempotent: false call: tradestation-options.calculateoptionriskreward with: body: tools.body outputParameters: - type: object mapping: $. - name: get-option-spread-types description: Get option spread types hints: readOnly: true destructive: false idempotent: true call: tradestation-options.getoptionspreadtypes outputParameters: - type: object mapping: $. - name: get-option-strikes description: Get option strikes hints: readOnly: true destructive: false idempotent: true call: tradestation-options.getoptionstrikes outputParameters: - type: object mapping: $.