GET
/
v0
/
aave
/
user_position_summary
/
get
Python (SDK)
from compass_api_sdk import CompassAPI, models


with CompassAPI(
    api_key_auth="<YOUR_API_KEY_HERE>",
) as compass_api:

    res = compass_api.aave_v3.user_position_summary(chain=models.AaveUserPositionSummaryChain.BASE_MAINNET, user="0x3254f3b1918637ba924e3F18968Cb74219974b63")

    # Handle response
    print(res)
{
  "maximum_loan_to_value_ratio": "<string>",
  "health_factor": "<string>",
  "total_collateral": "<string>",
  "total_debt": "<string>",
  "available_borrows": "<string>",
  "liquidation_threshold": "<string>"
}

Authorizations

x-api-key
string
header
required

Your Compass API Key. Get your key here.

Query Parameters

chain
enum<string>
default:base:mainnet
required
Available options:
arbitrum:mainnet,
base:mainnet,
ethereum:mainnet
block
integer | null

Optional block number (defaults to latest).

user
string
default:0x3254f3b1918637ba924e3F18968Cb74219974b63
required

The user to get position summary for.

Response

200
application/json

Successful Response

The response is of type object.