Skip to main content

Optimizers API

Following the wind down of Optimizers, the Morpho Optimizers' API is in maintenance mode and it is therefore not advised to use it. One can use the onchain lens instead for Morpho Aave V2 and Morpho Coumpound V2 Optimizers, or the Morpho AaveV3 Optimizer sdk.

Prerequisites

To use the Morpho Optimizers API, you need to know the base URL of the API and the available endpoints. The base URL for the Morpho Optimizers API is https://api.morpho.org/.

Below is a list of the different endpoints available:

Analytics

/analytics

Global historical data.

/analytics/market

Historical markets data. Provides analytics over time. Every query will by default return the last 30 days of data of the Morpho Protocol, including the different markets values, APY, total supply, total borrow, etc. Use it for your data visualization, to draw charts, or display some lines over time.

Metrics

/metrics

Global metrics about the different protocols.

/metrics/market

Data about the requested market.

/metrics/markets

Data about the different markets.

/metrics/{metric}

Global metric about the different protocols.

Protocols

/{protocol}/user/{address}

User balances on the protocol.

Rewards

/rewards/emissions

Emission of the current age & epoch.

/rewards/emissions/history

Rewards history by epochs.

/rewards/emissions/{epochId}

Rewards for a specific epoch.

/rewards/distribution/user/{address}

Rewards for a user.