Skip to main content
GET
/
v1
/
morpho
/
market
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_market(chain=models.V1MorphoMarketChain.BASE, unique_market_key="0x3b3769cfca57be2eaed03fcc5299c25691b77781a1e124e7a8d520eb9a7eabb5")

    # Handle response
    print(res)
{
  "whitelisted": true,
  "lltv": "<string>",
  "dailyApys": {
    "borrowApy": "<string>",
    "netBorrowApy": "<string>",
    "netSupplyApy": "<string>",
    "supplyApy": "<string>"
  },
  "weeklyApys": {
    "borrowApy": "<string>",
    "netBorrowApy": "<string>",
    "netSupplyApy": "<string>",
    "supplyApy": "<string>"
  },
  "monthlyApys": {
    "borrowApy": "<string>",
    "netBorrowApy": "<string>",
    "netSupplyApy": "<string>",
    "supplyApy": "<string>"
  },
  "yearlyApys": {
    "borrowApy": "<string>",
    "netBorrowApy": "<string>",
    "netSupplyApy": "<string>",
    "supplyApy": "<string>"
  },
  "allTimeApys": {
    "borrowApy": "<string>",
    "netBorrowApy": "<string>",
    "netSupplyApy": "<string>",
    "supplyApy": "<string>"
  },
  "collateralAsset": {
    "address": "<string>",
    "symbol": "<string>",
    "name": "<string>",
    "decimals": 123,
    "priceUsd": "<string>",
    "logoURI": "<string>"
  },
  "loanAsset": {
    "address": "<string>",
    "symbol": "<string>",
    "name": "<string>",
    "decimals": 123,
    "priceUsd": "<string>",
    "logoURI": "<string>"
  },
  "state": {
    "utilization": "<string>",
    "collateralAssets": "<string>",
    "collateralAssetsUsd": "<string>",
    "borrowAssets": "<string>",
    "borrowAssetsUsd": "<string>",
    "liquidityAssets": "<string>",
    "liquidityAssetsUsd": "<string>",
    "totalLiquidity": "<string>",
    "totalLiquidityUsd": "<string>"
  }
}

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
unique_market_key
string
default:0x3b3769cfca57be2eaed03fcc5299c25691b77781a1e124e7a8d520eb9a7eabb5
required

The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint.

Response

Successful Response

whitelisted
boolean
required

Whether the market is whitelisted or not.

lltv
string
required

(Liquidation Loan-To-Value) Maximum borrowing percentage before liquidation risk. Scaled by 1e18.

dailyApys
object
required

The daily APYs of the market.

weeklyApys
object
required

The weekly APYs of the market.

monthlyApys
object
required

The monthly APYs of the market.

yearlyApys
object
required

The yearly APYs of the market.

allTimeApys
object
required

The all-time APYs of the market.

collateralAsset
object
required

Data of the underlying collateral asset of the market.

loanAsset
object
required

Data of the underlying loan asset of the market.

state
object
required

The current state of the Morpho market.