--- name: katbot-trading version: 0.3.1 description: Live crypto trading on Hyperliquid via Katbot.ai. Includes BMI market analysis, token selection, and AI-powered trade execution. # Note: Homepage URL removed to avoid GitHub API rate limit errors during publish metadata: { "openclaw": { "emoji": "📈", "requires": { "bins": ["python3", "openclaw"], "env": ["KATBOT_HL_AGENT_PRIVATE_KEY"] }, "primaryEnv": "KATBOT_HL_AGENT_PRIVATE_KEY", "install": "pip install -r requirements.txt" } } --- # Katbot Trading Skill This skill teaches the agent how to use the Katbot.ai API to manage a Hyperliquid trading portfolio. ## Portfolio Types | Type | Description | |------|-------------| | `HL_PAPER` | Paper trading on Hyperliquid (no real funds). Formerly called `PAPER`. | | `HYPERLIQUID` | Live trading on Hyperliquid (agent key required, builder fee must be approved). | ## Capabilities 1. **Market Analysis**: Check the BTC Momentum Index (BMI) and 24h gainers/losers. - `btc_momentum.py`: Calculates the BMI (BTC Momentum Index) based on trend, MACD, body, volume, and RSI. Returns a signal (BULLISH, BEARISH, NEUTRAL). - `bmi_alert.py`: Runs `btc_momentum.py` and sends a Telegram alert if the market direction has changed. Uses `portfolio_tokens.json` for custom token tracking. 2. **Token Selection**: Automatically pick the best tokens for the current market direction. 3. **Recommendations**: Get AI-powered trade setups (Entry, TP, SL, Leverage). **Requires a primary agent assigned to the portfolio.** 4. **Execution**: Execute and close trades on Hyperliquid with user confirmation. 5. **Portfolio Tracking**: Monitor open positions, uPnL, balances, timeseries, and chain info. 6. **Agent Management**: Create, configure, and assign AI agents to portfolios. 7. **Conversation History**: View and clear agent conversation history per portfolio. 8. **Subscription & Plans**: Check feature usage limits and available plans. ## Tools **All tool scripts live exclusively in `{baseDir}/tools/`** — this is the single canonical location. There are no copies elsewhere in the project. Always reference tools via `{baseDir}/tools/