Alpaca · Capability

Trader API — Calendar

Trader API — Calendar. 1 operations. Lead operation: Get Market Calendar info. Self-contained Naftiko capability covering one Alpaca business surface.

Run with Naftiko AlpacaCalendar

What You Can Do

GET
Getcalendar — Get Market Calendar info
/v1/v2/calendar

MCP Tools

get-market-calendar-info

Get Market Calendar info

read-only idempotent

Capability Spec

trading-calendar.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Trader API — Calendar
  description: 'Trader API — Calendar. 1 operations. Lead operation: Get Market Calendar info. Self-contained Naftiko capability
    covering one Alpaca business surface.'
  tags:
  - Alpaca
  - Calendar
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ALPACA_API_KEY: ALPACA_API_KEY
capability:
  consumes:
  - type: http
    namespace: trading-calendar
    baseUri: https://paper-api.alpaca.markets
    description: Trader API — Calendar business capability. Self-contained, no shared references.
    resources:
    - name: v2-calendar
      path: /v2/calendar
      operations:
      - name: getcalendar
        method: GET
        description: Get Market Calendar info
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: start
          in: query
          type: string
          description: The first date to retrieve data for (inclusive)
        - name: end
          in: query
          type: string
          description: The last date to retrieve data for (inclusive)
    authentication:
      type: apikey
      key: APCA-API-KEY-ID
      value: '{{env.ALPACA_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: trading-calendar-rest
    port: 8080
    description: REST adapter for Trader API — Calendar. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/v2/calendar
      name: v2-calendar
      description: REST surface for v2-calendar.
      operations:
      - method: GET
        name: getcalendar
        description: Get Market Calendar info
        call: trading-calendar.getcalendar
        with:
          start: rest.start
          end: rest.end
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: trading-calendar-mcp
    port: 9090
    transport: http
    description: MCP adapter for Trader API — Calendar. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-market-calendar-info
      description: Get Market Calendar info
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: trading-calendar.getcalendar
      with:
        start: tools.start
        end: tools.end
      outputParameters:
      - type: object
        mapping: $.