Get Holdings
GET
/api/v1/wallets/{address}/holdings
const url = 'https://api.qeychain.xyz/api/v1/wallets/example/holdings?sort=value_desc&page=1&per_page=50';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?sort=value_desc&page=1&per_page=50'Get current holdings with full context.
Returns holdings with symbol, chain, quantity, current_value, cost_basis, and unrealized_gl. Supports filtering by chain and minimum value, and various sorting options.
Response Format:
{
"success": true,
"data": [
{
"symbol": "ETH",
"chain": "ethereum",
"quantity": "1.5",
"current_value": "4500.00",
"cost_basis": "3000.00",
"unrealized_gl": "1500.00",
...
}
],
"meta": {...},
"pagination": {...}
}
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”address
required
Address
string
Query Parameters
Section titled “Query Parameters”sort
SortOption
Sort order for results
string
Sort order for results
page
Page
Page number
integer
Page number
per_page
Per Page
Items per page
integer
Items per page
owned_wallets
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Response Get Holdings Api V1 Wallets Address Holdings 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" } ]}