Skip to main content
GET
/
defi
/
lending
/
markets
Get AAVE markets data
curl --request GET \
  --url https://api.relayer.fi/v1/defi/lending/markets \
  --header 'Authorization: <api-key>'
{
  "userState": {},
  "supplyReserves": [
    {
      "symbol": "USDC",
      "name": "USD Coin",
      "tokenAddress": "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",
      "supplyApy": "0.0523",
      "supplyApyFormatted": "5.23%",
      "userBalance": "1000.50",
      "userBalanceUsd": "1000.50",
      "suppliableAmount": "1000.50",
      "suppliableAmountUsd": "1000.50",
      "borrowableAmount": "800.40",
      "borrowableAmountUsd": "800.40",
      "usdExchangeRate": "1.00",
      "canBeCollateral": true,
      "canBeBorrowed": true,
      "isInIsolationMode": false
    }
  ],
  "allMarketsData": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Use this format: ApiKey <your_api_key>

Query Parameters

userAddress
string

User address to get personalized data (optional)

Example:

"0xb322E239E5A32724633A595b8f8657F9cbb307B2"

chainId
enum<number>
required

Chain ID (43114 for Avalanche)

Available options:
43114,
43113
Example:

43114

Response

Markets data retrieved successfully

supplyReserves
object[]
required

List of available supply reserves with market data

userState
object

User state data if userAddress was provided

allMarketsData
string[]

All markets raw data from AAVE