DeFi
nitiv
Use Cases
Protocols
Playground
Docs
Request Access
Use Cases
Protocols
Playground
Docs
Getting Started
Introduction
Quickstart
Supported Chains
Examples
API Reference
Authentication
walletPositions
poolDetails
Error Handling
Rate Limits
GraphQL Schema
Request Access
Live API
Playground
+ API Key
api.definitiv.io
Multi-Protocol
Aave Positions
Morpho Vaults
Pendle Yield
Partial Failure
Query Morpho and Aave positions in a single request
Query
GraphQL
Run ▸
query { walletPositions(inputs: [ { protocol: "morpho", chainId: 1, walletAddress: "0xbcd16d361adf5e7e0dc0010756b49666b4f38ee0" } { protocol: "aave", chainId: 1, walletAddress: "0x18709e89bd403f470088abdacebe86cc60dda12e" } ]) { data { ... on MorphoWalletPositions { protocol walletAddress vaultV2Positions { vaultName assetsUsd apy underlyingAsset { symbol } } } ... on AaveWalletPositions { protocol walletAddress marketStates { netWorth healthFactor } supplyPositions { currency { symbol } balanceUsd apy { formatted } } } } errors { protocol error { code message } } } }
Ctrl + Enter to run
Response
⟠
Run a query to see results