Skip to content

Get Holdings

GET
/api/v1/wallets/{address}/holdings
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": {...}
}
address
required
Address
string
chain
Any of:
string

Filter by chain (e.g., ethereum, polygon, arbitrum)

min_value
Any of:
number

Minimum USD value filter

sort
SortOption

Sort order for results

string
default: value_desc
Allowed values: value_desc value_asc cost_desc cost_asc gain_desc gain_asc quantity_desc quantity_asc symbol_asc symbol_desc

Sort order for results

page
Page

Page number

integer
default: 1 >= 1

Page number

per_page
Per Page

Items per page

integer
default: 50 >= 1 <= 100

Items per page

owned_wallets
Any of:
Array<string>

All wallet addresses owned by the user

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>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}