> ## 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.

# DeFi API

> Track DeFi positions, balances, rewards, and protocol interactions with enriched, protocol-aware data across supported chains.

## 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)

***

## Popular Endpoints

| Endpoint                                                           | Description                           |
| ------------------------------------------------------------------ | ------------------------------------- |
| [Wallet Protocols](/data-api/evm/defi/wallet-protocols)            | Summary of protocols used by a wallet |
| [Wallet Positions](/data-api/evm/defi/wallet-positions)            | Detailed positions per protocol       |
| [Detailed Positions](/data-api/evm/defi/wallet-positions-detailed) | Enhanced position breakdown           |

***

## Get Started

* [Get Wallet Protocols](/data-api/evm/defi/wallet-protocols)
* [Get Wallet Positions](/data-api/evm/defi/wallet-positions)
* [Get Detailed Positions](/data-api/evm/defi/wallet-positions-detailed)

***

## DeFi API Overview Video

<iframe src="https://www.youtube.com/embed/dLcoB3vFf38" title="Moralis DeFi API Overview" width="100%" height="400" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />
