logo
Account Information

Get account detail

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

Returns account detail known to SnapTrade for the specified account.

The data returned here is always cached and refreshed once a day. 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

object

A single account at a brokerage.

idstring (format: uuid)

Unique identifier for the connected brokerage account. This is the UUID used to reference the account in SnapTrade. This ID should not change for as long as the connection stays active. If the connection is deleted and re-added, a new account ID will be generated.

brokerage_authorizationstring (format: uuid)

Unique identifier for the connection. This is the UUID used to reference the connection in SnapTrade.

portfolio_groupstring (format: uuid)

Portfolio Group ID. Portfolio Groups have been deprecated. Please contact support if you have a usecase for it.

namestring or null

A display name for the account. Either assigned by the user or by the brokerage itself. For certain brokerages, SnapTrade appends the brokerage name to the account name for clarity.

numberstring

The account number assigned by the brokerage. For some brokerages, this field may be masked for security reasons.

institution_namestring

The name of the brokerage that holds the account.

created_datestring (format: date-time)

Timestamp in ISO 8601 format indicating when the account was created in SnapTrade. This is not the account opening date at the brokerage.

metaobject

Additional information about the account, such as account type, status, etc. This information is specific to the brokerage and there's no standard format for this data. This field is deprecated and subject to removal in a future version.

cash_restrictionsarray of strings

This field is deprecated.

sync_statusobject

Contains status update for the account sync process between SnapTrade and the brokerage.

balanceobject

Contains balance related information for the account.

1
{
2
"id": "917c8734-8470-4a3e-a18f-57c3f2ee6631",
3
"brokerage_authorization": "87b24961-b51e-4db8-9226-f198f6518a89",
4
"portfolio_group": "2bcd7cc3-e922-4976-bce1-9858296801c3",
5
"name": "Robinhood Individual",
6
"number": "Q6542138443",
7
"institution_name": "Robinhood",
8
"created_date": "2024-07-23T22:50:22.761Z",
9
"meta": {
10
"type": "Margin",
11
"status": "ACTIVE",
12
"institution_name": "Robinhood"
13
},
14
"cash_restrictions": [],
15
"sync_status": {
16
"transactions": {
17
"initial_sync_completed": true,
18
"last_successful_sync": "2022-01-24",
19
"first_transaction_date": "2022-01-24"
20
},
21
"holdings": {
22
"initial_sync_completed": true,
23
"last_successful_sync": "2024-06-28 18:42:46.561408+00:00"
24
}
25
},
26
"balance": {
27
"total": {
28
"amount": 15363.23,
29
"currency": "USD"
30
}
31
}
32
}