For AI agents: the documentation index is available at https://docs.snaptrade.com/llms.txt, and the comprehensive documentation index is available at https://docs.snaptrade.com/llms-full.txt. The complete public OpenAPI specification is available at https://docs.snaptrade.com/openapi.yaml. Complete public OpenAPI specification with all documented operations, schemas, servers, and authentication requirements. Use it for SDK generation and API tooling; beta operations are marked x-beta. Markdown versions of documentation pages are available by appending .md to the URL path.
Account Information

List account transactions

get
https://api.snaptrade.com/accounts/{accountId}/transactions

This endpoint replaces the deprecated list account activities endpoint.

Returns the account's cached transaction history, most recent date first. Transactions with the same timestamp are ordered by descending internal activity ID.

History refreshes daily. Timing and available history depend on the brokerage. A disabled connection continues to return its last cached history.

Execute an API Request

Authentication Method

Use a Commercial API Key when your app manages users and their connection experience.

Credentials
Path
accountIdstring (format: uuid)required

Unique identifier for the connected brokerage account. This is the UUID used to reference the account in SnapTrade.

Query
startDatestring (format: date)

First date to include (UTC). Defaults to the earliest available transaction.

endDatestring (format: date)

Last date to include (UTC). Defaults to the latest available transaction.

typestring

Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values:

  • BUY - Asset bought.
  • SELL - Asset sold.
  • BUY_TO_OPEN - Option bought to open a long position.
  • BUY_TO_CLOSE - Option bought to close a short position.
  • SELL_TO_OPEN - Option sold to open a short position.
  • SELL_TO_CLOSE - Option sold to close a long position.
  • DIVIDEND - Dividend payout.
  • SUBSTITUTE_DIVIDEND - Payment in lieu of a dividend.
  • CAPITAL_GAINS_LONG - Long-term capital-gain distribution.
  • CAPITAL_GAINS_SHORT - Short-term capital-gain distribution.
  • CONTRIBUTION - Cash contribution.
  • WITHDRAWAL - Cash withdrawal.
  • REI - Dividend reinvestment.
  • STOCK_DIVIDEND - A type of dividend where a company distributes shares instead of cash
  • INTEREST - Interest deposited into the account.
  • FEE - Fee withdrawn from the account.
  • TAX - A tax related fee.
  • OPTIONEXPIRATION - Option expiration event.
  • OPTIONASSIGNMENT - Option assignment event.
  • OPTIONEXERCISE - Option exercise event.
  • TRANSFER - Transfer of assets from one account to another.
  • SPLIT - A stock share split.
offsetinteger (format: int32)

An integer that specifies the starting point of the paginated results. Default is 0.

limitinteger (format: int32)

An integer that specifies the maximum number of transactions to return. Default of 1000.

Request
Installation
$
npm install snaptrade-typescript-sdk
1
import {
2
Snaptrade,
3
SnaptradeAuth,
4
} from "snaptrade-typescript-sdk";
5
6
const snaptrade = new Snaptrade({
7
auth: SnaptradeAuth.commercialApiKey({
8
consumerKey: "CONSUMER_KEY",
9
clientId: "CLIENT_ID",
10
}),
11
});
12
13
const response =
14
await snaptrade.accountInformation.getAccountTransactions(
15
{
16
accountId:
17
"917c8734-8470-4a3e-a18f-57c3f2ee6631",
18
startDate: "2022-01-24",
19
endDate: "2022-01-24",
20
type: "BUY,DIVIDEND",
21
userId: "USER_ID",
22
userSecret: "USER_SECRET",
23
},
24
);
25
console.log(response.data);

Response fields

object

A page of account transactions.

dataarray of objects

Matching transactions in descending date order.

Details about the pagination of the results.

1
{
2
"data": [
3
{
4
"transaction_id": "TXN-20261116-003",
5
"type": "BUY",
6
"date": "2026-11-16T15:42:18.123456Z",
7
"description": "Bought 2 AAPL shares",
8
"instrument": {
9
"kind": "stock",
10
"id": "1ef3a5d3-4a9b-40b2-b8d1-cc35f74d6324",
11
"symbol": "AAPL",
12
"raw_symbol": "AAPL",
13
"description": "Apple Inc.",
14
"currency": "USD",
15
"exchange": "XNAS",
16
"figi_instrument": {
17
"figi_code": "BBG000B9Y5X2",
18
"figi_share_class": "BBG001S5N8V8"
19
}
20
},
21
"priced_in": {
22
"kind": "cash",
23
"code": "EUR"
24
},
25
"amount": "-651.3",
26
"price": "325",
27
"units": "2",
28
"fee": "1.3",
29
"fx_rate": "1.032"
30
}
31
],
32
"pagination": {
33
"offset": 0,
34
"limit": 1000,
35
"total": 1
36
}
37
}