Kraken Embed
Get Portfolio Details
Get detailed portfolio information for a user including asset balances, values, and positions.
get/v1/kraken_embed/users/{user_id}/details
Request
- Base URLhttps://api.privy.io
- URLhttps://api.privy.io/v1/kraken_embed/users/{user_id}/details
- AuthHTTP basic
Path parameters
user_idstring required
The ID of the Privy user.
Query parameters
quotestring
Headers
privy-app-idstring required
ID of your Privy app.
Response
Portfolio details retrieved successfully.
Example response
{
"data": {
"result": {
"timestamp": "2024-04-15T12:00:00Z",
"currency": "USD",
"assets": [
{
"asset": "BTC",
"class": "currency",
"cash_balance": "0.15000000",
"index_price": "66000.00",
"cash_value": "9900.00",
"held_orders_spot": "0.00000000",
"avail_trade": "0.15000000",
"avail_trade_value": "9900.00",
"lots_upnl": "0.00",
"avg_entry_price": "65000.00",
"cost_basis": "9750.00"
}
]
}
}
}Changes
No recorded changes to this operation across all 60 revisions of this API.