Get Holdings Summary
GET
/api/v1/wallets/{address}/holdings/summary
const url = 'https://api.qeychain.xyz/api/v1/wallets/example/holdings/summary';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.qeychain.xyz/api/v1/wallets/example/holdings/summaryGet portfolio summary with aggregates and breakdowns.
Returns total_value, total_cost_basis, total_unrealized_gl, breakdown by chain, and risk metrics placeholder for QScore integration.
Response Format:
{
"success": true,
"data": {
"total_value": "50000.00",
"total_cost_basis": "35000.00",
"total_unrealized_gl": "15000.00",
"chains": [...],
"top_holdings": [...],
"risk_metrics": null
},
"meta": {...}
}
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”address
required
Address
string
Query Parameters
Section titled “Query Parameters”owned_wallets
Any of:
Array<string>
null
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Response Get Holdings Summary Api V1 Wallets Address Holdings Summary Get
object
key
additional properties
any
Examplegenerated
{}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}