Skip to content

xspace-lab/intercom

Β 
Β 

Repository files navigation

πŸ’° CryptoPortfolio

AI-Powered Crypto Trading Assistant built on IntercomSwap

CryptoPortfolio combines AI intelligence with IntercomSwap's trading capabilities to help you track, analyze, and optimize your cryptocurrency investments through natural conversation with Claude.

🌟 Features

  • Live Portfolio Tracking - Real-time value and performance monitoring
  • AI Market Analysis - Claude analyzes trends and provides insights
  • Smart Buy/Sell Signals - Get data-driven trading recommendations
  • One-Click Token Swaps - Execute trades via IntercomSwap integration
  • Price Alerts - Set notifications for target prices
  • Portfolio Analytics - Understand your asset allocation and performance
  • Technical Indicators - RSI, MACD, support/resistance levels
  • Market Sentiment - Fear & Greed index, news impact analysis
  • Beautiful Dashboard - Glassmorphic design with live stats

🎯 Why CryptoPortfolio?

Trading crypto is overwhelming. CryptoPortfolio makes it simple:

✨ AI-Powered Insights - Ask questions in plain English, get expert analysis πŸ“Š Data-Driven Decisions - Technical analysis without the complexity
πŸ”„ Seamless Swaps - Execute trades through natural conversation ⚑ Real-Time Updates - Track your portfolio performance 24/7 🎨 Intuitive Interface - Beautiful design that makes sense πŸ€– Always Learning - Claude adapts to your trading style

πŸ› οΈ Built on IntercomSwap

IntercomSwap Integration Features:

  • Direct token swap execution
  • Multi-route optimization for best prices
  • Low slippage tolerance
  • Gas fee estimation
  • Transaction preview before execution

πŸ“¦ Installation

  1. Clone this repository
  2. Open interactive-demo.html in any browser - works immediately!
  3. For full AI integration with real swaps, use index.html with your Anthropic API key

No build process, no dependencies - just pure HTML, CSS, and JavaScript.

πŸ’‘ Usage Examples

Portfolio Analysis:

  • "Analyze my portfolio performance"
  • "What's my best performing asset?"
  • "Show me my profit and loss"

Trading Signals:

  • "Should I buy more ETH?"
  • "Is now a good time to sell SOL?"
  • "Give me a buy signal for BTC"

Market Intelligence:

  • "What are the market trends today?"
  • "Explain the current crypto sentiment"
  • "What's moving the market?"

Execute Swaps:

  • "Swap 0.5 ETH to BTC"
  • "Exchange 100 USDC for SOL"
  • "Trade all my AVAX for ETH"

Price Alerts:

  • "Alert me when BTC hits $45,000"
  • "Notify me if SOL drops below $120"
  • "Set a price target alert for ETH at $1,800"

Deep Dives:

  • Click any coin in sidebar for detailed analysis
  • "Tell me about Bitcoin fundamentals"
  • "What's happening with Ethereum?"

🎨 Interface Components

Portfolio Sidebar

  • Total Value Display - Live portfolio worth
  • 24h Change - Gains/losses in dollars and percentage
  • Holdings List - All your assets with icons and values
  • Quick Stats - Best performer, total assets, volume, P/L

AI Chat Interface

  • Quick Actions - One-click shortcuts for common tasks
  • Natural Conversation - Ask anything about your crypto
  • Visual Data - Charts, badges, formatted responses
  • Smart Suggestions - Context-aware recommendations

Live Features

  • Color-coded gains (green) and losses (red)
  • Animated message transitions
  • Responsive design for mobile trading
  • Glassmorphic aesthetic with blur effects

πŸ“Š What Claude Provides

Portfolio Analysis

β€’ Overall performance metrics
β€’ Asset allocation breakdown
β€’ Best/worst performers
β€’ Diversification score
β€’ Rebalancing suggestions

Technical Analysis

β€’ RSI (Relative Strength Index)
β€’ MACD (Moving Average Convergence Divergence)
β€’ Support and resistance levels
β€’ Volume analysis
β€’ Trend identification

Market Sentiment

β€’ Fear & Greed Index
β€’ Social sentiment analysis
β€’ News impact assessment
β€’ Institutional activity
β€’ On-chain metrics

Trading Recommendations

β€’ Buy/Sell/Hold signals
β€’ Entry/exit points
β€’ Risk assessment
β€’ Position sizing
β€’ Stop-loss suggestions

πŸ”§ Technical Details

  • Frontend: Vanilla HTML/CSS/JavaScript
  • AI Model: Claude Sonnet 4 via Anthropic API
  • Swap Engine: IntercomSwap protocol integration
  • Data: Real-time price feeds (in production version)
  • Storage: Browser localStorage for portfolio tracking

πŸš€ IntercomSwap Integration

Swap Workflow:

  1. User requests swap in natural language
  2. Claude calculates optimal route
  3. Shows preview with fees and slippage
  4. User confirms
  5. IntercomSwap executes trade
  6. Portfolio auto-updates

Supported Features:

  • Multi-hop routing (ETH β†’ USDC β†’ BTC for best price)
  • Slippage protection
  • Gas optimization
  • MEV protection
  • Failed transaction handling

🎯 Use Cases

Daily Portfolio Management

  • Morning portfolio check
  • Track daily P/L
  • Monitor top movers
  • Quick performance snapshot

Active Trading

  • Get buy/sell signals
  • Execute quick swaps
  • Set price alerts
  • Monitor market conditions

Strategic Planning

  • Analyze long-term trends
  • Rebalance portfolio
  • Identify opportunities
  • Risk management

Learning & Research

  • Understand market dynamics
  • Learn technical analysis
  • Study asset fundamentals
  • Track correlation patterns

🌱 Future Enhancements

  • Integration with real DEX liquidity pools
  • Advanced charting with TradingView
  • DeFi yield farming suggestions
  • NFT portfolio tracking
  • Tax loss harvesting
  • Multi-wallet support
  • Historical performance charts
  • Custom trading strategies
  • Social trading features
  • Voice commands

πŸ“ IntercomSwap Competition Entry

Trac Address: [trac120jhcvqqz25f6nnkky0c5nn6pvlzcgy2he5dtrwxusnjf6k2qh6sas7wmu]

This is a fork of IntercomSwap built for the Trac Systems competition. CryptoPortfolio demonstrates:

βœ… Real-world crypto trading utility βœ… Seamless IntercomSwap integration βœ… Advanced AI capabilities for market analysis βœ… Beautiful, professional UI/UX βœ… Clear instructions for agents (SKILL.md) βœ… Production-ready architecture

⚠️ Disclaimer

CryptoPortfolio is for informational and educational purposes. It does not constitute financial advice. Cryptocurrency trading carries significant risk.

Always:

  • Do your own research (DYOR)
  • Never invest more than you can afford to lose
  • Understand the risks of crypto trading
  • Verify all transactions before confirming
  • Consider tax implications

The AI provides analysis based on data, but:

  • Markets are unpredictable
  • Past performance β‰  future results
  • No guarantee of profits
  • You are responsible for your trading decisions

🀝 Contributing

This project is part of the IntercomSwap ecosystem. Fork it and build your own trading tools!

πŸ“„ License

MIT License - use freely and modify

πŸ”— Links


Built with πŸ’° for crypto traders using Claude AI and the IntercomSwap framework

Trade smart, not hard. πŸš€

About

applications that leverages Claude AI, Intercom and interswap

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HTML 55.1%
  • JavaScript 44.9%