$npx -y skills add gate/gate-skills --skill gate-dex-market-cligate-dex CLI market & token data skill: K-line, liquidity, trading stats, token info, security audit, rankings, new listings, chain config, and raw RPC. Read-only; no signing. Use this skill whenever the user asks for on-chain market data, token info, or security audits via the g
| 1 | # Gate DEX CLI — Market & Token Data |
| 2 | |
| 3 | ## General Rules |
| 4 | |
| 5 | ⚠️ STOP — You MUST read and strictly follow the shared runtime rules before proceeding. |
| 6 | Do NOT select or call any tool until all rules are read. These rules have the highest priority. |
| 7 | → Read [gate-runtime-rules.md](https://github.com/gate/gate-skills/blob/master/skills/gate-runtime-rules.md) |
| 8 | - **Only call MCP tools explicitly listed in this skill.** Tools not documented here must NOT be called, even if they |
| 9 | exist in the MCP server. |
| 10 | - **Only use the `gate-dex` CLI subcommands explicitly listed in this skill and its references.** Commands not documented here must NOT be run for these workflows, even if other interfaces expose them. |
| 11 | |
| 12 | > Read-only market data via CLI. K-line, liquidity, trading stats, token info/risk/rank, new listings, chain config, and raw RPC. No GV checkin or signing involved. |
| 13 | |
| 14 | ## Skill Boundaries |
| 15 | |
| 16 | | This skill | Route to other skill | |
| 17 | |-----------|----------------| |
| 18 | | K-line, liquidity, trading stats | Auth / login issues → `gate-dex-wallet-cli` | |
| 19 | | Token info (price, market cap) | Balance, address, token list → `gate-dex-wallet-cli` | |
| 20 | | Token security audit | Token transfers (send) → `gate-dex-wallet-cli` | |
| 21 | | Token rankings & new listings | Swap / exchange tokens → `gate-dex-trade-cli` | |
| 22 | | Chain config & raw RPC calls | — | |
| 23 | | Token address lookup (swap-tokens) | — | |
| 24 | |
| 25 | --- |
| 26 | |
| 27 | ## Applicable Scenarios |
| 28 | |
| 29 | - "K-line for token 0x...", "price chart", "candlestick data" |
| 30 | - "Token info for 0x...", "price of this token", "market cap" |
| 31 | - "Is this token safe?", "audit contract", "honeypot check", "security scan" |
| 32 | - "Token rankings", "top gainers", "price change leaderboard" |
| 33 | - "New tokens", "recently listed", "new listings" |
| 34 | - "Liquidity pool data", "trading volume", "tx stats" |
| 35 | - "List swappable tokens", "find token address by symbol" |
| 36 | - "Chain config", "RPC call", "eth_getBalance", "getBalance" |
| 37 | |
| 38 | --- |
| 39 | |
| 40 | ## CLI Commands |
| 41 | |
| 42 | ### K-Line (Candlestick) |
| 43 | |
| 44 | ```bash |
| 45 | gate-dex kline --chain eth --address 0xTokenAddress |
| 46 | gate-dex kline --chain sol --address <token_mint> |
| 47 | ``` |
| 48 | |
| 49 | Returns OHLCV candlestick data for the token. |
| 50 | |
| 51 | ### Liquidity Pool Events |
| 52 | |
| 53 | ```bash |
| 54 | gate-dex liquidity --chain eth --address 0xTokenAddress |
| 55 | ``` |
| 56 | |
| 57 | Returns recent liquidity add/remove events. |
| 58 | |
| 59 | ### Trading Volume Stats |
| 60 | |
| 61 | ```bash |
| 62 | gate-dex tx-stats --chain eth --address 0xTokenAddress |
| 63 | ``` |
| 64 | |
| 65 | Returns trading volume, transaction count, buy/sell stats. |
| 66 | |
| 67 | ### Token Info (Price, Market Cap) |
| 68 | |
| 69 | ```bash |
| 70 | gate-dex token-info --chain eth --address 0xTokenAddress |
| 71 | gate-dex token-info --chain sol --address <token_mint> |
| 72 | ``` |
| 73 | |
| 74 | Returns price, market cap, 24h volume, price change, total supply. |
| 75 | |
| 76 | ### Token Security Audit |
| 77 | |
| 78 | ```bash |
| 79 | gate-dex token-risk --chain eth --address 0xTokenAddress |
| 80 | gate-dex token-risk --chain sol --address <token_mint> |
| 81 | ``` |
| 82 | |
| 83 | Returns security risk: honeypot check, contract ownership, trading restrictions, liquidity lock status. |
| 84 | |
| 85 | **Always run `token-risk` before swapping an unfamiliar token.** |
| 86 | |
| 87 | ### Token Rankings |
| 88 | |
| 89 | ```bash |
| 90 | gate-dex token-rank # all chains |
| 91 | gate-dex token-rank --chain eth # Ethereum only |
| 92 | gate-dex token-rank --chain arb --limit 20 |
| 93 | ``` |
| 94 | |
| 95 | ### New Token Listings |
| 96 | |
| 97 | ```bash |
| 98 | gate-dex new-tokens |
| 99 | gate-dex new-tokens --chain eth |
| 100 | gate-dex new-tokens --chain sol --start 2026-04-01T00:00:00Z |
| 101 | ``` |
| 102 | |
| 103 | | Option | Description | |
| 104 | |--------|-------------| |
| 105 | | `--chain <name>` | Filter by chain | |
| 106 | | `--start <RFC3339>` | Filter tokens created after this timestamp | |
| 107 | |
| 108 | ### Swappable Token List |
| 109 | |
| 110 | ```bash |
| 111 | gate-dex swap-tokens |
| 112 | gate-dex swap-tokens --chain eth |
| 113 | gate-dex swap-tokens --chain sol --search USDC |
| 114 | ``` |
| 115 | |
| 116 | Use `--search |