Kraken Embed
Get Portfolio Summary
Get a high-level summary of a user's portfolio including total value, available balance, and unrealized P&L.
get/v1/kraken_embed/users/{user_id}/summary
Path parameters
user_idstring required
The ID of the Privy user.
Query parameters
quotestring
include[current_day_pnl]'true' | 'false'
A string-encoded boolean query parameter on including current day profit and loss.
Headers
privy-app-idstring required
ID of your Privy app.
Response
Portfolio summary retrieved successfully.
Example response
{
"data": {
"result": {
"available_balance": "35000.00",
"cost_basis": "30000.00",
"currency": "USD",
"current_day_pnl": null,
"lots_upnl": "5000.00",
"open_orders": "0.00",
"portfolio_value": "35000.00",
"timestamp": "2024-04-15T12:00:00Z",
"withheld_value": "0.00"
}
}
}