UNPKG

behemoth-cli

Version:

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

75 lines (62 loc) 2.79 kB
import { CommandDefinition, CommandContext } from '../base.js'; export const tradeCommand: CommandDefinition = { command: 'trade', description: 'Professional crypto trading operations and order management', handler: ({ addMessage }: CommandContext) => { addMessage({ role: 'system', content: `⚡ BEHEMOTH TRADING SYSTEM ACTIVATED Professional cryptocurrency trading operations with multi-exchange support: 🏦 **Supported Exchanges:****Bybit**: USDT-M Futures, Spot trading • **Bitget**: USDT-M Futures, advanced order types • **Binance**: Market data and analysis (read-only) 💼 **Trading Operations:** • \`/trade status\` - Check positions and open orders • \`/trade balance\` - View account balances across exchanges • \`/trade credentials\` - Set API credentials (secure session storage) • \`/trade BTCUSDT buy 0.001\` - Place market order • \`/trade ETHUSDT sell 0.1 limit 2500\` - Place limit order 📋 **Order Types Available:** - **Market Orders**: Instant execution at current market price - **Limit Orders**: Execute at specified price or better - **Stop Loss Orders**: Risk management automation - **Take Profit Orders**: Profit-taking automation - **Trailing Stop**: Dynamic stop loss adjustment 🛡️ **Risk Management Features:** - Position size validation based on account balance - Maximum risk per trade enforcement (2% default) - Stop loss requirement for all positions - Portfolio heat monitoring - Real-time P&L tracking 📊 **Portfolio Management:** • \`/trade portfolio\` - Complete portfolio overview • \`/trade pnl\` - Profit & Loss analysis • \`/trade history\` - Trade history and performance • \`/trade optimize\` - Portfolio optimization recommendations ⚠️ **TRADING SAFETY PROTOCOLS:** - All trading operations require explicit confirmation - API credentials stored in secure session memory only - Position sizing automatically calculated based on risk rules - Stop losses mandatory for all positions - Real-time balance verification before order placement 🔐 **API Setup Required:** Before trading, set your exchange API credentials: \`/trade credentials\` - Interactive credential setup **Bybit API Requirements:** - API Key with trading permissions - API Secret - IP whitelist recommended **Bitget API Requirements:** - API Key with trading permissions - API Secret - Passphrase ⚡ **Quick Trading Examples:** - \`"Buy 0.001 BTC at market price on Bybit with 2% stop loss"\` - \`"Set limit order to sell 0.1 ETH at $2600 with trailing stop"\` - \`"Show my current positions and P&L across all exchanges"\` - \`"Place stop loss at $42,000 for my BTC position"\` All trades include automatic risk management and require final user confirmation before execution.` }); } };