GET
/
v0
/
morpho
/
markets
Python (SDK)
from compass_api_sdk import CompassAPI, models


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

    res = compass_api.morpho.markets(chain=models.MorphoMarketsChain.BASE_MAINNET)

    # Handle response
    print(res)
{
  "markets": [
    {
      "uniqueKey": "<string>",
      "lltv": 123,
      "oracleAddress": "<string>",
      "irmAddress": "<string>",
      "state": {
        "borrowApy": 123,
        "borrowAssets": 123,
        "borrowAssetsUsd": 123,
        "supplyApy": 123,
        "supplyAssets": 123,
        "supplyAssetsUsd": 123,
        "fee": 123,
        "utilization": 123
      },
      "weeklyApys": {
        "supplyApy": 123,
        "netSupplyApy": 123,
        "borrowApy": 123,
        "netBorrowApy": 123
      },
      "collateralAsset": {
        "address": "<string>",
        "symbol": "<string>",
        "name": "<string>",
        "decimals": 123
      },
      "loanAsset": {
        "address": "<string>",
        "symbol": "<string>",
        "name": "<string>",
        "decimals": 123
      }
    }
  ]
}

Authorizations

x-api-key
string
header
required

Your Compass API Key. Get your key here.

Query Parameters

chain
enum<string>
default:base:mainnet
required
Available options:
arbitrum:mainnet,
base:mainnet,
ethereum:mainnet
collateral_token
default:USDC

Collateral token to identify the market. A class representing the token.

This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.

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,
ETH,
AERO,
EUR,
VIRTUAL,
ezETH,
CYBER,
wrsETH,
eBTC,
EURC,
eUSDe,
FBTC,
LBTC,
PT-eUSDE-14AUG2025,
PT-eUSDE-29MAY2025,
PT-sUSDE-25SEP2025,
PT-sUSDE-31JUL2025,
PT-USDe-31JUL2025,
RLUSD,
USD₮0,
USDbC,
USDtb
loan_token
default:WETH

Loan token to identify the market. A class representing the token.

This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.

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,
ETH,
AERO,
EUR,
VIRTUAL,
ezETH,
CYBER,
wrsETH,
eBTC,
EURC,
eUSDe,
FBTC,
LBTC,
PT-eUSDE-14AUG2025,
PT-eUSDE-29MAY2025,
PT-sUSDE-25SEP2025,
PT-sUSDE-31JUL2025,
PT-USDe-31JUL2025,
RLUSD,
USD₮0,
USDbC,
USDtb

Response

200
application/json

Successful Response

The response is of type object.