GET /wallets/:address
🔹 Get Wallet Positions
🌐 Endpoint
GET https://client.deframe.io/v1/wallets/:address
📝 Overview
Retrieve all current positions and balances for a specific wallet address across different protocols and assets.
🔑 Authentication
This API requires authentication using an API key. Include your API key in the request headers:
📋 Path Parameters
address
string
Ethereum wallet address
0x1234567890123456789012345678901234567890
📦 Response
Returns a JSON object containing:
address
: The queried wallet addressstats
: Object containing position information:underlying
: Array of collateral positionsasset
: Token informationaddress
: Contract addressdecimals
: Number of decimalssymbol
: Token symbolname
: Token name
balance
: Balance informationraw
: Raw balance amounthumanized
: Human-readable balancedecimals
: Number of decimals
balanceUSD
: USD value of balanceprice
: Current token priceliquidationThreshold
: Threshold for liquidation
debt
: Array of borrowed positionsasset
: Token informationaddress
: Contract addressdecimals
: Number of decimalssymbol
: Token symbolname
: Token name
balance
: Balance informationraw
: Raw balance amounthumanized
: Human-readable balancedecimals
: Number of decimals
balanceUSD
: USD value of debtborrowRate
: Current borrow interest rate
healthFactor
: Current health factor of positionsltv
: Current loan-to-value ratioliquidationPrice
: Price at which position will be liquidatedmaxBorrowValue
: Maximum additional borrowing power in USD
Example Response:
❌ Error Responses
400
Bad Request - Invalid address format
401
Unauthorized - Invalid or missing API key
404
Address not found or has no positions
429
Too many requests - Rate limit exceeded
500
Internal server error
Example Error Response:
📝 Notes
The response includes both collateral (underlying) and debt positions
All monetary values are provided in both raw and humanized formats
USD values are calculated using current market prices
Health factor below 1 indicates risk of liquidation
Negative maxBorrowValue indicates no additional borrowing power
Last updated