|
| 1 | +--- |
| 2 | +name: polybot |
| 3 | +description: Interact with PolyBot trading system via CLI |
| 4 | +--- |
| 5 | + |
| 6 | +# PolyBot CLI Skill |
| 7 | + |
| 8 | +Execute PolyBot CLI commands for trading system management. |
| 9 | + |
| 10 | +## Available Commands |
| 11 | + |
| 12 | +### Service Management |
| 13 | +- `polybot start` - Start all services |
| 14 | +- `polybot api` - Run API server only |
| 15 | +- `polybot mcp start` - Start MCP server |
| 16 | + |
| 17 | +### Strategy Management |
| 18 | +- `polybot strategy list` - List all strategies with enabled/shadow status |
| 19 | +- `polybot strategy enable <name>` - Enable a strategy |
| 20 | +- `polybot strategy disable <name>` - Disable a strategy |
| 21 | +- `polybot strategy shadow <name> --enable` - Enable shadow mode (paper trading) |
| 22 | +- `polybot strategy shadow <name> --disable` - Disable shadow mode |
| 23 | +- `polybot strategy run <name>` - Run a single strategy |
| 24 | + |
| 25 | +### AI Trading Management (MCP) |
| 26 | +- `polybot mcp status` - Show MCP server status, mode, and pending approvals |
| 27 | +- `polybot mcp mode <disabled|shadow|live>` - Set AI trading mode |
| 28 | +- `polybot mcp pending` - List pending AI trade approvals |
| 29 | +- `polybot mcp approve <id>` - Approve a pending AI trade |
| 30 | +- `polybot mcp reject <id> -r "reason"` - Reject a pending AI trade |
| 31 | +- `polybot mcp audit` - View AI action audit log |
| 32 | + |
| 33 | +### Market Analysis |
| 34 | +- `polybot ai plugins` - List available AI prediction plugins |
| 35 | +- `polybot ai info <plugin>` - Show plugin details |
| 36 | +- `polybot ai predict <market_id>` - Test AI prediction for a market |
| 37 | +- `polybot ai scan` - Scan markets for AI-predicted opportunities |
| 38 | + |
| 39 | +### Statistical Arbitrage |
| 40 | +- `polybot statarb correlations` - Show computed market correlations |
| 41 | +- `polybot statarb compute --hours 48` - Compute correlations |
| 42 | +- `polybot statarb opportunities` - Show current stat arb opportunities |
| 43 | +- `polybot statarb prices` - Show recent price snapshots |
| 44 | + |
| 45 | +### Database & Configuration |
| 46 | +- `polybot db init` - Initialize databases |
| 47 | +- `polybot db stats` - Show 30-day trading statistics |
| 48 | +- `polybot config` - Show current configuration |
| 49 | + |
| 50 | +### Authentication |
| 51 | +- `polybot auth --create` - Create new API credentials |
| 52 | +- `polybot auth --derive` - Derive existing credentials |
| 53 | + |
| 54 | +## Usage |
| 55 | + |
| 56 | +When using this skill, run commands via bash. For example: |
| 57 | + |
| 58 | +```bash |
| 59 | +# List all strategies |
| 60 | +polybot strategy list |
| 61 | + |
| 62 | +# Enable arbitrage in shadow mode |
| 63 | +polybot strategy enable arbitrage |
| 64 | +polybot strategy shadow arbitrage --enable |
| 65 | + |
| 66 | +# Check MCP status |
| 67 | +polybot mcp status |
| 68 | + |
| 69 | +# Approve an AI trade |
| 70 | +polybot mcp approve abc123 |
| 71 | +``` |
| 72 | + |
| 73 | +## AI Trading Modes |
| 74 | + |
| 75 | +| Mode | Description | |
| 76 | +|------|-------------| |
| 77 | +| `disabled` | AI can only read market data | |
| 78 | +| `shadow` | AI can paper trade (no real money) | |
| 79 | +| `live` | AI can submit real orders (with approval) | |
| 80 | + |
| 81 | +## Safety Notes |
| 82 | + |
| 83 | +- Shadow mode is recommended for testing AI strategies |
| 84 | +- Live trading requires explicit approval by default |
| 85 | +- All AI actions are logged in the audit log |
| 86 | +- Position limits apply to AI trades separately from manual limits |
0 commit comments