Skip to main content
GET
/
v1
/
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.morpho_markets(chain=models.V1MorphoMarketsChain.BASE, collateral_token="USDC", loan_token="USDC")

    # 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
required
Available options:
arbitrum,
base,
ethereum
collateral_token
string | null
default:USDC

Symbol or address of the collateral token to filter markets by. Optional parameter. A token identifier - either a supported symbol (e.g., USDC, WETH) or a valid Ethereum address (0x...)

Examples:

"USDC"

"WETH"

"0xA0b86a33E6441ccF30EE5DdEF1E9b652C91ac1c8"

loan_token
string | null
default:WETH

Symbol or address of the loan token to filter markets by. Optional parameter. A token identifier - either a supported symbol (e.g., USDC, WETH) or a valid Ethereum address (0x...)

Examples:

"USDC"

"WETH"

"0xA0b86a33E6441ccF30EE5DdEF1E9b652C91ac1c8"

Response

Successful Response

markets
MorphoMarket · object[]
required

A list of markets matching the query.