API reference
Holdings
Tokens held for you in Privy trading wallets.
List holdings
GET
/api/v1/holdingsAPI keyAggregates every open Privy position per token. These are holdings managed by Privy, not the contents of your own wallet. Sorted by USD value, largest first.
Response (array of)
mintstringToken mint.
namestringnullableToken name.
symbolstringnullableTicker symbol.
decimalsintegernullableToken decimals.
amountstringRaw balance in smallest units.
balancestringnullableExact decimal balance.
usdPricenumbernullableLatest USD price.
usdValuenumbernullableEstimated USD value, rounded to cents.
imageUrlstring · uriToken logo URL.
positionIdsstring[]Open positions that make up this holding.
sellInProgressbooleanTrue while a sell of this token is executing.
Errors
curl "https://privy.ac/api/v1/holdings" \
-H "X-API-Key: $PRIVY_API_KEY"{
"data": [
{
"mint": "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
"name": "Bonk",
"symbol": "Bonk",
"decimals": 5,
"amount": "161834512",
"balance": "1618.34512",
"usdPrice": 0.00000337,
"usdValue": 0.01,
"imageUrl": "https://privy.ac/api/token-image/DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
"positionIds": [
"4a3f2c1e-8b7d-4e6f-9a01-23456789abcd"
],
"sellInProgress": false
}
],
"requestId": "req_8f3a2c91d4e6b07f"
}