Alpaca · Capability
Trader API — Account Activities
Trader API — Account Activities. 2 operations. Lead operation: Get account activities of one type. Self-contained Naftiko capability covering one Alpaca business surface.
What You Can Do
GET
Getaccountactivities
— Get account activities of one type
/v1/v2/account/activities
GET
Getaccountactivitiesbyactivitytype
— Get account activities of one type
/v1/v2/account/activities/{activity-type}
MCP Tools
get-account-activities-one-type
Get account activities of one type
read-only
idempotent
get-account-activities-one-type-2
Get account activities of one type
read-only
idempotent
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: Trader API — Account Activities
description: 'Trader API — Account Activities. 2 operations. Lead operation: Get account activities of one type. Self-contained
Naftiko capability covering one Alpaca business surface.'
tags:
- Alpaca
- Account Activities
created: '2026-05-19'
modified: '2026-05-19'
binds:
- namespace: env
keys:
ALPACA_API_KEY: ALPACA_API_KEY
capability:
consumes:
- type: http
namespace: trading-account-activities
baseUri: https://paper-api.alpaca.markets
description: Trader API — Account Activities business capability. Self-contained, no shared references.
resources:
- name: v2-account-activities
path: /v2/account/activities
operations:
- name: getaccountactivities
method: GET
description: Get account activities of one type
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: date
in: query
type: string
description: The date for which you want to see activities.
- name: until
in: query
type: string
description: The response will contain only activities submitted before this date. (Cannot be used with date.)
- name: after
in: query
type: string
description: The response will contain only activities submitted after this date. (Cannot be used with date.)
- name: direction
in: query
type: string
description: asc or desc (default desc if unspecified.)
- name: page_size
in: query
type: integer
description: The maximum number of entries to return in the response. (See the section on paging above.)
- name: page_token
in: query
type: string
description: The ID of the end of your current page of results.
- name: activity_types
in: query
type: string
description: A comma-separated list of the activity types to include in the response. If unspecified, activities
of all types will be returned. See ActivityType model for va
- name: v2-account-activities-activity_type
path: /v2/account/activities/{activity_type}
operations:
- name: getaccountactivitiesbyactivitytype
method: GET
description: Get account activities of one type
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: date
in: query
type: string
description: The date for which you want to see activities.
- name: until
in: query
type: string
description: The response will contain only activities submitted before this date. (Cannot be used with date.)
- name: after
in: query
type: string
description: The response will contain only activities submitted after this date. (Cannot be used with date.)
- name: direction
in: query
type: string
description: asc or desc (default desc if unspecified.)
- name: page_size
in: query
type: integer
description: The maximum number of entries to return in the response. (See the section on paging above.)
- name: page_token
in: query
type: string
description: The ID of the end of your current page of results.
authentication:
type: apikey
key: APCA-API-KEY-ID
value: '{{env.ALPACA_API_KEY}}'
placement: header
exposes:
- type: rest
namespace: trading-account-activities-rest
port: 8080
description: REST adapter for Trader API — Account Activities. One Spectral-compliant resource per consumed operation,
prefixed with /v1.
resources:
- path: /v1/v2/account/activities
name: v2-account-activities
description: REST surface for v2-account-activities.
operations:
- method: GET
name: getaccountactivities
description: Get account activities of one type
call: trading-account-activities.getaccountactivities
with:
date: rest.date
until: rest.until
after: rest.after
direction: rest.direction
page_size: rest.page_size
page_token: rest.page_token
activity_types: rest.activity_types
outputParameters:
- type: object
mapping: $.
- path: /v1/v2/account/activities/{activity-type}
name: v2-account-activities-activity-type
description: REST surface for v2-account-activities-activity_type.
operations:
- method: GET
name: getaccountactivitiesbyactivitytype
description: Get account activities of one type
call: trading-account-activities.getaccountactivitiesbyactivitytype
with:
date: rest.date
until: rest.until
after: rest.after
direction: rest.direction
page_size: rest.page_size
page_token: rest.page_token
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: trading-account-activities-mcp
port: 9090
transport: http
description: MCP adapter for Trader API — Account Activities. One tool per consumed operation, routed inline through this
capability's consumes block.
tools:
- name: get-account-activities-one-type
description: Get account activities of one type
hints:
readOnly: true
destructive: false
idempotent: true
call: trading-account-activities.getaccountactivities
with:
date: tools.date
until: tools.until
after: tools.after
direction: tools.direction
page_size: tools.page_size
page_token: tools.page_token
activity_types: tools.activity_types
outputParameters:
- type: object
mapping: $.
- name: get-account-activities-one-type-2
description: Get account activities of one type
hints:
readOnly: true
destructive: false
idempotent: true
call: trading-account-activities.getaccountactivitiesbyactivitytype
with:
date: tools.date
until: tools.until
after: tools.after
direction: tools.direction
page_size: tools.page_size
page_token: tools.page_token
outputParameters:
- type: object
mapping: $.