portfolio ยท diff
git:20260127.930cd97 to git:20260130.a1f5efb
13 added, 0 removed. Audit A to A.
---
name: portfolio
description: "Track your positions and P&L across prediction market platforms"
emoji: "๐ผ"
---
# Portfolio Skill
Track your positions and performance across all prediction market platforms.
## Commands
### View Portfolio
```
/portfolio
/positions
/pnl
```
### Add Position (Manual)
```
/position add polymarket "Trump 2028" YES 100 @ 0.45
```
### Sync Positions (Auto)
```
/portfolio sync
```
## Features
### Position Tracking
- Entry price and current price
- Shares held
- Unrealized P&L ($ and %)
- Platform breakdown
### P&L Summary
- Total portfolio value
- Daily/weekly/monthly P&L
- Best and worst performers
- Platform-level P&L
### Multi-Platform Support
- Polymarket (via wallet address)
- Kalshi (via API)
- Manifold (via API key)
+ ### Risk Analytics
+ - **Correlation Matrix**: See how your positions correlate with each other
+ - **Category Exposure**: Breakdown by politics, crypto, sports, economics, etc.
+ - **Concentration Risk**: HHI score and diversification metrics
+ - **Hedged Pairs**: Identify offsetting positions (long YES + short NO)
+
+ ### Risk Commands
+ ```
+ /portfolio risk # Full risk metrics
+ /portfolio correlation # Position correlation matrix
+ /portfolio exposure # Category exposure breakdown
+ ```
+
## Examples
User: "What's my portfolio looking like?"
โ Show all positions with current prices and P&L
User: "How much am I up today?"
โ Calculate daily P&L across all positions
User: "What's my exposure to politics markets?"
โ Filter positions by category, sum exposure
## Output Format
```
๐ PORTFOLIO
๐ฐ Total Value: $2,450
๐ P&L: +$320 (+15.0%)
POSITIONS:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Trump 2028 (Polymarket) โ
โ YES 100 shares @ $0.45 โ $0.52 โ
โ +$70 (+15.6%) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Fed Rate Cut March (Kalshi) โ
โ YES 50 shares @ $0.30 โ $0.35 โ
โ +$25 (+16.7%) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
```