logo
Account Information

List account balances

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

A list of account balances for the specified account (one per currency that the account holds).

Execute an API Request

Path
accountIdstring (format: uuid)required

The ID of the account to get balances.

Query
userIdstringrequired

SnapTrade User ID

userSecretstringrequired

SnapTrade User Secret (generated when registering user)

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

Response fields

array of objects
object

Account Balance

1
[
2
{
3
"currency": {
4
"id": "87b24961-b51e-4db8-9226-f198f6518a89",
5
"code": "USD",
6
"name": "US Dollar"
7
},
8
"cash": 300.71,
9
"buying_power": 410.71
10
}
11
]