GET
/
v0
/
aave
/
user_position_summary
/
get
import { CompassApiSDK } from "@compass-labs/api-sdk";

const compassApiSDK = new CompassApiSDK({
  apiKeyAuth: "<YOUR_API_KEY_HERE>",
});

async function run() {
  const result = await compassApiSDK.aaveV3.userPositionSummary({});

  console.log(result);
}

run();
{
  "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

The chain to use.

Available options:
base:mainnet,
ethereum:mainnet,
arbitrum: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.