Skip to main content

Holdings

GET /v1/holdings

Get comprehensive cryptocurrency holdings with asset distribution across wallets, cost basis, and performance metrics.

Required Permission: read:holdings

Request

curl -X GET "https://connect.kryptos.io/api/v1/holdings" \
-H "Authorization: Bearer ACCESS_TOKEN" \
-H "X-Client-Id: YOUR_CLIENT_ID" \
-H "X-Client-Secret: YOUR_CLIENT_SECRET"

Response

{
"holdings": [
{
"asset": {
"tokenId": "bitcoin",
"symbol": "BTC",
"publicName": "Bitcoin",
"chainId": "bitcoin",
"logoUrl": "https://...",
"type": "crypto",
"category": "crypto"
},
"totalQuantity": 2.5,
"costbasis": 100000,
"marketPrice": 50000,
"marketValue": 125000,
"unrealizedPnL": 25000,
"baseCurrency": "USD",
"24hrChange": 3.5,
"marketLinks": {
"coinmarketcap": "https://..."
},
"assetDistribution": [
{
"quantity": 1.5,
"account": {
"provider": "Ledger",
"walletId": "wallet_123"
},
"allocationPercentage": 60
},
{
"quantity": 1.0,
"account": {
"provider": "MetaMask",
"walletId": "wallet_456"
},
"allocationPercentage": 40
}
]
}
],
"summary": {
"totalValue": 250000,
"totalCostBasis": 200000,
"totalUnrealizedPnL": 50000,
"roiPercentage": 25,
"total24hrChange": 2.8
},
"user_id": "user_123",
"timestamp": 1640995200000
}

Response Fields

Holdings Object

FieldTypeDescription
assetobjectAsset details
totalQuantitynumberTotal quantity held
costbasisnumberTotal cost basis
marketPricenumberCurrent market price
marketValuenumberTotal market value
unrealizedPnLnumberUnrealized profit/loss
baseCurrencystringBase currency (USD)
24hrChangenumber24-hour price change %
assetDistributionarrayDistribution across wallets

Summary Object

FieldTypeDescription
totalValuenumberTotal portfolio value
totalCostBasisnumberTotal cost basis
totalUnrealizedPnLnumberTotal unrealized P&L
roiPercentagenumberReturn on investment %
total24hrChangenumberPortfolio 24hr change %