TradeStation · Capability

TradeStation API — Market Data

TradeStation API — Market Data. 4 operations. Lead operation: Get bar chart data. Self-contained Naftiko capability covering one Tradestation business surface.

Run with Naftiko TradestationMarket Data

What You Can Do

GET
Getbars — Get bar chart data
/v1/v3/marketdata/barcharts/{symbol}
GET
Getquotes — Get quotes
/v1/v3/marketdata/quotes/{symbols}
GET
Getcryptopairs — Get cryptocurrency pairs
/v1/v3/marketdata/symbollists/cryptopairs/symbolnames
GET
Getsymbols — Get symbol details
/v1/v3/marketdata/symbols/{symbols}

MCP Tools

get-bar-chart-data

Get bar chart data

read-only idempotent
get-quotes

Get quotes

read-only idempotent
get-cryptocurrency-pairs

Get cryptocurrency pairs

read-only idempotent
get-symbol-details

Get symbol details

read-only idempotent

Capability Spec

tradestation-market-data.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: TradeStation API — Market Data
  description: 'TradeStation API — Market Data. 4 operations. Lead operation: Get bar chart data. Self-contained Naftiko capability
    covering one Tradestation business surface.'
  tags:
  - Tradestation
  - Market Data
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TRADESTATION_API_KEY: TRADESTATION_API_KEY
capability:
  consumes:
  - type: http
    namespace: tradestation-market-data
    baseUri: https://api.tradestation.com
    description: TradeStation API — Market Data business capability. Self-contained, no shared references.
    resources:
    - name: v3-marketdata-barcharts-symbol
      path: /v3/marketdata/barcharts/{symbol}
      operations:
      - name: getbars
        method: GET
        description: Get bar chart data
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: symbol
          in: path
          type: string
          description: The symbol to retrieve bar chart data for.
          required: true
        - name: interval
          in: query
          type: integer
          description: The interval for each bar. For minute bars, valid values are 1-1440. For daily, weekly, and monthly
            bars, use 1.
        - name: unit
          in: query
          type: string
          description: The unit of time for the bar interval.
        - name: barsBack
          in: query
          type: integer
          description: Number of bars to retrieve going back from the last date.
        - name: firstDate
          in: query
          type: string
          description: The start date for bar data retrieval.
        - name: lastDate
          in: query
          type: string
          description: The end date for bar data retrieval.
        - name: sessionTemplate
          in: query
          type: string
          description: The session template to use for filtering bar data. Controls which trading session data to include.
    - name: v3-marketdata-quotes-symbols
      path: /v3/marketdata/quotes/{symbols}
      operations:
      - name: getquotes
        method: GET
        description: Get quotes
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: v3-marketdata-symbollists-cryptopairs-symbolnames
      path: /v3/marketdata/symbollists/cryptopairs/symbolnames
      operations:
      - name: getcryptopairs
        method: GET
        description: Get cryptocurrency pairs
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: v3-marketdata-symbols-symbols
      path: /v3/marketdata/symbols/{symbols}
      operations:
      - name: getsymbols
        method: GET
        description: Get symbol details
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.TRADESTATION_API_KEY}}'
  exposes:
  - type: rest
    namespace: tradestation-market-data-rest
    port: 8080
    description: REST adapter for TradeStation API — Market Data. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/v3/marketdata/barcharts/{symbol}
      name: v3-marketdata-barcharts-symbol
      description: REST surface for v3-marketdata-barcharts-symbol.
      operations:
      - method: GET
        name: getbars
        description: Get bar chart data
        call: tradestation-market-data.getbars
        with:
          symbol: rest.symbol
          interval: rest.interval
          unit: rest.unit
          barsBack: rest.barsBack
          firstDate: rest.firstDate
          lastDate: rest.lastDate
          sessionTemplate: rest.sessionTemplate
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v3/marketdata/quotes/{symbols}
      name: v3-marketdata-quotes-symbols
      description: REST surface for v3-marketdata-quotes-symbols.
      operations:
      - method: GET
        name: getquotes
        description: Get quotes
        call: tradestation-market-data.getquotes
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v3/marketdata/symbollists/cryptopairs/symbolnames
      name: v3-marketdata-symbollists-cryptopairs-symbolnames
      description: REST surface for v3-marketdata-symbollists-cryptopairs-symbolnames.
      operations:
      - method: GET
        name: getcryptopairs
        description: Get cryptocurrency pairs
        call: tradestation-market-data.getcryptopairs
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v3/marketdata/symbols/{symbols}
      name: v3-marketdata-symbols-symbols
      description: REST surface for v3-marketdata-symbols-symbols.
      operations:
      - method: GET
        name: getsymbols
        description: Get symbol details
        call: tradestation-market-data.getsymbols
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: tradestation-market-data-mcp
    port: 9090
    transport: http
    description: MCP adapter for TradeStation API — Market Data. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: get-bar-chart-data
      description: Get bar chart data
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: tradestation-market-data.getbars
      with:
        symbol: tools.symbol
        interval: tools.interval
        unit: tools.unit
        barsBack: tools.barsBack
        firstDate: tools.firstDate
        lastDate: tools.lastDate
        sessionTemplate: tools.sessionTemplate
      outputParameters:
      - type: object
        mapping: $.
    - name: get-quotes
      description: Get quotes
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: tradestation-market-data.getquotes
      outputParameters:
      - type: object
        mapping: $.
    - name: get-cryptocurrency-pairs
      description: Get cryptocurrency pairs
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: tradestation-market-data.getcryptopairs
      outputParameters:
      - type: object
        mapping: $.
    - name: get-symbol-details
      description: Get symbol details
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: tradestation-market-data.getsymbols
      outputParameters:
      - type: object
        mapping: $.