Account Information

List account positions

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

Returns a list of stock/ETF/crypto/mutual fund positions in the specified account. For option positions, please use the options endpoint.

The data returned here is cached. How long the data is cached for varies by brokerage. Check the brokerage integrations doc and look for "Cache Expiry Time" to see the exact value for a specific brokerage. If you need real-time data, please use the manual refresh endpoint.

Execute an API Request

Path
accountIdstring (format: uuid)required

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

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.

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

Response fields

array of objects
object

Describes a single stock/ETF/crypto/mutual fund position in an account.

1
[
2
{
3
"symbol": {
4
"symbol": {
5
"id": "2bcd7cc3-e922-4976-bce1-9858296801c3",
6
"symbol": "VAB.TO",
7
"raw_symbol": "VAB",
8
"description": "VANGUARD CDN AGGREGATE BOND INDEX ETF",
9
"currency": {
10
"id": "87b24961-b51e-4db8-9226-f198f6518a89",
11
"code": "USD",
12
"name": "US Dollar"
13
},
14
"exchange": {
15
"id": "2bcd7cc3-e922-4976-bce1-9858296801c3",
16
"code": "TSX",
17
"mic_code": "XTSE",
18
"name": "Toronto Stock Exchange",
19
"timezone": "America/New_York",
20
"start_time": "09:30:00",
21
"close_time": "16:00:00",
22
"suffix": ".TO"
23
},
24
"type": {
25
"id": "2bcd7cc3-e922-4976-bce1-9858296801c3",
26
"code": "cs",
27
"description": "Common Stock",
28
"is_supported": true
29
},
30
"figi_code": "BBG000B9XRY4",
31
"figi_instrument": {
32
"figi_code": "BBG000B9Y5X2",
33
"figi_share_class": "BBG001S5N8V8"
34
},
35
"currencies": [
36
{
37
"id": "87b24961-b51e-4db8-9226-f198f6518a89",
38
"code": "USD",
39
"name": "US Dollar"
40
}
41
]
42
},
43
"id": "2bcd7cc3-e922-4976-bce1-9858296801c3",
44
"description": "VANGUARD CDN AGGREGATE BOND INDEX ETF",
45
"local_id": "3291231",
46
"is_quotable": true,
47
"is_tradable": true
48
},
49
"units": 40,
50
"price": 113.15,
51
"open_pnl": 0.44,
52
"average_purchase_price": 108.3353,
53
"fractional_units": 1.44
54
}
55
]