Portfolio Guide
Create portfolios, run AI analysis, and interpret results
Portfolio Guide
MarketIntell lets you track your crypto holdings and run AI-powered analysis across your entire portfolio. This guide walks through creating a portfolio, analyzing it, and interpreting the results.
Creating a Portfolio
A portfolio is a named collection of holdings. Each holding has a token symbol, amount, and optional entry price and notes.
curl -X POST https://api.marketintell.ai/v1/portfolio \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{
"name": "Main Portfolio",
"holdings": [
{ "token": "BTC", "amount": 1.5, "entry_price": 42000 },
{ "token": "ETH", "amount": 20, "entry_price": 2800 },
{ "token": "SOL", "amount": 200, "entry_price": 95, "notes": "Bought on dip" },
{ "token": "LINK", "amount": 500, "entry_price": 14.5 }
]
}'Choosing Entry Prices
Use your average cost basis for entry_price. If you bought ETH at $2,500 and again at $3,100, your average entry is $2,800. This allows the analysis engine to calculate accurate P&L.
Updating Holdings
When you buy or sell, update the portfolio to reflect your current positions:
curl -X PUT https://api.marketintell.ai/v1/portfolio/pf_abc123 \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{
"holdings": [
{ "token": "BTC", "amount": 2.0, "entry_price": 43000 },
{ "token": "ETH", "amount": 25, "entry_price": 2900 },
{ "token": "SOL", "amount": 100, "entry_price": 95 },
{ "token": "LINK", "amount": 500, "entry_price": 14.5 },
{ "token": "AAVE", "amount": 50, "entry_price": 92, "notes": "DeFi diversification" }
]
}'The
PUTendpoint replaces all holdings. Always include your complete position list.
Running Analysis
Trigger a comprehensive analysis that routes each holding through the MarketIntell pipeline:
curl -X POST https://api.marketintell.ai/v1/portfolio/pf_abc123/analyze \
-H "X-API-Key: YOUR_API_KEY"The analysis evaluates:
- Individual holdings — Price outlook, P&L, support/resistance levels
- Portfolio composition — Sector allocation, concentration risk, correlation between assets
- Risk assessment — Maximum drawdown exposure, correlated risk, volatility
- Recommendations — Rebalancing suggestions, new positions to consider, positions to trim
Interpreting Results
Overall Analysis
The analysis field contains a Markdown-formatted report covering your full portfolio:
{
"analysis": "## Portfolio Analysis: Main Portfolio\n\n### Allocation\n- BTC: 55% (overweight)\n- ETH: 22%\n- SOL: 12%\n- LINK: 8%\n- AAVE: 3%\n\n### Risk Assessment\n- **Concentration:** 77% in top 2 assets\n- **Correlation risk:** ETH/SOL correlation: 0.82\n- **Max theoretical drawdown:** -35%\n\n### Recommendations\n1. Consider reducing BTC to 45% and adding DeFi exposure\n2. SOL and ETH are highly correlated — consider diversifying into non-L1 assets\n3. LINK position looks favorable — approaching key support level"
}Per-Holding Analysis
The holdings_analysis array provides individual assessments:
| Field | Description |
|---|---|
token | Token symbol |
pnl_percent | Current profit/loss percentage from entry price |
outlook | Specialist consensus: bullish, bearish, or neutral |
notes | Key observations and action items |
What to Look For
- Concentration risk — If one holding is over 50% of your portfolio, the analysis will flag it
- Correlation clusters — Holdings that move together reduce your effective diversification
- Negative outlooks — Holdings with
bearishoutlook deserve extra attention - Rebalancing triggers — When allocation drifts significantly from your target
Using Analysis with Chat
You can also ask natural language questions about your portfolio through the Chat API:
curl -X POST https://api.marketintell.ai/v1/chat \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{
"message": "Review my portfolio and suggest rebalancing"
}'The Chat API will automatically pull your portfolio data when it classifies the query as a portfolio_review intent.