Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions tasks-json/crypto-portfolio-optimization.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"name": "Crypto Portfolio Optimization",
"description": "Analyze crypto portfolios and market conditions to recommend optimal allocation strategies. This task requires reasoning about risk management, correlation analysis, market cycles, DeFi yield opportunities, and portfolio rebalancing logic while considering gas fees and tax implications.",
"modality": "Text -> Text",
"diagram": null,
"citations": null,
"examples": [
[
{
"input": "Current Portfolio:\n- BTC: $50,000 (50%)\n- ETH: $30,000 (30%)\n- SOL: $15,000 (15%)\n- USDC: $5,000 (5%)\n\nTotal Value: $100,000\nRisk Tolerance: Moderate\nTime Horizon: 1-2 years\nGas Budget: $200/month\n\nMarket Conditions:\n- BTC trending sideways after 30% rally\n- ETH outperforming due to upcoming upgrade\n- SOL showing weakness (down 15% this month)\n- DeFi yields: 8-12% on stablecoins, 4-6% on ETH\n\nGoals:\n1. Maintain exposure to major assets\n2. Generate passive income\n3. Rebalance if needed\n\nQuestion: Should I rebalance? If yes, what's the optimal allocation?",
"output": "ANALYSIS & RECOMMENDATION\n\n1. CURRENT STATE ASSESSMENT\n - BTC overweight vs. target (50% vs. typical 40-45%)\n - ETH position reasonable but could capture more upside\n - SOL underperforming, potential dead weight\n - Idle USDC not generating yield (missed opportunity)\n\n2. MARKET CONTEXT\n - BTC consolidation = good time to trim without FOMO\n - ETH upgrade catalyst = increase allocation before event\n - SOL weakness = opportunity to cut losers\n - DeFi yields attractive = should deploy stablecoins\n\n3. REBALANCING LOGIC\n \n Sell:\n - $5,000 BTC (10% reduction) → reduce to 40%\n - $10,000 SOL (67% reduction) → reduce to 5%\n \n Buy:\n - $5,000 additional ETH → increase to 35%\n - Convert to $10,000 USDC → increase to 15%\n \n New Allocation:\n - BTC: $45,000 (40%) ✓\n - ETH: $35,000 (35%) ✓\n - SOL: $5,000 (5%) ✓\n - USDC: $15,000 (15%) → Deploy to DeFi ✓\n - Total: $100,000\n\n4. YIELD STRATEGY\n - Deploy $15,000 USDC to Aave/Compound (8% APY = $1,200/year)\n - Stake $35,000 ETH (4.5% APY = $1,575/year)\n - Total passive income: ~$2,775/year (2.8% portfolio yield)\n\n5. EXECUTION PLAN\n - Week 1: Sell SOL gradually (avoid slippage)\n - Week 2: Trim BTC during strength\n - Week 3: Buy ETH on any dips\n - Week 4: Deploy stablecoins to highest-rated DeFi protocols\n\n6. GAS OPTIMIZATION\n - Batch transactions to save fees\n - Use Layer 2 for stablecoin deployment (Arbitrum/Optimism)\n - Estimated total gas: ~$150 (within budget)\n\n7. RISK MANAGEMENT\n - Maintains diversification (no single asset >40%)\n - Cuts losing position (SOL) before further losses\n - Adds income component (reduces volatility impact)\n - Keeps 5% dry powder for opportunities\n\nDECISION: YES, rebalance with the outlined allocation. Expected outcome: reduced volatility, increased income, better positioned for ETH catalyst."
}
],
[
{
"input": "Portfolio Type: DeFi Yield Farming\nCurrent Holdings:\n- $50,000 in Curve 3pool (earning 5% APY)\n- $30,000 in Uniswap V3 ETH/USDC (earning 12% APY but high impermanent loss risk)\n- $20,000 in idle USDT\n\nRisk Level: Aggressive\nGoal: Maximize APY while managing IL risk\n\nNew Opportunities:\n- GMX staking: 18% APY (GMX rewards)\n- Pendle PT/YT strategy: 25% APY (fixed yield)\n- Convex CVX locking: 15% APY + bribes\n- GLP vault: 20% APY (real yield but high volatility)\n\nShould I rotate? What's the optimal strategy?",
"output": "YIELD FARMING OPTIMIZATION\n\n1. CURRENT POSITION ANALYSIS\n \n Curve 3pool:\n - Pros: Low risk, stable returns, battle-tested\n - Cons: APY too low for aggressive profile (5% < market)\n - Status: ROTATE OUT partially\n \n Uniswap V3 ETH/USDC:\n - Pros: Good APY, liquid market\n - Cons: Concentrated liquidity = high IL risk if range breaks\n - Status: MONITOR closely, consider position management\n \n Idle USDT:\n - Status: CRITICAL - deploy immediately (losing opportunity cost)\n\n2. OPPORTUNITY EVALUATION\n \n GMX Staking (18% APY):\n - Risk: Medium (GMX token volatility)\n - Sustainability: High (real fees from trading)\n - Rating: ATTRACTIVE\n \n Pendle PT/YT (25% APY):\n - Risk: Low-Medium (fixed rate component)\n - Complexity: High (requires understanding PT/YT mechanics)\n - Rating: EXCELLENT for portion of portfolio\n \n Convex CVX (15% APY):\n - Risk: Low (established protocol)\n - Liquidity: Good (can unlock after 16 weeks)\n - Rating: SOLID base position\n \n GLP Vault (20% APY):\n - Risk: HIGH (delta exposure to crypto assets)\n - Sustainability: High (real trader losses)\n - Rating: GOOD but requires monitoring\n\n3. OPTIMAL ALLOCATION STRATEGY\n \n Exit/Reduce:\n - Reduce Curve 3pool: $50k → $20k (60% reduction)\n - Keep Uniswap V3: $30k (monitor IL)\n \n Deploy Freed Capital + Idle:\n - $30k from Curve + $20k idle = $50k to deploy\n \n New Positions:\n - Pendle PT/YT: $20k (25% APY) = $5,000/year\n - GMX staking: $15k (18% APY) = $2,700/year\n - Convex CVX: $10k (15% APY) = $1,500/year\n - GLP vault: $5k (20% APY) = $1,000/year\n \n Final Allocation:\n - Curve 3pool: $20k (20%) - Base stable position\n - Uniswap V3: $30k (30%) - Active management\n - Pendle PT/YT: $20k (20%) - Fixed yield\n - GMX: $15k (15%) - Real yield\n - Convex: $10k (10%) - DeFi blue chip\n - GLP: $5k (5%) - High risk/reward\n \n Total: $100k\n\n4. PROJECTED RETURNS\n \n Current APY:\n - Curve: $50k × 5% = $2,500\n - Uniswap: $30k × 12% = $3,600\n - Idle: $20k × 0% = $0\n - Total: $6,100/year (6.1% portfolio APY)\n \n New APY:\n - Curve: $20k × 5% = $1,000\n - Uniswap: $30k × 12% = $3,600\n - Pendle: $20k × 25% = $5,000\n - GMX: $15k × 18% = $2,700\n - Convex: $10k × 15% = $1,500\n - GLP: $5k × 20% = $1,000\n - Total: $14,800/year (14.8% portfolio APY)\n \n Improvement: +$8,700/year (+143% increase)\n\n5. RISK MANAGEMENT\n \n - Diversified across 6 protocols (reduces single-protocol risk)\n - Mix of stable (Curve), active (Uniswap), and yield (rest)\n - Pendle PT provides fixed-rate component (hedge against APY drops)\n - Small GLP allocation limits downside exposure\n - Exit liquidity verified for all positions\n\n6. EXECUTION PLAN\n \n Day 1-2:\n - Withdraw $30k from Curve 3pool\n - Enter Pendle PT/YT position ($20k)\n \n Day 3-4:\n - Deploy $15k to GMX staking\n - Lock $10k in Convex CVX\n \n Day 5:\n - Add $5k to GLP vault\n - Set up monitoring alerts for Uniswap V3 range\n \n Week 2+:\n - Monitor all positions weekly\n - Harvest and compound rewards\n - Adjust Uniswap range if needed\n\nDECISION: YES, rotate immediately. New strategy increases APY from 6.1% to 14.8% while maintaining acceptable risk for aggressive profile. Diversification across quality protocols reduces single-point-of-failure risk."
}
],
[
{
"input": "Scenario: Bear Market Portfolio Defense\n\nCurrent Portfolio:\n- BTC: $40,000 (down 60% from ATH)\n- ETH: $25,000 (down 65% from ATH)\n- ALTs: $15,000 (down 80% from ATH - mix of L1s and DeFi tokens)\n- Stablecoins: $5,000\n\nTotal: $85,000 (was $200,000 at peak)\nPortfolio down 57.5%\n\nMarket Conditions:\n- Macro: Rising interest rates, risk-off environment\n- Crypto: Sustained downtrend, low volume\n- Sentiment: Fear & Greed Index at 15 (Extreme Fear)\n- DeFi yields falling (3-5% on stables)\n\nPsychology: Feeling demoralized, considering capitulation\n\nQuestions:\n1. Should I sell everything and preserve capital?\n2. Should I DCA more at these prices?\n3. How should I position for the next cycle?",
"output": "BEAR MARKET PORTFOLIO DEFENSE STRATEGY\n\n1. PSYCHOLOGICAL REALITY CHECK\n \n ❌ DON'T: Panic sell at bottom (classic retail mistake)\n ❌ DON'T: Go all-in on hopium (\"this is the bottom!\")\n ✅ DO: Think in probabilities and risk-adjusted scenarios\n ✅ DO: Have a systematic plan, not emotional reactions\n\n2. CURRENT POSITION ANALYSIS\n \n BTC ($40k):\n - Quality: HIGHEST - Survives all cycles\n - Action: HOLD core position, consider adding\n \n ETH ($25k):\n - Quality: HIGH - Strong fundamentals, ecosystem\n - Action: HOLD, potentially increase allocation\n \n ALTs ($15k):\n - Quality: MIXED - Most won't survive bear market\n - Action: CRITICAL EVALUATION needed\n \n Stablecoins ($5k):\n - Status: Underweight for bear market (should be 20-40%)\n\n3. SCENARIO PLANNING\n \n Scenario A: Bottom is in (30% probability)\n - Best Action: Hold everything, add more\n - Upside: Capture full recovery\n - Downside: Minimal if this is correct\n \n Scenario B: Further 30-50% drop (50% probability)\n - Best Action: Preserve capital, have dry powder\n - Upside: Buy cheaper later\n - Downside: Watching portfolio shrink more\n \n Scenario C: Extended bear (2+ years) (20% probability)\n - Best Action: Shift to income generation, preserve purchasing power\n - Upside: Earn yield while waiting\n - Downside: Opportunity cost if quick recovery\n\n4. OPTIMAL STRATEGY (Weighted for probabilities)\n \n Phase 1: Triage ALTs (IMMEDIATE)\n - Sell underperforming ALTs: $15k → $12k (assume 20% slippage in bear)\n - Keep only top 2-3 with real utility/revenue\n - Rationale: Most alts go to zero in bear markets\n \n Phase 2: Rebalance to Defense (Week 1-2)\n - Convert freed ALT capital to stables: +$12k\n - Shift 10% of BTC: $4k → stables\n - Shift 20% of ETH: $5k → stables\n - New stables: $5k + $12k + $4k + $5k = $26k\n \n New Allocation:\n - BTC: $36,000 (42%)\n - ETH: $20,000 (24%)\n - Quality ALTs: $3,000 (4%)\n - Stablecoins: $26,000 (30%)\n - Total: $85,000\n \n Phase 3: Deploy Stables Strategically\n - $13k → High-quality DeFi yield (5% = $650/year)\n - $13k → Keep as dry powder for DCA\n \n Phase 4: DCA Plan (Next 12 months)\n - $1,000/month systematic buying\n - 70% BTC, 30% ETH\n - Buy regardless of price (remove emotion)\n - Total deployment: $13k over a year\n\n5. MONTH-BY-MONTH EXECUTION\n \n Month 1-2: Triage & Rebalance\n - Exit weak ALTs\n - Build stable position\n - Set up yield farms\n \n Month 3-12: Systematic Accumulation\n - Auto-buy $1k/month (BTC/ETH)\n - Monitor quality ALT opportunities\n - Harvest and compound DeFi yields\n \n Month 12+: Positioning for Recovery\n - Should have accumulated $12k more BTC/ETH\n - Earned $650 in yields\n - Preserved $13k dry powder for major opportunities\n\n6. EXPECTED OUTCOMES BY SCENARIO\n \n If Scenario A (bottom is in):\n - Preserved 80% of holdings\n - Accumulated 15% more at low prices\n - Moderate upside capture: 70-80% of rally\n \n If Scenario B (further drop):\n - 30% in stables protects from drawdown\n - DCA buys cheaper as it drops\n - Strong position when bottom actually hits\n \n If Scenario C (extended bear):\n - Yields generate income\n - Systematic buying averages down cost basis\n - Exit runway secured\n\n7. PSYCHOLOGICAL MANAGEMENT\n \n ✅ You've de-risked (less exposure to volatility)\n ✅ You have a plan (removes decision paralysis)\n ✅ You're earning yield (psychologically satisfying)\n ✅ You're still accumulating (don't miss the bottom)\n ✅ You can sleep better (not 100% in volatile assets)\n\nFINAL RECOMMENDATION:\n\nDO NOT capitulate completely. DO NOT go all-in. \n\nFollow the phased approach:\n1. Cut weak ALTs NOW\n2. Rebalance to 30% stables over 2 weeks\n3. Deploy half to yield, half for DCA\n4. Stick to $1k/month systematic buying\n5. Review every quarter, adjust as needed\n\nThis strategy:\n- Protects capital (30% stables)\n- Maintains core exposure (BTC/ETH)\n- Generates income (DeFi yields)\n- Accumulates at better prices (DCA)\n- Removes emotional decision-making\n\nExpected result: Preservation of capital with upside optionality. If bottom is in, you catch 70% of the move. If it drops more, you buy cheaper. If it's extended, you earn yield and DCA.\n\nThis is how you survive bear markets and thrive in the next bull."
}
]
],
"tags": [
"crypto",
"portfolio-management",
"defi",
"investment-strategy",
"risk-management",
"yield-optimization",
"market-analysis",
"financial-reasoning"
]
}
Loading