Skip to main content
GET
/
v2
/
earn
/
aave_markets
Python (SDK)
from compass_api_sdk import CompassAPI


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

    res = compass_api.earn.earn_aave_markets()

    # Handle response
    print(res)
{
  "markets": {
    "USDC": {
      "chains": {
        "base": {
          "a_token_address": "0x4e65fE4DbA92790696d040ac24Aa414708F5c0AB",
          "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "available_liquidity": "1234567.68",
          "borrow_apy": "7.35",
          "supply_apy": "5.10",
          "total_borrowed": "987654.32",
          "utilization_rate": "44.40"
        },
        "ethereum": {
          "a_token_address": "0x98C23E9d8f34FEFb1B7BD6a91B7FF122F4e16F5c",
          "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
          "available_liquidity": "2345678.11",
          "borrow_apy": "6.21",
          "supply_apy": "4.52",
          "total_borrowed": "1234567.89",
          "utilization_rate": "34.50"
        }
      },
      "max_supply_apy": {
        "a_token_address": "0x4e65fE4DbA92790696d040ac24Aa414708F5c0AB",
        "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
        "borrow_apy": "7.35",
        "chain": "base",
        "supply_apy": "5.10"
      }
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.compasslabs.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
required

Your Compass API Key. Get your key here.

Query Parameters

chain
enum<string> | null

Optional chain filter. If not provided, returns rates for all chains. The chain to use.

Available options:
base,
ethereum,
arbitrum,
hyperevm

Response

Successful Response

Response containing Aave market rates organized by token symbol.

markets
Markets · object
required

Market data keyed by token symbol. Each token contains chain-specific data and information about which chain has the highest supply APY.

Example:
{
"USDC": {
"chains": {
"base": {
"a_token_address": "0x4e65fE4DbA92790696d040ac24Aa414708F5c0AB",
"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"available_liquidity": "1234567.68",
"borrow_apy": "7.35",
"supply_apy": "5.10",
"total_borrowed": "987654.32",
"utilization_rate": "44.40"
},
"ethereum": {
"a_token_address": "0x98C23E9d8f34FEFb1B7BD6a91B7FF122F4e16F5c",
"address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"available_liquidity": "2345678.11",
"borrow_apy": "6.21",
"supply_apy": "4.52",
"total_borrowed": "1234567.89",
"utilization_rate": "34.50"
}
},
"max_supply_apy": {
"a_token_address": "0x4e65fE4DbA92790696d040ac24Aa414708F5c0AB",
"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"borrow_apy": "7.35",
"chain": "base",
"supply_apy": "5.10"
}
}
}