GET
/
v0
/
morpho
/
market
from compass_api_sdk import CompassAPI, models


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

    res = compass_api.morpho.market(chain=models.MorphoMarketChain.ETHEREUM_MAINNET, unique_market_key="0x83b7ad16905809ea36482f4fbf6cfee9c9f316d128de9a5da1952607d5e4df5e")

    # 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:ethereum:mainnet
required
Available options:
ethereum:mainnet,
base:mainnet
unique_market_key
string
default:0x83b7ad16905809ea36482f4fbf6cfee9c9f316d128de9a5da1952607d5e4df5e
required

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

Response

200
application/json

Successful Response

The response is of type object.