> ## Documentation Index
> Fetch the complete documentation index at: https://docs-d0.donutbrowser.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Portfolio Monitor

> D0 tracks everything you hold across wallet, perps, and DeFi. One question in chat gives you the complete picture.

## The Scenario

You hold tokens in your Solana wallet, have open positions on Donut Perps, and deposited assets in DeFi protocols. Normally that means checking three different apps to see where you stand. With D0, ask once and get everything in one response.

Quick checks: *What's my balance?*, *Show my perps positions*, or *Show my DeFi positions*.

## Complete Balance Overview

> **You:** "What's my balance?"

> **D0:** "Here's your complete overview:\
>
> **Wallet:** \$14,280"

| Token | Amount | Value | 24h Change |
| - | - | - | - |
| SOL | 42.5 | \$6,035 | +4.8% |
| USDC | 3,500 | \$3,500 | — |
| JUP | 2,100 | \$2,604 | +6.2% |
| BONK | 150,000 | \$1,245 | -1.3% |
| RAY | 180 | \$896 | +2.1% |

> **Perps Account:**\
>
> Equity: \$5,200\
>
> Available Balance: \$3,800\
>
> Margin Used: \$1,400\
>
> **Total:** \$19,480

One command shows your wallet breakdown with 24-hour price changes, plus your perps account balance and margin usage.

## Check Perps Positions

> **You:** "Show my perps positions"

> **D0:** "Your open positions:"

| Symbol | Side | Size | Entry | Mark Price | PnL | Leverage |
| - | - | - | - | - | - | - |
| BTCUSDT | LONG | 0.05 | \$96,800 | \$98,450 | +\$82.50 | 10x |
| SOLUSDT | LONG | 10 | \$138.50 | \$142.35 | +\$38.50 | 5x |

> Total Unrealized PnL: +\$121.00

You're up on both positions: BTC moved from your \$96,800 entry to \$98,450 for \$82.50 at 10x, and SOL from \$138.50 to \$142.35 for \$38.50 at 5x.

## DeFi Portfolio

> **You:** "Show my DeFi positions"

> **D0:** "Your DeFi portfolio:\
>
> **Kamino Lending:**\
>
> Deposited: 1,000 USDC (earning 8.2% APY)\
>
> Borrowed: 200 USDC (paying 12.5% APR)\
>
> Health Factor: 2.8 (Safe)\
>
> **Meteora LP:**\
>
> SOL/USDC Pool: \$2,400 total value\
>
> Fees earned: \$45.20 (24h)\
>
> **Total DeFi Value:** \$3,245"

Your Kamino position is healthy at a 2.8 health factor, and your Meteora LP is earning fees.

## Deep Dive on a Holding

Want more detail on a specific token? Ask D0 about it.

> **You:** "Tell me more about my JUP position"

> **D0:** "Your JUP position:\
>
> Holding: 2,100 JUP\
>
> Current value: \$2,604 (18.2% of wallet)\
>
> Current price: \$1.24 (+6.2% today, +15% this week)\
>
> JUP market overview:\
>
> Market cap: \$1.67B (#42)\
>
> 24h volume: \$285M\
>
> Safety score: 92/100\
>
> Jupiter recently announced a governance proposal for fee sharing."

D0 shows you what you hold, what it's worth, how much of your portfolio it represents, and what's happening in the market for that token.

## Track Changes Over Time

> **You:** "How has my portfolio done this week?"

> **D0:** "This week's performance:\
>
> Wallet: \$14,280 (up from \~\$13,200 on Monday, +8.2%)\
>
> Perps: +\$121 unrealized PnL\
>
> Best performer: JUP (+15%)\
>
> Worst performer: BONK (-4.2%)\
>
> SOL: +12% (your largest position drove most of the gains)"

Your largest position (SOL) is up 12% and drove most of your portfolio gains this week.

## Real-World Workflows

### Morning check-in

Every morning, ask *What's my balance?* to get a complete snapshot of wallet, perps, and DeFi in one response, so you know where you stand before the trading day starts.

### Before making a trade

Before buying or selling, check your allocation with *Show my portfolio* to decide if you need to rebalance. If you're already 40% in SOL and considering buying more, maybe that's too concentrated.

### After a market move

When crypto news breaks, a Fed announcement for example, ask *Check my balance* to see how all your positions were affected.

### Monitor perps risk

If the market is volatile, ask *Show my perps positions* to check your leverage, margin usage, and unrealized PnL, and make sure you're not getting close to liquidation.

### Track DeFi health

Periodically ask *Show my DeFi positions* to monitor lending health factors and LP performance. If your Kamino health factor is dropping, you need to know before it becomes a problem.

### End-of-day review

Before bed, a quick *Portfolio update* either gives you peace of mind or an early warning that something needs attention.

## Tips for Portfolio Monitoring

* One question gives you wallet, perps, and DeFi at once, instead of checking each account separately.
* Watch equity and available balance on perps to avoid liquidation. If your available balance is getting low relative to margin used, you're at risk.
* Keep your Kamino health factor above 2.0 to stay away from liquidation risk.
* After checking your portfolio, set price alerts for tokens you're watching. If SOL is a big part of your portfolio and support is at \$130, set an alert there.
* "How is my SOL doing?" gives you more detail than a general portfolio check: position size, current value, portfolio percentage, and market context.
* After seeing a token's price change, ask D0 to analyze why it moved. Understanding the reason helps you decide whether to hold, add more, or exit.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.