gmgn-market
Original:🇺🇸 English
Translated
Query GMGN market data — token K-line (candlestick) and trending token swap data. Supports sol / bsc / base.
15installs
Sourcegmgnai/gmgn-skills
Added on
NPX Install
npx skill4agent add gmgnai/gmgn-skills gmgn-marketTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Use the tool to query K-line data for a token or browse trending tokens.
gmgn-cliSub-commands
| Sub-command | Description |
|---|---|
| Token candlestick data |
| Trending token swap data |
Supported Chains
solbscbasePrerequisites
- file with
.envsetGMGN_API_KEY - Run from the directory where your file is located, or set
.envin your environmentGMGN_HOST
Kline Parameters
| Parameter | Required | Description |
|---|---|---|
| Yes | |
| Yes | Token contract address |
| Yes | Candlestick resolution |
| No | Start time (Unix seconds) |
| No | End time (Unix seconds) |
Resolutions
1m5m15m1h4h1dTrending Options
| Option | Description |
|---|---|
| Required. |
| Required. |
| Number of results (default 100, max 100) |
| Sort field: |
| Sort direction (default |
| Repeatable filter tags: |
| Repeatable platform filter: |
Usage Examples
bash
# Last 1 hour of 1-minute candles
# macOS:
npx gmgn-cli market kline \
--chain sol \
--address <token_address> \
--resolution 1m \
--from $(date -v-1H +%s) \
--to $(date +%s)
# Linux: use $(date -d '1 hour ago' +%s) instead of $(date -v-1H +%s)
# Last 24 hours of 1-hour candles
# macOS:
npx gmgn-cli market kline \
--chain sol \
--address <token_address> \
--resolution 1h \
--from $(date -v-24H +%s) \
--to $(date +%s)
# Linux: use $(date -d '24 hours ago' +%s) instead of $(date -v-24H +%s)
# Top 20 hot tokens on SOL in the last 1 hour, sorted by volume
npx gmgn-cli market trending --chain sol --interval 1h --orderby volume --limit 20
# Hot tokens with social links only, not risky, on BSC over 24h
npx gmgn-cli market trending \
--chain bsc --interval 24h \
--filter has_social --filter not_risk
# Pump platform tokens on SOL, last 6 hours
npx gmgn-cli market trending --chain sol --interval 6h --platform pump
# Raw output for further processing
npx gmgn-cli market kline --chain sol --address <addr> \
--resolution 5m --from <ts> --to <ts> --raw | jq '.[]'Workflow: Discover Trading Opportunities via Trending
Step 1 — Fetch trending data
Fetch a broad pool with safe filters, sorted by GMGN's composite score:
bash
npx gmgn-cli market trending \
--chain <chain> --interval 1h \
--orderby score --limit 50 \
--filter not_risk --filter not_honeypot --filter has_social --rawStep 2 — AI multi-factor analysis
Analyze each record in the response using the following signals (apply judgment, not rigid rules):
| Signal | Field(s) | Weight | Notes |
|---|---|---|---|
| GMGN quality score | | High | Primary ranking signal from GMGN |
| Smart money interest | | High | Key conviction indicator |
| Bluechip ownership | | Medium | Quality of holder base |
| Real trading activity | | Medium | Distinguishes genuine interest from wash trading |
| Price momentum | | Medium | Prefer positive, non-parabolic moves |
| Pool safety | | Medium | Low liquidity = high slippage risk |
| Token maturity | | Low | Avoid tokens less than ~1h old unless other signals are very strong |
Select the top 5 tokens with the best composite profile. Prefer tokens that score well across multiple signals rather than excelling in just one.
Step 3 — Present top 5 to user
Present results as a concise table, then give a one-line rationale for each pick:
Top 5 Trending Tokens — SOL / 1h
# | Symbol | Address (short) | Score | Smart Degens | Volume | 1h Chg | Reasoning
1 | ... | ... | ... | ... | ... | ... | High score + smart money accumulating
2 | ...
...Step 4 — Follow-up actions
For each token, offer:
- Deep dive: +
token infofor full due diligencetoken security - Swap: execute directly if the user is satisfied with the trending data alone
Notes
- :
market klineand--fromare Unix timestamps in seconds — CLI converts to milliseconds automatically--to - :
market trendingand--filterare repeatable flags--platform - All commands use normal auth (API Key only, no signature)
- If the user doesn't provide kline timestamps, calculate them from the current time based on their desired time range
- Use to get single-line JSON for further processing
--raw