GET
/
v0
/
aave
/
user_position_per_token
/
get
from compassapisdk import CompassAPISDK, models


with CompassAPISDK(
    api_key_auth="<YOUR_API_KEY_HERE>",
) as compass_api_sdk:

    res = compass_api_sdk.aave_v3.user_position_per_token(chain=models.AaveUserPositionPerTokenChain.ARBITRUM_MAINNET, user="0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B", token=models.AaveUserPositionPerTokenToken.USDC)

    # Handle response
    print(res)
{
  "token_balance": "<string>",
  "stable_debt": "<string>",
  "variable_debt": "<string>",
  "principal_stable_debt": "<string>",
  "principal_variable_debt": "<string>",
  "stable_borrow_rate": "<string>",
  "stable_borrow_rate_for_new_loans": "<string>",
  "variable_borrow_rate": "<string>",
  "liquidity_rate": "<string>"
}

Authorizations

x-api-key
string
header
required

Your Compass API Key. Get your key here.

Query Parameters

chain
enum<string>
default:arbitrum:mainnet
required

The chain to use.

Available options:
base:mainnet,
ethereum:mainnet,
arbitrum:mainnet
user
string
default:0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B
required

The user to fetch the token-specific position of.

token
enum<string>
default:USDC
required

The symbol of the asset to fetch the user's position on..

Available options:
1INCH,
AAVE,
BAL,
cbBTC,
cbETH,
CRV,
crvUSD,
DAI,
ENS,
ETHx,
FRAX,
FXS,
GHO,
KNC,
LDO,
LINK,
LUSD,
MKR,
osETH,
PYUSD,
rETH,
RPL,
rsETH,
sDAI,
SNX,
STG,
sUSDe,
tBTC,
UNI,
USDC,
USDe,
USDS,
USDT,
WBTC,
weETH,
WETH,
wstETH,
ARB,
EURS,
MAI,
USDCe,
AERO,
EUR,
VIRTUAL

Response

200
application/json

Successful Response

The response is of type object.