UNPKG

behemoth-cli

Version:

🌍 BEHEMOTH CLIv3.760.4 - Level 50+ POST-SINGULARITY Intelligence Trading AI

71 lines (67 loc) 2.97 kB
export const chartCommand = { command: 'chart', description: 'Display crypto price charts and technical analysis visualization', handler: ({ addMessage, parsedArgs, sendMessage }) => { // Parse arguments const args = parsedArgs || []; const hasSymbol = args.some(arg => arg.includes('symbol') || /^[A-Z]{3,}USDT?$/i.test(arg)); const hasDashboard = args.some(arg => arg.includes('dashboard')); const hasInteractive = args.some(arg => arg.includes('interactive')); let symbol = 'BTCUSDT'; // Extract symbol if provided for (const arg of args) { if (/^[A-Z]{3,}USDT?$/i.test(arg)) { symbol = arg.toUpperCase(); break; } if (arg.includes('symbol=')) { symbol = arg.split('=')[1]?.toUpperCase() || 'BTCUSDT'; break; } } // Show info message if (hasDashboard) { addMessage({ role: 'system', content: `📊 CHART DASHBOARD ACTIVATED - Multi-symbol crypto analysis dashboard` }); } else { addMessage({ role: 'system', content: `📈 CHART ANALYSIS for ${symbol} - Generating price charts with technical indicators` }); } // Generate the prompt for chart analysis let analysisPrompt = ''; if (hasDashboard) { analysisPrompt = `Generate a comprehensive crypto dashboard analysis showing: 1. **Top 10 Crypto Overview** with current prices, 24h changes, and volume 2. **Market Sentiment Dashboard** across major cryptocurrencies 3. **Technical Analysis Summary** for BTC, ETH, BNB, ADA, XRP 4. **Volume and Volatility Rankings** 5. **Quick Alerts** for major price movements or technical signals Use BEHEMOTH tools to fetch real-time data across multiple exchanges and provide a complete market overview dashboard.`; } else { analysisPrompt = `Generate comprehensive chart analysis for ${symbol}: 1. **Price Chart Analysis** - Current price, 24h high/low, volume analysis 2. **Technical Indicators** - RSI, MACD, Bollinger Bands, support/resistance levels 3. **Multi-Exchange Comparison** - Price differences across Binance, Bybit, Bitget 4. **Volume Profile Analysis** - Trading volume patterns and liquidity 5. **Visual ASCII Chart** - Simple price trend visualization 6. **Trading Signals** - Entry/exit recommendations based on technical analysis Use BEHEMOTH's comprehensive trading tools to provide detailed chart analysis with real market data.`; } if (sendMessage) { sendMessage(analysisPrompt); } else { addMessage({ role: 'system', content: '⚠️ Error: Unable to execute chart analysis.' }); } } }; //# sourceMappingURL=chart-simple.js.map