Alpaca · Capability

Trader API — Accounts

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

Run with Naftiko AlpacaAccounts

What You Can Do

GET
Getaccount — Get account
/v1/v2/account

MCP Tools

get-account

Get account

read-only idempotent

Capability Spec

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