From 0b140b4a5f00dc2af47238afb185ee8c6f20cf5f Mon Sep 17 00:00:00 2001 From: David Lau Date: Thu, 25 Jun 2026 15:00:46 +0800 Subject: [PATCH] feat(market): support 30s kline resolution - Add 30s to --resolution help text in market kline command - Sync SKILL.md argument-hint and parameters table - Sync docs/cli-usage.md resolution values Co-Authored-By: Claude Opus 4.8 --- docs/cli-usage.md | 2 +- skills/gmgn-market/SKILL.md | 4 ++-- src/commands/market.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/cli-usage.md b/docs/cli-usage.md index 97bf273..667e97c 100644 --- a/docs/cli-usage.md +++ b/docs/cli-usage.md @@ -101,7 +101,7 @@ npx gmgn-cli market kline \ |--------|----------|-------------| | `--chain` | Yes | `sol` / `bsc` / `base` | | `--address` | Yes | Token contract address | -| `--resolution` | Yes | Candlestick resolution: `1m` / `5m` / `15m` / `1h` / `4h` / `1d` | +| `--resolution` | Yes | Candlestick resolution: `30s` / `1m` / `5m` / `15m` / `1h` / `4h` / `1d` | | `--from` | No | Start time (Unix seconds) | | `--to` | No | End time (Unix seconds) | diff --git a/skills/gmgn-market/SKILL.md b/skills/gmgn-market/SKILL.md index d5a81a4..a76259b 100644 --- a/skills/gmgn-market/SKILL.md +++ b/skills/gmgn-market/SKILL.md @@ -1,7 +1,7 @@ --- name: gmgn-market description: Get crypto and meme token price charts (K-line, candlestick, OHLCV), trending meme coin rankings by volume, and newly launched tokens on launchpads (pump.fun, fourmeme, letsbonk, Raydium, etc.) via GMGN API on Solana, BSC, Base, or Ethereum. Use when user asks for price chart, trending tokens, what's pumping, hot coins, new launches, token signals, or wants to discover early-stage opportunities. -argument-hint: "kline --chain --address --resolution <1m|5m|15m|1h|4h|1d> [--from ] [--to ] | trending --chain --interval <1m|5m|1h|6h|24h> | trenches --chain | signal --chain " +argument-hint: "kline --chain --address --resolution <30s|1m|5m|15m|1h|4h|1d> [--from ] [--to ] | trending --chain --interval <1m|5m|1h|6h|24h> | trenches --chain | signal --chain " metadata: cliHelp: "gmgn-cli market --help" --- @@ -97,7 +97,7 @@ When a request returns `429`: |-----------|----------|-------------| | `--chain` | Yes | `sol` / `bsc` / `base` / `eth` | | `--address` | Yes | Token contract address | -| `--resolution` | Yes | Candlestick resolution: `1m` / `5m` / `15m` / `1h` / `4h` / `1d` | +| `--resolution` | Yes | Candlestick resolution: `30s` / `1m` / `5m` / `15m` / `1h` / `4h` / `1d` | | `--from` | No | Start time (Unix seconds) | | `--to` | No | End time (Unix seconds) | diff --git a/src/commands/market.ts b/src/commands/market.ts index f7af209..912d632 100644 --- a/src/commands/market.ts +++ b/src/commands/market.ts @@ -28,7 +28,7 @@ export function registerMarketCommands(program: Command): void { .description("Get token K-line (candlestick) data") .requiredOption("--chain ", "Chain: sol / bsc / base / eth") .requiredOption("--address
", "Token contract address") - .requiredOption("--resolution ", "Candlestick resolution: 1m / 5m / 15m / 1h / 4h / 1d") + .requiredOption("--resolution ", "Candlestick resolution: 30s / 1m / 5m / 15m / 1h / 4h / 1d") .option("--from ", "Start time (Unix seconds)", parseInt) .option("--to ", "End time (Unix seconds)", parseInt) .option("--raw", "Output raw JSON")