Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.moralis.com/llms.txt

Use this file to discover all available pages before exploring further.

Overview

The DeFi API provides detailed insights into wallet positions across DeFi protocols including lending, borrowing, staking, and liquidity pools. Query a wallet’s DeFi exposure without manually integrating with each protocol - get a unified view of positions, balances, and rewards across supported protocols.

What Is the DeFi API?

The DeFi API lets you query:
  • Protocol Summary - Overview of all DeFi protocols a wallet uses
  • Positions - Detailed position data per protocol
  • Position Details - Enhanced breakdown with underlying assets
  • Multi-Protocol - Support for major DeFi protocols

Key Features

The DeFi API includes:
  • Protocol Detection - Automatically identifies which protocols a wallet uses
  • Position Breakdown - Detailed view of deposits, borrows, and rewards
  • USD Valuations - Position values calculated in USD
  • Multi-Chain - Track positions across supported EVM chains
  • Unified Format - Consistent data structure across protocols

Supported Protocols

The DeFi API supports major protocols including:
  • Aave
  • Compound
  • Uniswap
  • Lido
  • Rocket Pool
  • Eigenlayer
  • And more

Common Use Cases

The DeFi API is commonly used for:
  • Portfolio Trackers
    (show DeFi positions alongside tokens and NFTs)
  • DeFi Dashboards
    (aggregate positions across protocols)
  • Risk Monitoring
    (track lending health factors and exposure)
  • Yield Tracking
    (monitor staking rewards and LP positions)
  • Tax Reporting
    (calculate DeFi gains and income)

EndpointDescription
Wallet ProtocolsSummary of protocols used by a wallet
Wallet PositionsDetailed positions per protocol
Detailed PositionsEnhanced position breakdown

Get Started


DeFi API Overview Video