Menu

How to Get Vault APY and Allocation Data From the Morpho API
📰

How to Get Vault APY and Allocation Data From the Morpho API

DEV Community: backend·Kendra Koepp·8 days ago
#qR7KF1za
#devtobackend#devto#dev#vault#allocation
Long article (947 words) — no AI summary yet.
Reading 0:00
15s threshold

Pull a vault’s APY and market allocations with one Morpho GraphQL query, then verify its asset totals against the vault contract. This query shape is for Vault V1; include the chain ID because the same address can identify different deployments on Ethereum and Base.

Morpho vaults are single-asset pools that place deposits across lending markets and other yield sources. This article focuses on retrieving their performance and allocation state; Morpho vaults covers the vault concept and how its markets and allocation strategy fit together.

How do you query a Vault V1’s APY and market allocation?

Send a POST request to Morpho’s public GraphQL endpoint, morpho.org The GraphQL API is documented in Morpho’s API docs.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.