mi-tradingTrade tokens on Solana using the ClawDex CLI. Use when the user asks to swap tokens, check balances, get quotes, or manage a Solana trading wallet.
Install via ClawdBot CLI:
clawdbot install davidpolotm/mi-tradingTrade any Solana token through Jupiter aggregator with simulation, safety guardrails, and full JSON output.
Before using this skill, ensure ClawDex is installed and configured:
which clawdex || npm install -g clawdex@latest
If not configured yet, run onboarding:
clawdex status --json
If status fails, set up with:
clawdex onboarding \
--jupiter-api-key "$JUPITER_API_KEY" \
--rpc "${SOLANA_RPC_URL:-https://api.mainnet-beta.solana.com}" \
--wallet ~/.config/solana/id.json \
--json
clawdex balances --json
Returns an array of { token, symbol, mint, balance, decimals } objects. Zero-balance accounts are included in JSON output.
clawdex quote --in SOL --out USDC --amount 0.01 --json
Lightweight price check — no simulation, no wallet needed.
clawdex swap --in SOL --out USDC --amount 0.01 --simulate-only --json
Runs full simulation on-chain without broadcasting. Does not require --yes. Use this to preview the output amount and route before committing.
clawdex swap --in SOL --out USDC --amount 0.01 --yes --json
--yes is required for non-interactive execution. Without it, ClawDex exits with code 1.
clawdex status --json
Verify RPC connectivity, wallet validity, and config state.
Always follow this sequence:
clawdex status --json — abort if rpc.healthy is falseclawdex balances --json — verify sufficient fundsclawdex swap --simulate-only --json — preview the tradeclawdex swap --yes --json — only if simulation looks goodclawdex balances --json — confirm balances updated (may need 5s delay on public RPC)Tokens can be passed by symbol or mint address:
SOL, USDC, USDTEPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v| Code | Meaning | Agent action |
|------|---------|-------------|
| 0 | Success | Continue |
| 1 | General error | Check message |
| 2 | Config error | Run onboarding |
| 3 | Safety violation | Reduce amount or adjust limits |
| 4 | Simulation failed | Try different pair/amount |
| 5 | Send failed | Retry with backoff |
Set guardrails to prevent runaway trades:
clawdex safety set max_slippage_bps=300 max_trade_sol=1 max_price_impact_bps=100
When a guardrail triggers, the JSON response includes a violations array describing what failed.
--json for machine-parseable output--yes for real swaps (not needed for --simulate-only)--simulate-only firstbalance as a string, not a number — it preserves full decimal precisionGenerated Mar 1, 2026
A DeFi platform uses this skill to automatically rebalance user portfolios by swapping tokens to maintain target allocations. It checks balances, simulates trades for safety, and executes swaps, ensuring minimal slippage and compliance with guardrails.
A trading bot integrates this skill to execute token swaps on Solana for retail users, providing real-time quotes, simulating trades to avoid losses, and handling wallet management. It targets users seeking automated, low-cost trading without manual intervention.
A cross-chain bridge service employs this skill to manage liquidity pools on Solana by swapping tokens to balance reserves. It uses health checks and simulations to ensure trades are safe and efficient, maintaining optimal liquidity for seamless asset transfers.
An NFT marketplace uses this skill to facilitate token swaps for users paying with various Solana tokens, converting them to a stablecoin like USDC for transactions. It verifies balances, simulates swaps to confirm rates, and executes trades securely.
An institutional asset manager leverages this skill for large-scale token swaps on Solana, utilizing guardrails to limit slippage and price impact. It follows a strict workflow with simulations to preview trades and ensure compliance with risk parameters.
Offer this skill as part of a paid API service where developers pay a monthly fee to access automated Solana trading tools. Revenue comes from tiered subscriptions based on usage limits, such as number of swaps or API calls per month.
Integrate this skill into a trading platform that charges a small percentage fee on each executed swap. Revenue is generated from user transactions, with a portion shared with partners or redistributed to token holders as incentives.
License this skill to other businesses, such as wallets or exchanges, as a white-label trading module. Revenue is earned through upfront licensing fees or ongoing royalties based on the volume of trades processed through the integrated system.
💬 Integration Tip
Always include the --json flag in commands for machine-readable output and implement error handling based on exit codes to manage failures gracefully.
Analyze stocks and cryptocurrencies using Yahoo Finance data. Supports portfolio management, watchlists with alerts, dividend analysis, 8-dimension stock scoring, viral trend detection (Hot Scanner), and rumor/early signal detection. Use for stock analysis, portfolio tracking, earnings reactions, crypto monitoring, trending stocks, or finding rumors before they hit mainstream.
Get stock prices, quotes, fundamentals, earnings, options, dividends, and analyst ratings using Yahoo Finance. Uses yfinance library - no API key required.
Yahoo Finance (yfinance) powered stock analysis skill: quotes, fundamentals, ASCII trends, high-resolution charts (RSI/MACD/BB/VWAP/ATR), plus optional web a...
Become an autonomous prediction market trader on Polymarket with AI-powered analysis and a performance-backed token on Base. Trade real markets, build a track record, and let the buyback flywheel run.
Get cryptocurrency token price and generate candlestick charts via CoinGecko API or Hyperliquid API. Use when user asks for token price, crypto price, price chart, or cryptocurrency market data.
Trade and monitor Hyperliquid perpetual futures. Check balances, view positions with P&L, place/cancel orders, execute market trades. Use when the user asks about Hyperliquid trading, portfolio status, crypto positions, or wants to execute trades on Hyperliquid.