Get Portfolio Summary
Changed onGet a high-level summary of a user's portfolio including total value, available balance, and unrealized P&L.
Request
- Base URLhttps://api.privy.io
- URLhttps://api.privy.io/v1/kraken_embed/users/{user_id}/summary
- AuthHTTP basic
Path parameters
The ID of the Privy user.
Query parameters
A string-encoded boolean query parameter on including current day profit and loss.
Headers
ID of your Privy app.
Response
Portfolio summary retrieved successfully.
Example response
{
"data": {
"result": {
"timestamp": "2024-04-15T12:00:00Z",
"currency": "USD",
"portfolio_value": "35000.00",
"withheld_value": "0.00",
"open_orders": "0.00",
"available_balance": "35000.00",
"lots_upnl": "5000.00",
"cost_basis": "30000.00",
"current_day_pnl": null
}
}
}Changes
- breaking
the
/response's property type changed fromobjectnullto no type for status - breaking
removed the required property
//from the response with the status - breaking
removed the required property
//from the response with the status - breaking
removed the required property
//from the response with the status - breaking
removed the required property
//from the response with the status - breaking
removed the required property
//from the response with the status - breaking
removed the required property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - info
added
subschema #2to the/response propertyanyOflist for the response status
- breaking