Account Information

List account rate of returns

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

Returns a list of rate of return percents for a given account. Will include timeframes available from the brokerage, for example "ALL", "1Y", "6M", "3M", "1M"

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

List of return rates with their timeframe

dataarray of objects

List of return percentages

1
{
2
"data": [
3
{
4
"timeframe": "ALL",
5
"return_percent": 5.97,
6
"created_date": "2024-07-30T22:51:49.746Z"
7
}
8
]
9
}