### Install GMGN Skills for OpenCode Source: https://github.com/gmgnai/gmgn-skills/blob/main/Readme.md Clone the GMGN Skills repository and create a symbolic link for OpenCode to access the skills. This setup is part of the full installation instructions found in .opencode/INSTALL.md. ```bash git clone https://github.com/GMGNAI/gmgn-skills ~/.opencode/gmgn-cli mkdir -p ~/.agents/skills ln -s ~/.opencode/gmgn-cli/skills ~/.agents/skills/gmgn-cli ``` -------------------------------- ### Local Development Installation Source: https://github.com/gmgnai/gmgn-skills/blob/main/Readme.md Steps for installing and building the GMGN CLI for local development. ```bash npm install npm run build node dist/index.js [options] ``` -------------------------------- ### Verify Final CLI Setup Source: https://github.com/gmgnai/gmgn-skills/blob/main/Readme.md Run this command after configuring your personal API key to ensure the setup is complete and functional. ```bash gmgn-cli market trending --chain sol --interval 1h --limit 3 ``` -------------------------------- ### Install gmgn-cli Source: https://github.com/gmgnai/gmgn-skills/blob/main/skills/gmgn-portfolio/SKILL.md Install the gmgn-cli tool globally if it is missing. This is a prerequisite for using the skill. ```bash npm install -g gmgn-cli ``` -------------------------------- ### Verify CLI Installation with Demo Key Source: https://github.com/gmgnai/gmgn-skills/blob/main/Readme.md Verify the CLI installation by checking trending market data. This uses a public demo key for testing purposes only. ```bash GMGN_API_KEY=gmgn_solbscbaseethmonadtron gmgn-cli market trending --chain sol --interval 1h --limit 3 ``` -------------------------------- ### Install GMGN Agent Skill Source: https://github.com/gmgnai/gmgn-skills/wiki/Home Run this command to add the GMGN Agent Skill to your AI agent. This is the initial setup step. ```bash npx skills add GMGNAI/gmgn-skills ``` -------------------------------- ### Multi-group Query Example Source: https://github.com/gmgnai/gmgn-skills/blob/main/skills/gmgn-market/SKILL.md Use the `--groups` flag to query multiple filter groups in parallel. This example fetches smart money buys (type 12) and price spikes/ATHs (types 6 and 7) with specific market cap filters for each group. ```bash gmgn-cli market signal --chain sol \ --groups '[{"signal_type":[12,13]},{"signal_type":[6,7],"mc_min":50000}]' ``` -------------------------------- ### Install GMGN Skills for Codex CLI Source: https://github.com/gmgnai/gmgn-skills/blob/main/Readme.md Clone the GMGN Skills repository and create a symbolic link for Codex CLI to access the skills. This setup is part of the full installation instructions found in .codex/INSTALL.md. ```bash git clone https://github.com/GMGNAI/gmgn-skills ~/.codex/gmgn-cli mkdir -p ~/.agents/skills ln -s ~/.codex/gmgn-cli/skills ~/.agents/skills/gmgn-cli ``` -------------------------------- ### Install GMGN CLI and Skills Source: https://github.com/gmgnai/gmgn-skills/blob/main/Readme.md Use this command to add the GMGN skills package to your project. ```bash npx skills add GMGNAI/gmgn-skills ``` -------------------------------- ### Get Portfolio Info CLI Command Source: https://github.com/gmgnai/gmgn-skills/blob/main/Readme.md Retrieves information about wallets and balances linked to the API key. ```bash gmgn-cli portfolio info ``` -------------------------------- ### Get Token Creation Statistics Source: https://github.com/gmgnai/gmgn-skills/blob/main/skills/gmgn-cooking/SKILL.md Retrieves statistics related to token creation launches per launchpad. ```bash gmgn-cli cooking stats ``` -------------------------------- ### Pump.fun Fee Share List Example Source: https://github.com/gmgnai/gmgn-skills/blob/main/skills/gmgn-cooking/SKILL.md Example of a JSON string for the `--pump-fee-share-list` flag on Pump.fun. It specifies a provider, username, and share in basis points. ```bash --pump-fee-share-list '[{"provider":"twitter","username":"handle","basic_points":10000}]' ``` -------------------------------- ### Example Natural Language Prompts for AI Assistants Source: https://github.com/gmgnai/gmgn-skills/blob/main/Readme.md A collection of natural language prompts that can be sent to any AI assistant with gmgn-cli skills installed. These cover various actions like trading, checking status, and querying token information. ```text buy 0.1 SOL of sell 50% of on BSC sell 30% of my position get a quote: how much can I get for 1 SOL? check order status is safe to buy on solana? show top holders of show smart money holdings of , sorted by buy volume show recent KOL trades for show my wallet holdings on SOL query token details for 0x1234... show 24h K-line and volume for show trading stats for wallet on BSC show recent trades for wallet which wallets are linked to my API key, and what are their balances show the latest smart money trades on SOL show what KOLs are buying on SOL show newly launched tokens on Solana show Solana 1-minute trending tokens ``` -------------------------------- ### Example Natural Language Prompt Source: https://github.com/gmgnai/gmgn-skills/wiki/Home Send this type of prompt to your AI agent after installation to query trending tokens. The agent will interpret the natural language request. ```text Show me the trending tokens on Solana in the last 1 hour. ``` -------------------------------- ### BAGS Fee Share List Example Source: https://github.com/gmgnai/gmgn-skills/blob/main/skills/gmgn-cooking/SKILL.md Example of a JSON string for the `--bags-fee-share-list` flag on BAGS. It includes provider, username, and basis points for fee distribution. ```bash --bags-fee-share-list '[{"provider":"twitter","username":"handle","basic_points":10000}]' ``` -------------------------------- ### Check Installed Version Source: https://github.com/gmgnai/gmgn-skills/blob/main/Readme.md Verify the installed version of the GMGN CLI after upgrading. ```bash gmgn-cli --version ``` -------------------------------- ### Get Cooking Statistics Source: https://github.com/gmgnai/gmgn-skills/blob/main/docs/cli-usage.md Retrieves token creation statistics grouped by launchpad. No additional options are required. ```bash gmgn-cli cooking stats [--raw] ``` -------------------------------- ### Get Estimated Swap Output Source: https://github.com/gmgnai/gmgn-skills/blob/main/skills/gmgn-swap/SKILL.md Run this command before displaying swap confirmation to get the estimated output amount. Requires signed authentication and GMGN_PRIVATE_KEY. ```bash gmgn-cli order quote \ --chain \ --from \ --input-token \ --output-token \ --amount \ --slippage ``` -------------------------------- ### Get Trading Stats (Default 7 Days) Source: https://github.com/gmgnai/gmgn-skills/blob/main/skills/gmgn-portfolio/SKILL.md Fetch trading statistics for a wallet over the default period of 7 days. ```bash # Trading stats (default 7d) gmgn-cli portfolio stats --chain sol --wallet ``` -------------------------------- ### Get Portfolio Activity CLI Command Source: https://github.com/gmgnai/gmgn-skills/blob/main/Readme.md Retrieves a user's portfolio activity on a specific chain. Replace with the wallet address. ```bash gmgn-cli portfolio activity --chain sol --wallet ``` -------------------------------- ### Early Project Screening Output Format Source: https://github.com/gmgnai/gmgn-skills/blob/main/docs/workflow-early-project-screening.md This is an example of how the screening results are presented, including a table summarizing key metrics and a verdict for each token. The output format helps in quickly assessing multiple tokens. ```bash Early Project Screening — {chain} / {type} Screened: {N} tokens from trenches → {M} passed filter # | Symbol | Address (short) | Smart Degens | Rug Risk | Security | Verdict 1 | ... | ... | {N} wallets | {X} | ✅/⚠️/🚫 | Watch / Small position / Skip ... ─── Top Pick ─────────────────────────────── {SYMBOL}: Smart money in early, security clean, social present → Suggested action: Small exploratory position / Watch for 1h / Skip ``` -------------------------------- ### Typical Workflow: Research a Token Source: https://github.com/gmgnai/gmgn-skills/blob/main/Readme.md A sequence of steps for researching a token, starting with basic information and progressing to security, pool, and holder analysis. ```text token info → token security → token pool → token holders ``` -------------------------------- ### Get Tokens Created by Developer Wallet CLI Command Source: https://github.com/gmgnai/gmgn-skills/blob/main/Readme.md Lists tokens created by a specific developer wallet on a given chain. Replace with the wallet address. ```bash gmgn-cli portfolio created-tokens --chain sol --wallet ``` -------------------------------- ### Create Token on Pump.fun with Auto-Sell Configuration Source: https://github.com/gmgnai/gmgn-skills/blob/main/skills/gmgn-cooking/SKILL.md Creates a token on Pump.fun with an auto-sell configuration to sell 50% of the tokens 60 seconds after purchase. ```bash gmgn-cli cooking create \ --chain sol \ --dex pump \ --from \ --name "My Token" \ --symbol MAT \ --buy-amt 0.01 \ --image-url https://example.com/logo.png \ --auto-slippage \ --sell-configs '[{"sell_type":"delay_sell","delay_sec":60,"sell_ratio":"0.5","wallet_addresses":[""]}]' ``` -------------------------------- ### Create Token on Launchpad Source: https://github.com/gmgnai/gmgn-skills/blob/main/docs/cli-usage.md Creates a token on a specified launchpad platform. Requires GMGN_PRIVATE_KEY to be configured. This command supports numerous options for customization, including image, slippage, social links, fees, and advanced configurations for different launchpads and chains. ```bash gmgn-cli cooking create \ --chain \ --dex \ --from \ --name \ --symbol \ --buy-amt \ [--image | --image-url ] \ [--slippage | --auto-slippage] \ [--website ] [--twitter ] [--telegram ] \ [--fee ] [--priority-fee ] [--tip-fee ] [--gas-price ] \ [--max-fee-per-gas ] [--max-priority-fee-per-gas ] \ [--anti-mev] [--anti-mev-mode ] \ [--raised-token ] \ [--dev-wallet-bps ] [--dev-gas ] [--dev-priority ] [--dev-tip ] [--dev-max-fee-per-gas ] \ [--approve-vision ] [--source ] \ [--is-mayhem] [--is-cashback] [--is-buy-back] \ [--pump-fee-share-list ] \ [--flap-rate-conf ] \ [--fourmeme-rate-conf ] \ [--bags-fee-share-list ] \ [--bonk-model ] \ [--buy-wallets ] [--snip-buy-wallets ] \ [--buy-trade-config ] [--sell-trade-config ] [--sell-configs ] \ [--raw] ``` -------------------------------- ### Basic Swap with gmgn-cli Source: https://github.com/gmgnai/gmgn-skills/blob/main/skills/gmgn-swap/SKILL.md Execute a standard token swap by providing input and output token addresses and the amount. Ensure the `--from` address is correctly bound to your API key. ```bash gmgn-cli swap \ --chain sol \ --from \ --input-token \ --output-token \ --amount ``` -------------------------------- ### Multi-group: Combined Filters Source: https://github.com/gmgnai/gmgn-skills/blob/main/skills/gmgn-market/SKILL.md This example uses the `--groups` flag to execute parallel queries with combined signal type and market cap filters. The first group targets specific signal types with a minimum market cap, while the second group targets different signal types within a broader market cap range. ```bash gmgn-cli market signal --chain sol \ --groups '[{"signal_type":[12,13],"mc_min":100000},{"signal_type":[6,7],"mc_min":50000,"mc_max":1000000}]' --raw ``` -------------------------------- ### order get Source: https://github.com/gmgnai/gmgn-skills/blob/main/skills/gmgn-swap/SKILL.md Retrieves details for a specific order. Response fields are shared with the `swap` endpoint. ```APIDOC ## `order get` Usage ### Description Retrieves details for a specific order using its ID. ### Method GET (implied by `gmgn-cli order get`) ### Endpoint `/order/get` (inferred from `gmgn-cli order get`) ### Parameters #### Query Parameters - **chain** (string) - Required - The blockchain network identifier. - **order-id** (string) - Required - The unique identifier of the order. ### Request Example ```bash gmgn-cli order get --chain sol --order-id ``` ### Response Response fields are shared with `swap` — see [`swap` / `order get` Response Fields](#swap--order-get-response-fields) above. ``` -------------------------------- ### Fetch Newly Launched Tokens Source: https://github.com/gmgnai/gmgn-skills/blob/main/docs/workflow-early-project-screening.md Use these commands to fetch newly launched tokens based on their status on the bonding curve or DEX. Choose the type that best suits your risk tolerance and desired entry window. ```bash # Tokens just created, still on bonding curve gmgn-cli market trenches --chain --type new_creation ``` ```bash # Tokens near bonding curve completion (about to graduate to DEX) gmgn-cli market trenches --chain --type near_completion ``` ```bash # Tokens that have already graduated to open market gmgn-cli market trenches --chain --type completed ``` -------------------------------- ### Create Token on Pump.fun (SOL) with URL Image Source: https://github.com/gmgnai/gmgn-skills/blob/main/skills/gmgn-cooking/SKILL.md Creates a token on Pump.fun using a provided image URL. Includes settings for buy amount, slippage, and priority fee. ```bash gmgn-cli cooking create \ --chain sol \ --dex pump \ --from \ --name "My Token" \ --symbol MAT \ --buy-amt 0.01 \ --image-url https://example.com/logo.png \ --slippage 30 \ --priority-fee 0.001 ``` -------------------------------- ### Get Only Migrated Created Tokens Source: https://github.com/gmgnai/gmgn-skills/blob/main/skills/gmgn-portfolio/SKILL.md Filter the list of created tokens to show only those that have a 'migrated' state. ```bash # Only migrated tokens gmgn-cli portfolio created-tokens \ --chain sol --wallet --migrate-state migrated ``` -------------------------------- ### Get Token Balance Source: https://github.com/gmgnai/gmgn-skills/blob/main/skills/gmgn-portfolio/SKILL.md Check the balance of a specific token for a given wallet address on a blockchain. ```bash # Token balance gmgn-cli portfolio token-balance \ --chain sol --wallet --token ``` -------------------------------- ### Follow Tokens on BSC with Raw JSON Output Source: https://github.com/gmgnai/gmgn-skills/blob/main/skills/gmgn-track/SKILL.md Tracks followed tokens for a specified wallet address on the Binance Smart Chain, outputting raw JSON. ```bash gmgn-cli track follow-tokens --chain bsc --wallet --raw ``` -------------------------------- ### Get Transaction Activity Source: https://github.com/gmgnai/gmgn-skills/blob/main/skills/gmgn-portfolio/SKILL.md Retrieve the transaction activity for a specified wallet address on a given blockchain. ```bash # Transaction activity gmgn-cli portfolio activity --chain sol --wallet ``` -------------------------------- ### Configure GMGN API Key Source: https://github.com/gmgnai/gmgn-skills/blob/main/skills/gmgn-token/SKILL.md Set up the GMGN_API_KEY environment variable in the .env file. This is required for authentication. ```bash mkdir -p ~/.config/gmgn echo 'GMGN_API_KEY=' > ~/.config/gmgn/.env chmod 600 ~/.config/gmgn/.env ``` -------------------------------- ### Execute Multi-Swap with Basic Parameters Source: https://github.com/gmgnai/gmgn-skills/blob/main/docs/cli-usage.md Submit token swaps concurrently from multiple accounts. Ensure GMGN_PRIVATE_KEY is configured. All accounts must be bound to the API Key. ```bash gmgn-cli multi-swap \ --chain \ --accounts , \ --input-token \ --output-token \ [--input-amount ] \ [--input-amount-bps ] \ [--output-amount ] \ [--slippage ] \ [--auto-slippage] \ [--anti-mev] \ [--priority-fee ] \ [--tip-fee ] \ [--gas-price ] \ [--max-fee-per-gas ] \ [--max-priority-fee-per-gas ] \ [--condition-orders ] \ [--sell-ratio-type ] \ [--raw] ``` -------------------------------- ### Get ETH Wallet Holdings Source: https://github.com/gmgnai/gmgn-skills/blob/main/skills/gmgn-portfolio/SKILL.md Fetch the holdings of an Ethereum wallet address. Requires specifying the 'eth' chain. ```bash # ETH wallet holdings gmgn-cli portfolio holdings --chain eth --wallet <0x_wallet_address> ``` -------------------------------- ### Fetch Basic Token Info and Price Source: https://github.com/gmgnai/gmgn-skills/blob/main/skills/gmgn-token/SKILL.md Use the `token info` command to retrieve current price, market cap, and basic details for a token on various chains. The `--raw` flag provides JSON output for programmatic use. ```bash # Get current price and market cap for a SOL token gmgn-cli token info --chain sol --address EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v # Get basic info for a BSC token gmgn-cli token info --chain bsc --address 0x2170Ed0880ac9A755fd29B2688956BD959F933F8 # Get basic info for a Base token gmgn-cli token info --chain base --address 0x4200000000000000000000000000000000000006 # Get basic info for an ETH token gmgn-cli token info --chain eth --address 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 # Raw JSON output for downstream processing gmgn-cli token info --chain sol --address EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v --raw ``` -------------------------------- ### Get Tokens Created by a Developer Wallet Source: https://github.com/gmgnai/gmgn-skills/blob/main/skills/gmgn-portfolio/SKILL.md List all tokens that have been created by a specific developer wallet address on a blockchain. ```bash # Tokens created by a developer wallet gmgn-cli portfolio created-tokens --chain sol --wallet ``` -------------------------------- ### Get Trading Stats for 30 Days Source: https://github.com/gmgnai/gmgn-skills/blob/main/skills/gmgn-portfolio/SKILL.md Retrieve trading statistics for a wallet over a specified period of 30 days. ```bash # Trading stats for 30 days gmgn-cli portfolio stats --chain sol --wallet --period 30d ``` -------------------------------- ### Create Smart Trade with Buy Low, Take Profit, and Stop Loss Source: https://github.com/gmgnai/gmgn-skills/blob/main/skills/gmgn-swap/SKILL.md Create a complex smart trade strategy that includes a buy low entry condition, a take-profit order, and a stop-loss order. This command requires detailed JSON parameters for sell-side trade settings and the specific condition orders to be executed. ```bash gmgn-cli order strategy create \ --chain sol \ --from \ --base-token \ --quote-token \ --order-type smart_trade \ --sub-order-type mix_trade \ --open-price 0.000082 \ --amount-in 1000000 \ --slippage 30 \ --sell-param '{"slippage":30,"priority_fee":"0.00001","tip_fee":"0.00001"}' \ --condition-orders '[{"order_type":"buy_low","side":"buy","check_price":"0.00008"},{"order_type":"profit_stop","side":"sell","price_scale":"100","sell_ratio":"50"},{"order_type":"loss_stop","side":"sell","price_scale":"50","sell_ratio":"100"}]' ``` -------------------------------- ### Get Order Details Source: https://github.com/gmgnai/gmgn-skills/blob/main/skills/gmgn-swap/SKILL.md Use this command to retrieve details for a specific order. Replace `` with the actual order identifier. ```bash gmgn-cli order get --chain sol --order-id ``` -------------------------------- ### Order Quote Usage Source: https://github.com/gmgnai/gmgn-skills/blob/main/skills/gmgn-swap/SKILL.md Use this command to get an estimated output amount before submitting a swap. Requires signed authentication with GMGN_PRIVATE_KEY. ```bash gmgn-cli order quote \ --chain sol \ --from \ --input-token \ --output-token \ --amount \ --slippage 30 ``` -------------------------------- ### cooking create Source: https://github.com/gmgnai/gmgn-skills/blob/main/skills/gmgn-cooking/SKILL.md Creates a new cryptocurrency token. This command requires several parameters to define the token's properties, network, and initial configuration. ```APIDOC ## `cooking create` Parameters | Parameter | Required | Description | |-----------|----------|-------------| | `--chain` | Yes | Chain: `sol` / `bsc` / `base` | | `--dex` | Yes | Launchpad platform identifier — see Supported Launchpads table. Never guess this value. | | `--from` | Yes | Wallet address (must match API Key binding) | | `--name` | Yes | Token full name (e.g. `Doge Killer`) | | `--symbol` | Yes | Token ticker symbol (e.g. `DOGEK`) | | `--buy-amt` | Yes | Initial buy amount in **human-readable native token units** (e.g. `0.01` = 0.01 SOL). This is NOT in smallest unit. | | `--image` | No* | Token logo as **base64-encoded** data (max 2MB decoded). Mutually exclusive with `--image-url`. One of the two is required. | | `--image-url` | No* | Token logo as a publicly accessible URL. Mutually exclusive with `--image`. One of the two is required. | | `--slippage` | No* | Slippage tolerance as an integer 0–100, e.g. `30` = 30%. **Mutually exclusive with `--auto-slippage`** — provide one or the other. | | `--auto-slippage` | No* | Enable automatic slippage. **Mutually exclusive with `--slippage`.** | | `--description` | No | Token description / project pitch | | `--website` | No | Project website URL | | `--twitter` | No | Twitter / X URL | | `--telegram` | No | Telegram group URL | | `--fee` | No | Base gas / fee | | `--priority-fee` | No | Priority fee in SOL (**SOL only**, ≥ 0.0001 SOL) | | `--tip-fee` | No | Tip fee (SOL ≥ 0.00001 / BSC ≥ 0.000001 BNB; ignored on BASE) | | `--gas-price` | No | Gas price in wei (EVM chains: BSC / BASE) | | `--max-fee-per-gas` | No | Max fee per gas in wei (**EVM only**) | | `--max-priority-fee-per-gas` | No | Max priority fee per gas in wei (**EVM only**) | | `--anti-mev` | No | Enable anti-MEV protection (**SOL only**; rejected on BSC / BASE) | | `--anti-mev-mode` | No | Anti-MEV mode: `off` / `normal` / `secure` (**SOL only**) | | `--raised-token` | No | Raise token symbol. `pump`: `USDC`; `bonk`: `USD1`; `fourmeme`: `USDT` / `USD1`; omit or `""` for native | | `--dev-wallet-bps` | No | Dev wallet fee share in basis points (100 = 1%) | | `--dev-gas` | No | Dev gas amount | | `--dev-priority` | No | Dev priority fee | | `--dev-tip` | No | Dev tip fee | | `--dev-max-fee-per-gas` | No | Dev tx feeCap in wei (**EVM EIP-1559**) | | `--approve-vision` | No | Approve vision version: `v1` / `v2` (default: `v2`) | | `--source` | No | Traffic source identifier | | `--is-mayhem` | No | Enable Mayhem mode (**Pump.fun only**) | | `--is-cashback` | No | Enable Cashback (**Pump.fun only**) | | `--is-buy-back` | No | Enable Agent Auto Buyback (**Pump.fun only**) | | `--pump-fee-share-list` | No | Pump.fun fee share list as JSON array: `[{"provider":"twitter","username":"","basic_points":}]` (**Pump.fun only**) | | `--flap-rate-conf` | No | Flap rate config as JSON object (**Flap only**) | | `--fourmeme-rate-conf` | No | FourMeme rate config as JSON object (**FourMeme only**) | | `--bags-fee-share-list` | No | BAGS fee share list as JSON array: `[{"provider":"twitter","username":"","basic_points":}]` (**BAGS only**) | | `--bonk-model` | No | Bonk model identifier (**bonk DEX only**) | | `--buy-wallets` | No | Multi-wallet buy config as JSON array: `[{"from_address":"","buy_amt":""}]` | | `--snip-buy-wallets` | No | Snipe-buy wallet config as JSON array: `[{"from_address":"","buy_amt":""}]` | | `--buy-trade-config` | No | Buy-side trade config for CondMarket orders as JSON (TradeParam) — see Advanced API Fields | | `--sell-trade-config` | No | Sell-side trade config for auto-sell / pending_sell as JSON (TradeParam) — see Advanced API Fields | | `--sell-configs` | No | Auto-sell strategy list as JSON array (CookingSellConfig[]) — see Auto-Sell Configuration | * `--image` or `--image-url`: provide exactly one. `--slippage` or `--auto-slippage`: provide exactly one. ``` -------------------------------- ### Get ETH Wallet Transaction Activity Source: https://github.com/gmgnai/gmgn-skills/blob/main/skills/gmgn-portfolio/SKILL.md Retrieve the transaction activity for an Ethereum wallet address. Requires specifying the 'eth' chain. ```bash # ETH wallet transaction activity gmgn-cli portfolio activity --chain eth --wallet <0x_wallet_address> ``` -------------------------------- ### Get Batch Trading Stats for Multiple Wallets Source: https://github.com/gmgnai/gmgn-skills/blob/main/skills/gmgn-portfolio/SKILL.md Fetch trading statistics for multiple wallet addresses on the same blockchain in a single request. ```bash # Batch stats for multiple wallets gmgn-cli portfolio stats --chain sol \ --wallet --wallet ``` -------------------------------- ### Create Strategy Order with GMGN CLI Source: https://github.com/gmgnai/gmgn-skills/blob/main/docs/cli-usage.md Create limit or strategy orders with various options for customization. Requires GMGN_PRIVATE_KEY, chain, wallet address, token addresses, and order type. Chain-specific fee parameters are mandatory for SOL and BSC. ```bash gmgn-cli order strategy create \ --chain \ --from \ --base-token \ --quote-token \ --order-type \ --sub-order-type \ [--check-price ] \ [--open-price ] \ [--amount-in | --amount-in-percent ] \ [--slippage | --auto-slippage] \ [--limit-price-mode ] \ [--expire-in ] \ [--sell-ratio-type ] \ [--quote-investment ] \ [--condition-orders ] \ [--priority-fee ] \ [--tip-fee ] \ [--gas-price ] \ [--anti-mev] \ [--raw] ``` -------------------------------- ### Get Portfolio Holdings CLI Command Source: https://github.com/gmgnai/gmgn-skills/blob/main/Readme.md Retrieves a user's token holdings on a specific chain. Replace with the wallet address. ```bash gmgn-cli portfolio holdings --chain sol --wallet ``` -------------------------------- ### GMGN Cooking CLI Create Command Parameters Source: https://github.com/gmgnai/gmgn-skills/blob/main/skills/gmgn-cooking/SKILL.md Parameters for the `cooking create` command, used to launch new tokens on various blockchains and launchpads. Ensure all required parameters are provided. ```bash gmgn-cli cooking create --chain --dex --from --name --symbol --buy-amt [--image | --image-url ] [--slippage | --auto-slippage] [--description ] [--website ] [--twitter ] [--telegram ] [--fee ] [--priority-fee ] [--tip-fee ] [--gas-price ] [--max-fee-per-gas ] [--max-priority-fee-per-gas ] [--anti-mev] [--anti-mev-mode ] [--raised-token ] [--dev-wallet-bps ] [--dev-gas ] [--dev-priority ] [--dev-tip ] [--dev-max-fee-per-gas ] [--approve-vision ] [--source ] [--is-mayhem] [--is-cashback] [--is-buy-back] [--pump-fee-share-list ] [--flap-rate-conf ] [--fourmeme-rate-conf ] [--bags-fee-share-list ] [--bonk-model ] [--buy-wallets ] [--snip-buy-wallets ] [--buy-trade-config ] [--sell-trade-config ] [--sell-configs ] ``` -------------------------------- ### Get Token Info CLI Command Source: https://github.com/gmgnai/gmgn-skills/blob/main/Readme.md Retrieves information about a specific token on a given chain. Replace with the token's address. ```bash gmgn-cli token info --chain sol --address ``` -------------------------------- ### Pump.fun (SOL) - Advanced Configuration with Agent Auto Buyback and Snipers Source: https://github.com/gmgnai/gmgn-skills/blob/main/skills/gmgn-cooking/SKILL.md A comprehensive configuration for Pump.fun on Solana, including agent auto buyback, bundled buys, sniper buys, and delayed auto-sell. Note: Bundle and sniper wallet limits apply. ```bash gmgn-cli cooking create \ --chain sol \ --dex pump \ --from DevWallet... \ --name "Demo Coin" \ --symbol DEMO \ --buy-amt 0.5 \ --image-url https://cdn.example.com/coin.png \ --twitter https://x.com/handle/status/123 \ --priority-fee 0.0005 \ --tip-fee 0.0001 \ --is-buy-back \ --buy-trade-config '{"slippage":50,"auto_slippage":false,"priority_fee":"0.0005","tip_fee":"0.0001","is_anti_mev":true,"anti_mev_mode":"secure"}' \ --buy-wallets '[{"from_address":"Wallet1...","buy_amt":"0.1"},{"from_address":"Wallet2...","buy_amt":"0.1"}]' \ --snip-buy-wallets '[{"from_address":"Sniper1...","buy_amt":"0.05"}]' \ --sell-configs '[{"sell_type":"delay_sell","sell_ratio":"1","wallet_addresses":["Wallet1..."],"delay_mili_sec":5000}]' ``` -------------------------------- ### Get Transaction Activity for a Specific Token Source: https://github.com/gmgnai/gmgn-skills/blob/main/skills/gmgn-portfolio/SKILL.md Retrieve transaction activity for a wallet, filtered to include only transactions related to a specific token address. ```bash # Activity for a specific token gmgn-cli portfolio activity --chain sol --wallet \ --token ``` -------------------------------- ### Configure Global GMGN Environment Variables Source: https://github.com/gmgnai/gmgn-skills/blob/main/CLAUDE.md Set up global configuration for the GMGN CLI by creating a .env file in the user's config directory. This file should contain your GMGN API key. ```bash mkdir -p ~/.config/gmgn cat > ~/.config/gmgn/.env << 'EOF' GMGN_API_KEY=your_api_key_here EOF ``` -------------------------------- ### Get Wallet Holdings (Default Sort) Source: https://github.com/gmgnai/gmgn-skills/blob/main/skills/gmgn-portfolio/SKILL.md Fetch the holdings of a specified wallet address on a given blockchain. Defaults to a standard sorting order. ```bash # Wallet holdings (default sort) gmgn-cli portfolio holdings --chain sol --wallet ``` -------------------------------- ### Typical Workflow: Discover Trading Opportunities via Trending Source: https://github.com/gmgnai/gmgn-skills/blob/main/Readme.md A workflow for discovering trading opportunities by analyzing market trending data, AI selection, user review, and due diligence. ```text market trending (top 50) → AI selects top 5 by multi-factor analysis → user reviews → token info / token security → swap ``` -------------------------------- ### Cooking: Buy with Take-Profit and Stop-Loss Source: https://github.com/gmgnai/gmgn-skills/blob/main/Readme.md Buys a token on the Solana chain and automatically attaches take-profit and stop-loss condition orders. This simplifies setting up a trade with automated exit strategies. ```bash gmgn-cli cooking \ --chain sol \ --from \ --input-token So11111111111111111111111111111111111111112 \ --output-token \ --amount 1000000000 \ --slippage 30 \ --condition-orders '[{"order_type":"profit_stop","side":"sell","price_scale":"100","sell_ratio":"100"},{"order_type":"loss_stop","side":"sell","price_scale":"50","sell_ratio":"100"}]' ``` -------------------------------- ### Get Single Token Balance CLI Command Source: https://github.com/gmgnai/gmgn-skills/blob/main/Readme.md Retrieves the balance of a specific token for a given wallet on a chain. Replace and accordingly. ```bash gmgn-cli portfolio token-balance --chain sol --wallet --token ``` -------------------------------- ### Query Wallet and Main Currency Balances Source: https://github.com/gmgnai/gmgn-skills/blob/main/docs/cli-usage.md Retrieve balances for wallets and their main currency bound to the API Key. No additional parameters are required beyond the optional --raw flag. ```bash npx gmgn-cli portfolio info [--raw] ``` -------------------------------- ### Get Portfolio Stats CLI Command Source: https://github.com/gmgnai/gmgn-skills/blob/main/Readme.md Retrieves portfolio statistics for one or more wallets on a specific chain. Supports multiple --wallet arguments. ```bash gmgn-cli portfolio stats --chain sol --wallet --wallet ``` -------------------------------- ### Analyze Token Price and Volume (K-line) Source: https://github.com/gmgnai/gmgn-skills/blob/main/docs/workflow-risk-warning.md Generate K-line data for a token to analyze price and volume anomalies. Look for spikes, drops, volume collapse, and distribution patterns. ```bash gmgn-cli market kline --chain --address \ --resolution 1h ``` -------------------------------- ### Get Market Trenches CLI Command Source: https://github.com/gmgnai/gmgn-skills/blob/main/Readme.md Retrieves market trenches based on specified types and launchpad platforms. Supports filtering and limiting results. ```bash gmgn-cli market trenches \ --chain sol \ --type new_creation --type near_completion --type completed \ --launchpad-platform Pump.fun --launchpad-platform pump_mayhem --launchpad-platform letsbonk \ --limit 80 ``` ```bash gmgn-cli market trenches \ --chain sol --type new_creation \ --filter-preset safe --min-smart-degen-count 1 --sort-by smart_degen_count ``` -------------------------------- ### Query Gas Prices for EVM Chains Source: https://github.com/gmgnai/gmgn-skills/blob/main/skills/gmgn-swap/SKILL.md Query recommended gas price tiers for Ethereum Virtual Machine (EVM) compatible chains. This command requires an API Key and does not need a signature or private key. ```bash gmgn-cli gas-price --chain eth ``` ```bash gmgn-cli gas-price --chain bsc ``` ```bash gmgn-cli gas-price --chain base ```