Morpho
Get Markets
Aave V3
Aerodrome Slipstream
Morpho
Uniswap V3
Universal
Transaction Batching
Morpho
Get Markets
Query a list of markets you can borrow from.
Each market has one unique token that can be borrowed against one unique token that can be used as collateral.
GET
/
v0
/
morpho
/
markets
from compassapisdk import CompassAPISDK, models
with CompassAPISDK(
api_key_auth="<YOUR_API_KEY_HERE>",
) as compass_api_sdk:
res = compass_api_sdk.morpho.markets(chain=models.MorphoMarketsChain.ETHEREUM_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
}
}
]
}
Query Parameters
The chain to use.
Available options:
base:mainnet
, ethereum:mainnet
, arbitrum:mainnet
Response
200
application/json
Successful Response
A list of markets matching the query.
Was this page helpful?
from compassapisdk import CompassAPISDK, models
with CompassAPISDK(
api_key_auth="<YOUR_API_KEY_HERE>",
) as compass_api_sdk:
res = compass_api_sdk.morpho.markets(chain=models.MorphoMarketsChain.ETHEREUM_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
}
}
]
}