Skip to main content
GET
/
defi
/
lending
/
positions
Get user lending positions
curl --request GET \
  --url https://api.relayer.fi/v1/defi/lending/positions \
  --header 'Authorization: <api-key>'
{
  "totalSuppliedUsd": "1000.50",
  "totalBorrowedUsd": "250.25",
  "healthFactor": "2.5",
  "supplies": [
    {
      "symbol": "AVAX",
      "amount": "10.5",
      "amountUsd": "1000.50"
    }
  ],
  "borrows": [
    {
      "symbol": "USDC",
      "amount": "250.25",
      "amountUsd": "250.25"
    }
  ]
}

Authorizations

Authorization
string
header
required

Use this format: ApiKey <your_api_key>

Query Parameters

userAddress
string
required

User wallet address

Example:

"0xb322E239E5A32724633A595b8f8657F9cbb307B2"

chainId
number
required

Chain ID (43114 for Avalanche)

Example:

43114

Response

User positions retrieved successfully

totalSuppliedUsd
string
Example:

"1000.50"

totalBorrowedUsd
string
Example:

"250.25"

healthFactor
string
Example:

"2.5"

supplies
object[]
borrows
object[]