Capital.com Public API · Capability

Capital.com REST API — History

Capital.com REST API — History. 2 operations. Lead operation: Get Activity History. Self-contained Naftiko capability covering one Capital Com Public Api business surface.

Run with Naftiko Capital Com Public ApiHistory

What You Can Do

GET
Getactivityhistory — Get Activity History
/v1/api/v1/history/activity
GET
Gettransactionshistory — Get Transactions History
/v1/api/v1/history/transactions

MCP Tools

get-activity-history

Get Activity History

read-only idempotent
get-transactions-history

Get Transactions History

read-only idempotent

Capability Spec

capital-com-rest-history.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Capital.com REST API — History
  description: 'Capital.com REST API — History. 2 operations. Lead operation: Get Activity History. Self-contained Naftiko
    capability covering one Capital Com Public Api business surface.'
  tags:
  - Capital Com Public Api
  - History
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CAPITAL_COM_PUBLIC_API_API_KEY: CAPITAL_COM_PUBLIC_API_API_KEY
capability:
  consumes:
  - type: http
    namespace: capital-com-rest-history
    baseUri: https://api-capital.backend-capital.com
    description: Capital.com REST API — History business capability. Self-contained, no shared references.
    resources:
    - name: api-v1-history-activity
      path: /api/v1/history/activity
      operations:
      - name: getactivityhistory
        method: GET
        description: Get Activity History
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-v1-history-transactions
      path: /api/v1/history/transactions
      operations:
      - name: gettransactionshistory
        method: GET
        description: Get Transactions History
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: X-CAP-API-KEY
      value: '{{env.CAPITAL_COM_PUBLIC_API_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: capital-com-rest-history-rest
    port: 8080
    description: REST adapter for Capital.com REST API — History. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/v1/history/activity
      name: api-v1-history-activity
      description: REST surface for api-v1-history-activity.
      operations:
      - method: GET
        name: getactivityhistory
        description: Get Activity History
        call: capital-com-rest-history.getactivityhistory
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v1/history/transactions
      name: api-v1-history-transactions
      description: REST surface for api-v1-history-transactions.
      operations:
      - method: GET
        name: gettransactionshistory
        description: Get Transactions History
        call: capital-com-rest-history.gettransactionshistory
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: capital-com-rest-history-mcp
    port: 9090
    transport: http
    description: MCP adapter for Capital.com REST API — History. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: get-activity-history
      description: Get Activity History
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: capital-com-rest-history.getactivityhistory
      outputParameters:
      - type: object
        mapping: $.
    - name: get-transactions-history
      description: Get Transactions History
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: capital-com-rest-history.gettransactionshistory
      outputParameters:
      - type: object
        mapping: $.