Morpho logo
Protocol

Morpho API

Morpho Blue is a lending protocol with two position types: vaults (curated lending strategies) and markets (isolated lending/borrowing pools). The API returns V1 (MetaMorpho) vaults, V2 vaults, and direct market positions.

Supported chains

EthereumBaseArbitrumOptimismPolygon

Available data

Vault V1 Positions

MetaMorpho V1 vault deposits with vault name, assets, APY, and underlying asset info

Vault V2 Positions

Morpho V2 vault deposits with vault name, symbol, assets (USD), APY, and vault metrics

Market Positions

Direct market supply/borrow with loan asset, collateral, health factor, and market metrics (APY, utilization, LLTV)

Notes

  • APY values are decimals (e.g., 0.0685 = 6.85%)
  • healthFactor is null when the position has no debt — below 1.0 means liquidatable
  • netSupplyApy and netBorrowApy include token reward incentives

Example query

query.graphql
query {
  walletPositions(inputs: [
    { protocol: "morpho", chainId: 1, walletAddress: "0x742d35Cc6634C0532925a3b8D4C9db96C4b4d8b6" }
  ]) {
    data {
      ... on MorphoWalletPositions {
        protocol
        walletAddress
        chainId
        vaultV2Positions {
          vaultName
          vaultSymbol
          assetsUsd
          apy
          underlyingAsset { symbol }
          vaultMetrics { totalAssetsUsd }
        }
        marketPositions {
          loanAsset { symbol }
          collateralAsset { symbol }
          supply { assetsUsd }
          borrow { assetsUsd }
          healthFactor
          marketMetrics { supplyApy borrowApy utilization }
        }
      }
    }
    errors { protocol error { code message } }
  }
}
Try in PlaygroundView full docs

Other protocols

AaveAavePendlePendleFluidFluidCompoundCompoundAvantAvantAvantisAvantisNeutrlNeutrlMidasMidas