gmgn-cli 1.1.0 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,15 +4,17 @@ description: Query GMGN market data — token K-line (candlestick), trending tok
4
4
  argument-hint: "kline --chain <sol|bsc|base> --address <token_address> --resolution <1m|5m|15m|1h|4h|1d> [--from <unix_ts>] [--to <unix_ts>] | trending --chain <sol|bsc|base> --interval <1m|5m|1h|6h|24h> | trenches --chain <sol|bsc|base>"
5
5
  ---
6
6
 
7
+ **IMPORTANT: Always use `gmgn-cli` commands below. Do NOT use web search, WebFetch, curl, or visit gmgn.ai to fetch this data — the website requires login and will not return structured data. The CLI is the only correct method.**
8
+
7
9
  Use the `gmgn-cli` tool to query K-line data for a token, browse trending tokens, or view Trenches token lists.
8
10
 
9
11
  ## Sub-commands
10
12
 
11
13
  | Sub-command | Description |
12
14
  |-------------|-------------|
13
- | `market kline` | Token candlestick data |
14
- | `market trending` | Trending token swap data |
15
- | `market trenches` | Trenches token lists (new creation, near completion, completed) |
15
+ | `market kline` | Token candlestick / OHLCV data and trading volume over a time range |
16
+ | `market trending` | Trending tokens ranked by swap activity — use `--interval` to specify the time window (e.g. `1m` for 1-minute hottest, `1h` for 1-hour trending) |
17
+ | `market trenches` | Newly launched launchpad paltform tokens — **use this when the user asks for "new tokens", "just launched tokens", "latest tokens on pump.fun/letsbonk"**. Three categories: `new_creation` (just created), `near_completion` (bonding curve almost full), `completed` (graduated to open market / DEX) |
16
18
 
17
19
  ## Supported Chains
18
20
 
@@ -22,23 +24,52 @@ Use the `gmgn-cli` tool to query K-line data for a token, browse trending tokens
22
24
 
23
25
  - `.env` file with `GMGN_API_KEY` set
24
26
  - Run from the directory where your `.env` file is located, or set `GMGN_HOST` in your environment
25
- - `gmgn-cli` installed globally: `npm install -g gmgn-cli@1.1.0`
27
+ - `gmgn-cli` installed globally: `npm install -g gmgn-cli`
26
28
 
27
- ## Kline Parameters
29
+ ## `market kline` Parameters
28
30
 
29
31
  | Parameter | Required | Description |
30
32
  |-----------|----------|-------------|
31
33
  | `--chain` | Yes | `sol` / `bsc` / `base` |
32
34
  | `--address` | Yes | Token contract address |
33
- | `--resolution` | Yes | Candlestick resolution |
35
+ | `--resolution` | Yes | Candlestick resolution: `1m` / `5m` / `15m` / `1h` / `4h` / `1d` |
34
36
  | `--from` | No | Start time (Unix seconds) |
35
37
  | `--to` | No | End time (Unix seconds) |
36
38
 
37
- ## Resolutions
38
-
39
- `1m` / `5m` / `15m` / `1h` / `4h` / `1d`
40
-
41
- ## Trending Options
39
+ ## `market kline` Response Fields
40
+
41
+ The response is an object with a `list` array. Each element in `list` is one candlestick:
42
+
43
+ | Field | Type | Description |
44
+ |-------|------|-------------|
45
+ | `time` | number | Candle open time — Unix timestamp in **milliseconds** (divide by 1000 for seconds) |
46
+ | `open` | string | Opening price in USD at the start of the period |
47
+ | `close` | string | Closing price in USD at the end of the period |
48
+ | `high` | string | Highest price in USD during the period |
49
+ | `low` | string | Lowest price in USD during the period |
50
+ | `volume` | string | Trading volume in **USD** (dollar value of all trades in this period) |
51
+ | `amount` | string | Trading volume in **base token units** (number of tokens traded) |
52
+
53
+ **Important distinctions (naming is counterintuitive — do not guess):**
54
+ - `volume` = USD dollar value (e.g. `1214` means ~$1,214 traded) — use this for "how much was traded in USD"
55
+ - `amount` = token count (e.g. `5379110` means ~5.38M tokens changed hands) — use this for "how many tokens were traded"
56
+ - For tokens not priced at $1, `volume` and `amount` will differ by orders of magnitude (e.g. a $0.0002 token: $1,214 volume = 5,379,110 tokens)
57
+ - To get **total USD volume over a time range**, sum `volume` across all candles in the range
58
+ - To get **price trend**, read `close` values in chronological order (`time` ascending)
59
+ - To detect **volatility**, compare `high` vs `low` within each candle
60
+ - Candles are returned in chronological order (oldest first)
61
+
62
+ ## `market trending` Options
63
+
64
+ **`--interval` selection guide — always match to the user's stated time window:**
65
+
66
+ | User says | `--interval` |
67
+ |-----------|-------------|
68
+ | "1分钟热门" / "1m trending" / "hottest right now" | `1m` |
69
+ | "5分钟" / "5m" | `5m` |
70
+ | "1小时" / "1h" / no time specified (default) | `1h` |
71
+ | "6小时" / "6h" | `6h` |
72
+ | "24小时" / "今日" / "daily" | `24h` |
42
73
 
43
74
  | Option | Description |
44
75
  |--------|-------------|
@@ -52,6 +83,8 @@ Use the `gmgn-cli` tool to query K-line data for a token, browse trending tokens
52
83
 
53
84
  ## Usage Examples
54
85
 
86
+ ### Kline
87
+
55
88
  ```bash
56
89
  # Last 1 hour of 1-minute candles
57
90
  # macOS:
@@ -73,22 +106,210 @@ gmgn-cli market kline \
73
106
  --to $(date +%s)
74
107
  # Linux: use $(date -d '24 hours ago' +%s) instead of $(date -v-24H +%s)
75
108
 
109
+ # Raw output for further processing
110
+ gmgn-cli market kline --chain sol --address <addr> \
111
+ --resolution 5m --from <ts> --to <ts> --raw | jq '.[]'
112
+ ```
113
+
114
+ ### Trending — General
115
+
116
+ ```bash
76
117
  # Top 20 hot tokens on SOL in the last 1 hour, sorted by volume
77
118
  gmgn-cli market trending --chain sol --interval 1h --order-by volume --limit 20
78
119
 
120
+ # Top 50 tokens on SOL, 5m window, sorted by volume
121
+ gmgn-cli market trending --chain sol --interval 5m --order-by volume --limit 50
122
+
79
123
  # Hot tokens with social links only, verified and not honeypot, on BSC over 24h
80
124
  gmgn-cli market trending \
81
125
  --chain bsc --interval 24h \
82
126
  --filter has_social --filter not_honeypot --filter verified
127
+ ```
83
128
 
84
- # Pump.fun platform tokens on SOL, last 6 hours
85
- gmgn-cli market trending --chain sol --interval 6h --platform Pump.fun
129
+ ### Trending SOL by Launchpad Platform
86
130
 
87
- # Raw output for further processing
88
- gmgn-cli market kline --chain sol --address <addr> \
89
- --resolution 5m --from <ts> --to <ts> --raw | jq '.[]'
131
+ Use `--platform` to filter trending results to tokens from specific launchpads only.
132
+
133
+ ```bash
134
+ # SOL 1m hottest — Pump.fun + letsbonk only (most active launchpads), sorted by volume
135
+ gmgn-cli market trending \
136
+ --chain sol --interval 1m \
137
+ --platform Pump.fun --platform letsbonk \
138
+ --order-by volume --limit 50 --raw
139
+
140
+ # SOL 5m hottest — Pump.fun + letsbonk + Moonshot, sorted by volume
141
+ gmgn-cli market trending \
142
+ --chain sol --interval 5m \
143
+ --platform Pump.fun --platform letsbonk --platform moonshot_app \
144
+ --order-by volume --limit 50 --raw
145
+
146
+ # SOL 1h trending — Pump.fun only, with safety filters
147
+ gmgn-cli market trending \
148
+ --chain sol --interval 1h \
149
+ --platform Pump.fun \
150
+ --filter renounced --filter frozen --filter not_wash_trading \
151
+ --order-by volume --limit 20 --raw
152
+
153
+ # SOL 1h trending — all major launchpads combined
154
+ gmgn-cli market trending \
155
+ --chain sol --interval 1h \
156
+ --platform Pump.fun --platform letsbonk --platform moonshot_app \
157
+ --platform pump_mayhem --platform pump_mayhem_agent --platform bonkers \
158
+ --order-by volume --limit 50 --raw
90
159
  ```
91
160
 
161
+ ### Trending — BSC by Launchpad Platform
162
+
163
+ ```bash
164
+ # BSC 1m hottest — fourmeme (main BSC launchpad), sorted by volume
165
+ gmgn-cli market trending \
166
+ --chain bsc --interval 1m \
167
+ --platform fourmeme --platform four_xmode_agent \
168
+ --order-by volume --limit 50 --raw
169
+
170
+ # BSC 5m hottest — fourmeme family, sorted by volume
171
+ gmgn-cli market trending \
172
+ --chain bsc --interval 5m \
173
+ --platform fourmeme --platform fourmeme_agent --platform bn_fourmeme --platform four_xmode_agent \
174
+ --order-by volume --limit 50 --raw
175
+
176
+ # BSC 1h trending — fourmeme with safety filters
177
+ gmgn-cli market trending \
178
+ --chain bsc --interval 1h \
179
+ --platform fourmeme --platform fourmeme_agent --platform bn_fourmeme --platform four_xmode_agent \
180
+ --filter not_honeypot --filter verified \
181
+ --order-by volume --limit 20 --raw
182
+ ```
183
+
184
+ ### Trending — Base by Launchpad Platform
185
+
186
+ ```bash
187
+ # Base 1m hottest — clanker + zora (main Base launchpads), sorted by volume
188
+ gmgn-cli market trending \
189
+ --chain base --interval 1m \
190
+ --platform clanker --platform zora --platform zora_creator \
191
+ --order-by volume --limit 50 --raw
192
+
193
+ # Base 5m hottest — clanker + zora + virtuals_v2 + flaunch, sorted by volume
194
+ gmgn-cli market trending \
195
+ --chain base --interval 5m \
196
+ --platform clanker --platform zora --platform zora_creator \
197
+ --platform virtuals_v2 --platform flaunch \
198
+ --order-by volume --limit 50 --raw
199
+
200
+ # Base 1h trending — all major launchpads with safety filters
201
+ gmgn-cli market trending \
202
+ --chain base --interval 1h \
203
+ --platform clanker --platform zora --platform zora_creator \
204
+ --platform virtuals_v2 --platform flaunch --platform baseapp \
205
+ --filter not_honeypot --filter verified \
206
+ --order-by volume --limit 20 --raw
207
+ ```
208
+
209
+ ## `market trending` Response Fields
210
+
211
+ The response is `data.rank` — an array of rank items. Each item represents one token.
212
+
213
+ **Basic Info**
214
+
215
+ | Field | Description |
216
+ |-------|-------------|
217
+ | `address` | Token contract address |
218
+ | `symbol` / `name` | Token ticker and full name |
219
+ | `logo` | Token logo image URL |
220
+ | `chain` | Chain identifier |
221
+ | `total_supply` | Total token supply |
222
+ | `creator` | Creator wallet address |
223
+ | `launchpad_platform` | Launch/pool platform (e.g. `Pump.fun`, `letsbonk`, `pool_meteora`, `fourmeme`) |
224
+ | `exchange` | Current DEX (e.g. `meteora_damm_v2`, `raydium`, `pump_amm`) |
225
+ | `open_timestamp` | Open market listing time (Unix seconds) |
226
+ | `creation_timestamp` | Token creation time (Unix seconds) |
227
+ | `rank` | Position in this trending list (lower = hotter) |
228
+ | `hot_level` | Trending intensity level (higher = hotter) |
229
+
230
+ **Price & Market**
231
+
232
+ | Field | Description |
233
+ |-------|-------------|
234
+ | `price` | Current price in USD |
235
+ | `market_cap` | Market cap in USD (directly available — no calculation needed) |
236
+ | `liquidity` | Current liquidity in USD |
237
+ | `volume` | Trading volume in USD for the queried interval |
238
+ | `history_highest_market_cap` | All-time highest market cap in USD |
239
+ | `initial_liquidity` | Initial liquidity at token launch |
240
+ | `price_change_percent` | Price change % for the queried interval |
241
+ | `price_change_percent1m` | Price change % in last 1 minute |
242
+ | `price_change_percent5m` | Price change % in last 5 minutes |
243
+ | `price_change_percent1h` | Price change % in last 1 hour |
244
+
245
+ **Trading Activity**
246
+
247
+ | Field | Description |
248
+ |-------|-------------|
249
+ | `swaps` | Total swap count in the queried interval |
250
+ | `buys` / `sells` | Buy / sell count in the interval |
251
+ | `holder_count` | Number of unique token holders |
252
+ | `gas_fee` | Average gas fee per transaction |
253
+
254
+ **Security & Risk**
255
+
256
+ | Field | Chains | Description |
257
+ |-------|--------|-------------|
258
+ | `renounced_mint` | SOL | Mint authority renounced (`1` = yes, `0` = no) |
259
+ | `renounced_freeze_account` | SOL | Freeze authority renounced (`1` = yes, `0` = no) |
260
+ | `is_honeypot` | BSC / Base | Honeypot flag (`1` = yes, `0` = no) |
261
+ | `is_open_source` | all | Contract verified (`1` = yes, `0` = no) |
262
+ | `is_renounced` | all | Ownership renounced (`1` = yes, `0` = no) |
263
+ | `buy_tax` / `sell_tax` | all | Tax rate — empty string means `0` (no tax) |
264
+ | `burn_status` | all | Liquidity burn status (e.g. `"none"`, `"burn"`) |
265
+ | `top_10_holder_rate` | all | Top 10 wallets concentration (0–1) |
266
+ | `rug_ratio` | all | Rug pull risk score (0–1) |
267
+ | `is_wash_trading` | all | Wash trading detected (`true` / `false`) |
268
+ | `rat_trader_amount_rate` | all | Ratio of insider/sneak trading volume |
269
+ | `bundler_rate` | all | Ratio of bundle bot trading volume |
270
+ | `entrapment_ratio` | all | Entrapment trading ratio |
271
+ | `sniper_count` | all | Number of sniper wallets at launch |
272
+ | `bot_degen_count` / `bot_degen_rate` | all | Bot degen wallet count / ratio |
273
+ | `dev_team_hold_rate` | all | Dev team holding ratio |
274
+ | `top70_sniper_hold_rate` | all | Top 70 sniper current holding ratio |
275
+ | `lock_percent` | all | Liquidity lock percentage |
276
+
277
+ **Dev Status**
278
+
279
+ | Field | Description |
280
+ |-------|-------------|
281
+ | `creator_token_status` | Dev holding status: `creator_hold` (still holding) / `creator_close` (sold/closed) |
282
+ | `creator_close` | Boolean shorthand for `creator_token_status == creator_close` |
283
+ | `dev_token_burn_ratio` | Ratio of dev's tokens that have been burned |
284
+
285
+ **Smart Money**
286
+
287
+ | Field | Description |
288
+ |-------|-------------|
289
+ | `smart_degen_count` | Number of smart money wallets holding the token |
290
+ | `renowned_count` | Number of renowned / KOL wallets holding the token |
291
+ | `bluechip_owner_percentage` | Ratio of holders that are bluechip wallets (0–1) |
292
+
293
+ **Social**
294
+
295
+ | Field | Description |
296
+ |-------|-------------|
297
+ | `twitter_username` | Twitter / X username (not a full URL — prepend `https://x.com/` to get the link) |
298
+ | `website` | Project website URL |
299
+ | `telegram` | Telegram URL |
300
+ | `cto_flag` | Community takeover flag (`1` = CTO has occurred) |
301
+
302
+ **Dexscreener Marketing**
303
+
304
+ | Field | Description |
305
+ |-------|-------------|
306
+ | `dexscr_ad` | Dexscreener ad placed (`1` = yes) |
307
+ | `dexscr_update_link` | Social links updated on Dexscreener (`1` = yes) |
308
+ | `dexscr_trending_bar` | Paid for Dexscreener trending bar (`1` = yes) |
309
+ | `dexscr_boost_fee` | Dexscreener boost amount paid (0 = none) |
310
+
311
+ ---
312
+
92
313
  ## Workflow: Discover Trading Opportunities via Trending
93
314
 
94
315
  ### Step 1 — Fetch trending data
@@ -136,17 +357,192 @@ For each token, offer:
136
357
  - **Deep dive**: `token info` + `token security` for full due diligence
137
358
  - **Swap**: execute directly if the user is satisfied with the trending data alone
138
359
 
139
- ## Trenches Parameters
360
+ ## `market trenches` Parameters
361
+
362
+ **Intent → `--type` mapping (always specify `--type` explicitly):**
363
+
364
+ | User intent | `--type` value |
365
+ |-------------|----------------|
366
+ | "new tokens", "just launched", "newly created", "latest tokens" | `new_creation` |
367
+ | "about to graduate", "near completion", "bonding curve almost full" | `near_completion` |
368
+ | "graduated tokens", "already on DEX", "open market tokens" | `completed` |
369
+ | No specific stage mentioned | omit `--type` (returns all three) |
140
370
 
141
371
  | Parameter | Required | Description |
142
372
  |-----------|----------|-------------|
143
373
  | `--chain` | Yes | `sol` / `bsc` / `base` |
374
+ | `--type` | No | Categories to query, repeatable: `new_creation` / `near_completion` / `completed` (default: all three) |
375
+ | `--launchpad-platform` | No | Launchpad platform filter, repeatable (default: all platforms for the chain) |
376
+ | `--limit` | No | Max results per category, max 80 (default: 80) |
377
+
378
+ Response fields: `data.new_creation`, `data.pump`, `data.completed` — each is an array of `RankItem` (same fields as `market trending` rank items). **Important: `data.pump` in the response corresponds to `--type near_completion` in the request. The API always returns this category under the key `pump`, not `near_completion`.**
379
+
380
+ ## `market trenches` Response Fields
381
+
382
+ **Basic Info**
383
+
384
+ | Field | Description |
385
+ |-------|-------------|
386
+ | `address` | Token contract address |
387
+ | `symbol` / `name` | Token symbol and name |
388
+ | `launchpad_platform` | Launch platform (e.g. `Pump.fun`, `letsbonk`) |
389
+ | `exchange` | Current exchange (e.g. `pump_amm`, `raydium`) |
390
+ | `usd_market_cap` | Market cap in USD |
391
+ | `liquidity` | Liquidity in USD |
392
+ | `total_supply` | Total token supply |
393
+ | `created_timestamp` | Creation time (Unix seconds) |
394
+ | `open_timestamp` | Open market listing time (Unix seconds, `completed` only) |
395
+ | `complete_timestamp` | Bonding curve completion time (Unix seconds) |
396
+ | `complete_cost_time` | Time from creation to completion in seconds |
397
+
398
+ **Trading Data**
399
+
400
+ | Field | Description |
401
+ |-------|-------------|
402
+ | `swaps_1m` / `swaps_1h` / `swaps_24h` | Swap count per time window |
403
+ | `volume_1h` / `volume_24h` | Trading volume in USD |
404
+ | `buys_24h` / `sells_24h` | Buy / sell count in 24h |
405
+ | `net_buy_24h` | Net buy volume in 24h |
406
+ | `holder_count` | Number of token holders |
407
+
408
+ **Security & Risk**
409
+
410
+ | Field | Chains | Description |
411
+ |-------|--------|-------------|
412
+ | `renounced_mint` | SOL | Whether mint authority is renounced (SOL-specific concept; always `false` on EVM chains) |
413
+ | `renounced_freeze_account` | SOL | Whether freeze authority is renounced (SOL-specific concept; always `false` on EVM chains) |
414
+ | `burn_status` | all | Liquidity burn status |
415
+ | `rug_ratio` | all | Rug pull risk ratio |
416
+ | `top_10_holder_rate` | all | Top 10 holders concentration ratio |
417
+ | `rat_trader_amount_rate` | all | Insider / sneak trading volume ratio |
418
+ | `bundler_trader_amount_rate` | all | Bundle trading volume ratio |
419
+ | `is_wash_trading` | all | Whether wash trading is detected |
420
+ | `sniper_count` | all | Number of sniper wallets |
421
+ | `suspected_insider_hold_rate` | all | Suspected insider holding ratio |
422
+ | `open_source` | all | Whether contract source code is verified (`"yes"` / `"no"` / `"unknown"`) |
423
+ | `owner_renounced` | all | Whether contract ownership is renounced (`"yes"` / `"no"` / `"unknown"`) |
424
+ | `is_honeypot` | BSC / Base | Whether token is a honeypot (`"yes"` / `"no"`); returns empty string on SOL (not applicable) |
425
+ | `buy_tax` | all | Buy tax ratio (e.g. `0.03` = 3%) |
426
+ | `dev_team_hold_rate` | all | Dev team holding ratio |
427
+
428
+ **Dev Holdings**
429
+
430
+ | Field | Description |
431
+ |-------|-------------|
432
+ | `creator_token_status` | Dev holding status (e.g. `creator_hold`, `creator_close`) |
433
+ | `creator_balance_rate` | Dev holding ratio as a proportion of total supply |
434
+
435
+ **Smart Money**
436
+
437
+ | Field | Description |
438
+ |-------|-------------|
439
+ | `smart_degen_count` | Number of smart money holders |
440
+ | `renowned_count` | Number of renowned wallet holders (KOL) |
441
+
442
+ **Social Media**
443
+
444
+ | Field | Description |
445
+ |-------|-------------|
446
+ | `twitter` | Twitter / X link |
447
+ | `telegram` | Telegram link |
448
+ | `website` | Website link |
449
+ | `instagram` | Instagram link |
450
+ | `tiktok` | TikTok link |
451
+ | `has_at_least_one_social` | Whether any social media link exists |
452
+ | `x_user_follower` | Twitter follower count |
453
+ | `cto_flag` | Whether community takeover (CTO) has occurred |
454
+
455
+ **Dexscreener Marketing**
456
+
457
+ | Field | Description |
458
+ |-------|-------------|
459
+ | `dexscr_ad` | Whether a Dexscreener ad has been placed |
460
+ | `dexscr_update_link` | Whether social links have been updated on Dexscreener |
461
+ | `dexscr_trending_bar` | Whether paid for Dexscreener trending bar placement |
462
+ | `dexscr_boost_fee` | Amount paid for Dexscreener boost (0 = none) |
463
+
464
+ ### Solana Trenches Examples
465
+
466
+ ```bash
467
+ # All three categories at once
468
+ gmgn-cli market trenches --chain sol --raw \
469
+ --type new_creation --type near_completion --type completed \
470
+ --launchpad-platform Pump.fun --launchpad-platform pump_mayhem --launchpad-platform pump_mayhem_agent --launchpad-platform pump_agent --launchpad-platform letsbonk --launchpad-platform bonkers --launchpad-platform bags \
471
+ --limit 80
472
+
473
+ # New creation only
474
+ gmgn-cli market trenches --chain sol --raw \
475
+ --type new_creation \
476
+ --launchpad-platform Pump.fun --launchpad-platform pump_mayhem --launchpad-platform pump_mayhem_agent --launchpad-platform pump_agent --launchpad-platform letsbonk --launchpad-platform bonkers --launchpad-platform bags \
477
+ --limit 80
478
+
479
+ # Near completion only
480
+ gmgn-cli market trenches --chain sol --raw \
481
+ --type near_completion \
482
+ --launchpad-platform Pump.fun --launchpad-platform pump_mayhem --launchpad-platform pump_mayhem_agent --launchpad-platform pump_agent --launchpad-platform letsbonk --launchpad-platform bonkers --launchpad-platform bags \
483
+ --limit 80
484
+
485
+ # Completed (open market) only
486
+ gmgn-cli market trenches --chain sol --raw \
487
+ --type completed \
488
+ --launchpad-platform Pump.fun --launchpad-platform pump_mayhem --launchpad-platform pump_mayhem_agent --launchpad-platform pump_agent --launchpad-platform letsbonk --launchpad-platform bonkers --launchpad-platform bags \
489
+ --limit 80
490
+ ```
491
+
492
+ ### BSC Trenches Examples
493
+
494
+ ```bash
495
+ # All three categories at once
496
+ gmgn-cli market trenches --chain bsc --raw \
497
+ --type new_creation --type near_completion --type completed \
498
+ --launchpad-platform fourmeme --launchpad-platform fourmeme_agent --launchpad-platform bn_fourmeme --launchpad-platform four_xmode_agent --launchpad-platform flap --launchpad-platform clanker --launchpad-platform lunafun \
499
+ --limit 80
500
+
501
+ # New creation only
502
+ gmgn-cli market trenches --chain bsc --raw \
503
+ --type new_creation \
504
+ --launchpad-platform fourmeme --launchpad-platform fourmeme_agent --launchpad-platform bn_fourmeme --launchpad-platform four_xmode_agent --launchpad-platform flap --launchpad-platform clanker --launchpad-platform lunafun \
505
+ --limit 80
506
+
507
+ # Near completion only
508
+ gmgn-cli market trenches --chain bsc --raw \
509
+ --type near_completion \
510
+ --launchpad-platform fourmeme --launchpad-platform fourmeme_agent --launchpad-platform bn_fourmeme --launchpad-platform four_xmode_agent --launchpad-platform flap --launchpad-platform clanker --launchpad-platform lunafun \
511
+ --limit 80
512
+
513
+ # Completed (open market) only
514
+ gmgn-cli market trenches --chain bsc --raw \
515
+ --type completed \
516
+ --launchpad-platform fourmeme --launchpad-platform fourmeme_agent --launchpad-platform bn_fourmeme --launchpad-platform four_xmode_agent --launchpad-platform flap --launchpad-platform clanker --launchpad-platform lunafun \
517
+ --limit 80
518
+ ```
144
519
 
145
- Response fields: `data.new_creation`, `data.pump`, `data.completed` — each is an array of `RankItem` (same fields as `market trending` rank items).
520
+ ### Base Trenches Examples
146
521
 
147
522
  ```bash
148
- # Trenches token lists on SOL
149
- gmgn-cli market trenches --chain sol --raw
523
+ # All three categories at once
524
+ gmgn-cli market trenches --chain base --raw \
525
+ --type new_creation --type near_completion --type completed \
526
+ --launchpad-platform clanker --launchpad-platform bankr --launchpad-platform flaunch --launchpad-platform zora --launchpad-platform zora_creator --launchpad-platform baseapp --launchpad-platform basememe --launchpad-platform virtuals_v2 --launchpad-platform klik \
527
+ --limit 80
528
+
529
+ # New creation only
530
+ gmgn-cli market trenches --chain base --raw \
531
+ --type new_creation \
532
+ --launchpad-platform clanker --launchpad-platform bankr --launchpad-platform flaunch --launchpad-platform zora --launchpad-platform zora_creator --launchpad-platform baseapp --launchpad-platform basememe --launchpad-platform virtuals_v2 --launchpad-platform klik \
533
+ --limit 80
534
+
535
+ # Near completion only
536
+ gmgn-cli market trenches --chain base --raw \
537
+ --type near_completion \
538
+ --launchpad-platform clanker --launchpad-platform bankr --launchpad-platform flaunch --launchpad-platform zora --launchpad-platform zora_creator --launchpad-platform baseapp --launchpad-platform basememe --launchpad-platform virtuals_v2 --launchpad-platform klik \
539
+ --limit 80
540
+
541
+ # Completed (open market) only
542
+ gmgn-cli market trenches --chain base --raw \
543
+ --type completed \
544
+ --launchpad-platform clanker --launchpad-platform bankr --launchpad-platform flaunch --launchpad-platform zora --launchpad-platform zora_creator --launchpad-platform baseapp --launchpad-platform basememe --launchpad-platform virtuals_v2 --launchpad-platform klik \
545
+ --limit 80
150
546
  ```
151
547
 
152
548
  ## Notes
@@ -1,9 +1,11 @@
1
1
  ---
2
2
  name: gmgn-portfolio
3
- description: Query GMGN wallet portfolio — API Key wallet info, holdings, transaction activity, trading stats, token balance, follow-wallet trades, KOL trades, and Smart Money trades. Supports sol / bsc / base.
4
- argument-hint: "<info|holdings|activity|stats|token-balance|follow-wallet|kol|smartmoney> [--chain <sol|bsc|base>] [--wallet <wallet_address>]"
3
+ description: Query GMGN wallet portfolio — API Key wallet info, holdings, transaction activity, trading stats, and token balance. Supports sol / bsc / base.
4
+ argument-hint: "<info|holdings|activity|stats|token-balance> [--chain <sol|bsc|base>] [--wallet <wallet_address>]"
5
5
  ---
6
6
 
7
+ **IMPORTANT: Always use `gmgn-cli` commands below. Do NOT use web search, WebFetch, curl, or visit gmgn.ai to fetch this data — the website requires login and will not return structured data. The CLI is the only correct method.**
8
+
7
9
  Use the `gmgn-cli` tool to query wallet portfolio data based on the user's request.
8
10
 
9
11
  ## Sub-commands
@@ -15,9 +17,6 @@ Use the `gmgn-cli` tool to query wallet portfolio data based on the user's reque
15
17
  | `portfolio activity` | Transaction history |
16
18
  | `portfolio stats` | Trading statistics (supports batch) |
17
19
  | `portfolio token-balance` | Token balance for a specific token |
18
- | `portfolio follow-wallet` | Follow-wallet trade records |
19
- | `portfolio kol` | KOL trade records (SOL chain) |
20
- | `portfolio smartmoney` | Smart Money trade records (SOL chain) |
21
20
 
22
21
  ## Supported Chains
23
22
 
@@ -27,7 +26,7 @@ Use the `gmgn-cli` tool to query wallet portfolio data based on the user's reque
27
26
 
28
27
  - `.env` file with `GMGN_API_KEY` set
29
28
  - Run from the directory where your `.env` file is located, or set `GMGN_HOST` in your environment
30
- - `gmgn-cli` installed globally: `npm install -g gmgn-cli@1.1.0`
29
+ - `gmgn-cli` installed globally: `npm install -g gmgn-cli`
31
30
 
32
31
  ## Usage Examples
33
32
 
@@ -72,7 +71,7 @@ gmgn-cli portfolio token-balance \
72
71
  --chain sol --wallet <wallet_address> --token <token_address>
73
72
  ```
74
73
 
75
- ## Holdings Options
74
+ ## `portfolio holdings` Options
76
75
 
77
76
  | Option | Description |
78
77
  |--------|-------------|
@@ -87,7 +86,7 @@ gmgn-cli portfolio token-balance \
87
86
  | `--hide-closed` | Hide closed positions |
88
87
  | `--hide-open` | Hide open positions |
89
88
 
90
- ## Activity Options
89
+ ## `portfolio activity` Options
91
90
 
92
91
  | Option | Description |
93
92
  |--------|-------------|
@@ -98,55 +97,16 @@ gmgn-cli portfolio token-balance \
98
97
 
99
98
  The activity response includes a `next` field. Pass it to `--cursor` to fetch the next page.
100
99
 
101
- ## Stats Options
100
+ ## `portfolio stats` Options
102
101
 
103
102
  | Option | Description |
104
103
  |--------|-------------|
105
104
  | `--period <period>` | Stats period: `7d` / `30d` (default `7d`) |
106
105
 
107
- ## Follow-Wallet Options
108
-
109
- | Option | Description |
110
- |--------|-------------|
111
- | `--chain` | Required. `sol` / `bsc` / `base` / `eth` |
112
- | `--wallet <address>` | Filter by wallet address |
113
- | `--base-token <address>` | Filter by base token address |
114
- | `--page-token <cursor>` | Pagination cursor |
115
- | `--limit <n>` | Page size (1–200, default 100) |
116
- | `--side <side>` | Trade direction filter |
117
- | `--cost <cost>` | Cost filter |
118
- | `--filter <tag...>` | Repeatable filter conditions |
119
- | `--with-balance` | Include balance in response |
120
- | `--with-security` | Include security info in response |
121
- | `--min-amount-usd <n>` | Minimum trade amount (USD) |
122
- | `--max-amount-usd <n>` | Maximum trade amount (USD) |
123
- | `--is-gray` | Gray mode filter |
124
-
125
- ## KOL / Smart Money Options
126
-
127
- | Option | Description |
128
- |--------|-------------|
129
- | `--limit <n>` | Page size (1–200, default 100) |
130
-
131
- Both `kol` and `smartmoney` return SOL chain data only — no `--chain` flag needed.
132
-
133
- ```bash
134
- # Follow-wallet trades filtered by wallet
135
- gmgn-cli portfolio follow-wallet --chain sol --wallet <wallet_address>
136
-
137
- # Follow-wallet with balance info
138
- gmgn-cli portfolio follow-wallet --chain sol --with-balance --limit 20
139
-
140
- # KOL trade records
141
- gmgn-cli portfolio kol --limit 10 --raw
142
-
143
- # Smart Money trade records
144
- gmgn-cli portfolio smartmoney --limit 10 --raw
145
- ```
146
-
147
106
  ## Notes
148
107
 
149
108
  - All portfolio commands use normal auth (API Key only, no signature required)
150
109
  - `portfolio stats` supports multiple `--wallet` flags for batch queries
151
110
  - Use `--raw` to get single-line JSON for further processing
152
111
  - **Input validation** — Wallet and token addresses are validated against the expected chain format at runtime (sol: base58 32–44 chars; bsc/base/eth: `0x` + 40 hex digits). The CLI exits with an error on invalid input.
112
+ - For follow-wallet, KOL, and Smart Money trade records, use the `gmgn-track` skill (`track follow-wallet` / `track kol` / `track smartmoney`)