Account Information

List all accounts for the user, plus balances, positions, and orders for each account.

get
https://api.snaptrade.com/api/v1/holdings

Deprecated, please use the account-specific holdings endpoint instead.

List all accounts for the user, plus balances, positions, and orders for each account.

Execute an API Request

Query
userIdstringrequired

SnapTrade User ID. This is chosen by the API partner and can be any string that is a) unique to the user, and b) immutable for the user. It is recommended to NOT use email addresses for this property because they are usually not immutable.

userSecretstringrequired

SnapTrade User Secret. This is a randomly generated string and should be stored securely. If compromised, please rotate it via the rotate user secret endpoint.

brokerage_authorizationsstring (format: uuid)

Optional. Comma separated list of authorization IDs (only use if filtering is needed on one or more authorizations).

Authorization
Request
Installation
$
npm install snaptrade-typescript-sdk
1
Loading...

Response fields

array of objects
object

Account Holdings

1
[
2
{
3
"account": {
4
"id": "2bcd7cc3-e922-4976-bce1-9858296801c3",
5
"brokerage_authorization": {
6
"id": "87b24961-b51e-4db8-9226-f198f6518a89",
7
"created_date": "2024-08-20T21:56:19.123Z",
8
"brokerage": {
9
"id": "ebf91a5b-0920-4266-9e36-f6cfe8c40946",
10
"slug": "ROBINHOOD",
11
"name": "Robinhood",
12
"display_name": "Robinhood",
13
"description": "Robinhood is an American multinational financial services corporation based in Menlo Park, California.",
14
"aws_s3_logo_url": "https://passiv-brokerage-logos.s3.ca-central-1.amazonaws.com/robinhood-logo.png",
15
"aws_s3_square_logo_url": "https://passiv-brokerage-logos.s3.ca-central-1.amazonaws.com/robinhood-logo-square.png",
16
"url": "https://robinhood.com",
17
"enabled": true,
18
"maintenance_mode": true,
19
"allows_trading": true,
20
"allows_fractional_units": true,
21
"has_reporting": true,
22
"is_real_time_connection": true,
23
"brokerage_type": {
24
"id": "2bcd7cc3-e922-4976-bce1-9858296801c3",
25
"name": "Traditional Brokerage"
26
},
27
"exchanges": [
28
"2bcd7cc3-e922-4976-bce1-9858296801c3",
29
"4bcd8cc3-c122-4974-dc21-1858296801f4"
30
],
31
"open_url": "string"
32
},
33
"name": "Connection-1",
34
"type": "trade",
35
"disabled": false,
36
"disabled_date": "2022-01-21T20:11:19.217Z",
37
"meta": {
38
"identifier": 123456
39
},
40
"updated_date": "2024-08-20T21:56:20.057Z",
41
"is_eligible_for_payout": true
42
},
43
"portfolio_group": "2bcd7cc3-e922-4976-bce1-9858296801c3",
44
"name": "Registered Retirement Savings Account",
45
"number": "Q6542138443",
46
"institution_name": "Alpaca",
47
"sync_status": {
48
"transactions": {
49
"initial_sync_completed": true,
50
"last_successful_sync": "2022-01-24",
51
"first_transaction_date": "2022-01-24"
52
},
53
"holdings": {
54
"initial_sync_completed": true,
55
"last_successful_sync": "2024-06-28 18:42:46.561408+00:00"
56
}
57
},
58
"meta": {
59
"type": "Margin",
60
"status": "ACTIVE",
61
"institution_name": "Alpaca"
62
}
63
},
64
"balances": [
65
{
66
"currency": {
67
"id": "87b24961-b51e-4db8-9226-f198f6518a89",
68
"code": "USD",
69
"name": "US Dollar"
70
},
71
"cash": 300.71,
72
"buying_power": 410.71
73
}
74
],
75
"positions": [
76
{
77
"symbol": {
78
"symbol": {
79
"id": "2bcd7cc3-e922-4976-bce1-9858296801c3",
80
"symbol": "VAB.TO",
81
"raw_symbol": "VAB",
82
"description": "VANGUARD CDN AGGREGATE BOND INDEX ETF",
83
"currency": {
84
"id": "87b24961-b51e-4db8-9226-f198f6518a89",
85
"code": "USD",
86
"name": "US Dollar"
87
},
88
"exchange": {
89
"id": "2bcd7cc3-e922-4976-bce1-9858296801c3",
90
"code": "TSX",
91
"mic_code": "XTSE",
92
"name": "Toronto Stock Exchange",
93
"timezone": "America/New_York",
94
"start_time": "09:30:00",
95
"close_time": "16:00:00",
96
"suffix": ".TO"
97
},
98
"type": {
99
"id": "2bcd7cc3-e922-4976-bce1-9858296801c3",
100
"code": "cs",
101
"description": "Common Stock",
102
"is_supported": true
103
},
104
"figi_code": "BBG000B9XRY4",
105
"figi_instrument": {
106
"figi_code": "BBG000B9Y5X2",
107
"figi_share_class": "BBG001S5N8V8"
108
},
109
"currencies": [
110
{
111
"id": "87b24961-b51e-4db8-9226-f198f6518a89",
112
"code": "USD",
113
"name": "US Dollar"
114
}
115
]
116
},
117
"id": "2bcd7cc3-e922-4976-bce1-9858296801c3",
118
"description": "VANGUARD CDN AGGREGATE BOND INDEX ETF",
119
"local_id": "3291231",
120
"is_quotable": true,
121
"is_tradable": true
122
},
123
"units": 40,
124
"price": 113.15,
125
"open_pnl": 0.44,
126
"average_purchase_price": 108.3353,
127
"fractional_units": 1.44
128
}
129
],
130
"total_value": {
131
"value": 32600.71,
132
"currency": "USD"
133
}
134
}
135
]