4 Commits

Author SHA1 Message Date
mindesbunister
fba41aaf78 Restore improved layout and coin icons from development branch
- Restore clean homepage with only StatusOverview component
- Restore improved StatusOverview with CoinGecko coin icons
- Restore unified layout with gradient cards instead of fragmented sections
2025-07-17 11:55:09 +02:00
mindesbunister
52454bbf98 🚀 Fix position sizing and add real wallet balance integration
Fixed Position Size Calculation:
- Changed input from SOL to USD for clarity
- Fixed calculation: positionSizeSOL = positionValueUSD / coinPrice
- Resolved issue where entering 0.4 SOL showed incorrect 0.0025 underneath

 Added Real Wallet Balance Integration:
- TradeModal now fetches actual wallet balance from /api/wallet/balance
- Percentage buttons now calculate from real available balance (3.40)
- No more impossible 1 SOL positions when only 3.40 available

 Enhanced Position Sizing UI:
- Added slider for smooth position adjustment ( to full balance)
- Percentage buttons (25%, 50%, 75%, 100%) now accurate
- Real-time display shows both USD and SOL amounts
- Live percentage display of balance usage

 Added Wallet Overview to Dashboard:
- Main dashboard shows real wallet balance prominently
- Trading page displays actual wallet holdings
- StatusOverview component enhanced with wallet info

- Accurate position sizing based on actual 3.40 balance
- Intuitive slider + percentage buttons
- Real-time balance updates every 30 seconds
- Clear USD/SOL conversion display
- No more calculation errors in trading modal
2025-07-15 13:41:02 +02:00
mindesbunister
e9517d5ec4 feat: Complete Bitquery trading integration with real wallet support
Features Added:
- Real-time price data via CoinGecko API (BTC: 21k+, SOL: 66+, etc.)
- Actual Solana wallet integration using private key from .env
- Trade execution API with Bitquery simulation
 trade recommendation → execution flow
- Portfolio display showing real wallet balance (~2.49 SOL)

- /api/market - Live cryptocurrency prices
- /api/trading/execute - Execute trades based on analysis
- /api/trading/balance - Real wallet balance
- /api/wallet/balance - Direct Solana wallet access

- TradeExecutionPanel.js - Complete trading interface
- WalletConnection.js - Wallet connection component
- Updated AIAnalysisPanel - Analysis → trade execution flow
- Updated StatusOverview - Real market data + wallet balance

- AI analysis generates trade recommendations
- Users can execute trades based on AI suggestions
- Real portfolio tracking with actual Solana wallet
- Live market prices (no more fake data)
- Ready for production trading

Security: Private key stays in .env, only public data exposed to frontend
2025-07-14 14:58:01 +02:00
mindesbunister
de45349baa Restore working dashboard and TradingView analysis
- Fixed layout conflicts by removing minimal layout.tsx in favor of complete layout.js
- Restored original AI Analysis page with full TradingView integration
- Connected enhanced screenshot API to real TradingView automation service
- Fixed screenshot gallery to handle both string and object formats
- Added image serving API route for screenshot display
- Resolved hydration mismatch issues with suppressHydrationWarning
- All navigation pages working (Analysis, Trading, Automation, Settings)
- TradingView automation successfully capturing screenshots from AI and DIY layouts
- Docker Compose v2 compatibility ensured

Working features:
- Homepage with hero section and status cards
- Navigation menu with Trading Bot branding
- Real TradingView screenshot capture
- AI-powered chart analysis
- Multi-layout support (AI + DIY module)
- Screenshot gallery with image serving
- API endpoints for balance, status, screenshots, trading
2025-07-14 14:21:19 +02:00