Skip to main content
GET
/
v2
/
credit
/
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.credit.credit_morpho_markets(chain=models.V2CreditMorphoMarketsChain.ETHEREUM)

    # Handle response
    print(res)
{
  "morpho": "<string>",
  "markets": [
    {
      "available_liquidity": "26607268.0000000000",
      "borrow_apy": "4.4410000000",
      "collateral_token": "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf",
      "collateral_token_decimals": 8,
      "collateral_token_symbol": "cbBTC",
      "fee": "0.0000000000",
      "irm": "0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC",
      "lltv": "86.0000000000",
      "loan_token": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
      "loan_token_decimals": 6,
      "loan_token_symbol": "USDC",
      "market_id": "0x64d65c9a2d91c36d56fbc42d69e979335320169b3df63bf92789e2c8883fcc64",
      "oracle": "0xA6D6950c9F177F1De7f7757FB33539e3Ec60182a",
      "supply_apy": "4.0110000000",
      "total_borrow_assets": "247694465.0000000000",
      "total_supply_assets": "274301733.0000000000",
      "utilization": "90.3000000000"
    }
  ]
}

Authorizations

x-api-key
string
header
required

Your Compass API Key. Get your key here.

Query Parameters

chain
enum<string>
default:ethereum
required
Available options:
arbitrum,
base,
bsc,
ethereum,
tempo

Response

Successful Response

Curated Morpho Blue lending markets, read on-chain per request.

morpho
string
required

Morpho Blue singleton contract the markets were read from.

markets
MorphoLendingMarket · object[]

Curated lending markets with live LLTV, APYs, utilization, and liquidity.

Example:
[
{
"available_liquidity": "26607268.0000000000",
"borrow_apy": "4.4410000000",
"collateral_token": "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf",
"collateral_token_decimals": 8,
"collateral_token_symbol": "cbBTC",
"fee": "0.0000000000",
"irm": "0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC",
"lltv": "86.0000000000",
"loan_token": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"loan_token_decimals": 6,
"loan_token_symbol": "USDC",
"market_id": "0x64d65c9a2d91c36d56fbc42d69e979335320169b3df63bf92789e2c8883fcc64",
"oracle": "0xA6D6950c9F177F1De7f7757FB33539e3Ec60182a",
"supply_apy": "4.0110000000",
"total_borrow_assets": "247694465.0000000000",
"total_supply_assets": "274301733.0000000000",
"utilization": "90.3000000000"
}
]