users
GET /users/{id}/balance/history
Changed onGet the user's historical portfolio balance data
Request
- Base URLhttps://api.audius.co/v1
- Auth
- none
- or OAuth 2Authorization code/v1/oauth/authorizeToken URL/v1/oauth/tokenScopesread
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
A User ID
Query parameters
start_timestring date-time
Start time for the balance history query (ISO 8601 format). Defaults to 7 days ago.
end_timestring date-time
End time for the balance history query (ISO 8601 format). Defaults to now.
granularity'hourly' | 'daily'
Data granularity. 'hourly' returns hourly data points, 'daily' returns daily aggregated data. Defaults to 'hourly'.
user_idstring
The user ID of the user making the request
Headers
Encoded-Data-Messagestring
The data that was signed by the user for signature recovery
Encoded-Data-Signaturestring
The signature of data, used for signature recovery
Response
Success
Example response
{
"data": [
{
"timestamp": 1704067200,
"balance_usd": 1234.56
}
]
}Changes
- info
the endpoint scheme security
OAuth2was added to the API
- info