Crypto Market Rank Skill
Overview
Five leaderboard / rank endpoints fronted by one CLI. The agent issues a subcommand with a JSON blob; the CLI owns URL paths, method selection , query-string building, and upstream error mapping.
When to Use This Skill
Supported Chains
meme-rankonly supports BSC (56). The CLI rejects unsupported chainIds with an error before calling the API.
How to Call APIs
Commands
Use Flow
Before calling any API, you MUST read its reference file for the full command, parameters, example, and response fields.
- Select command — match user intent to the "When to use" column above
- For token-rank, also decide
rankType:10=Trending,11=TopSearch,20=Alpha,40=Stock, see rules below
- For token-rank, also decide
- Set chain — pick
chainIdfrom Supported Chains; omit for all chains (token-rank only) - Set time window (if applicable)
- social-hype:
timeRange=1(24h) - token-rank
period:10=1m,20=5m,30=1h,40=4h,50=24h (default50) - smart-money-inflow
period:5m/1h/4h/24h(default24h) - address-pnl-rank
period:7d/30d/90d(default30d)
- social-hype:
- Set filters — if user mentions specific conditions (market cap, volume, holders, PnL, win rate, etc.), read the reference for filter params
- Read reference — open the corresponding reference file for command, full params, example, and response fields
- Call cli — run the cli.mjs in scripts folder
Rules
rankTypeenum fortoken-rank:10=Trending,11=TopSearch,20=Alpha,40=Stock.- Trending (
10) is the default. Use it for any generic "hot / trending / popular / 热门 / 趋势 / 火" request — this is the board users mean 99% of the time. - TopSearch (
11) requires an explicit signal. Only pick it when the user says "热搜", "top search", "most searched", "搜索榜", or otherwise makes clear they want the search-count-driven list (not price/volume-driven). Search-count sort (sortBy: 2) only makes sense with TopSearch. - When ambiguous, go Trending. Do not silently switch to TopSearch.
- Trending (
tagTypedefault forsmart-money-inflow: the CLI auto-fillstagType: 2(upstream requires it and2is the only supported value today). Callers do not need to pass it; if passed, the caller's value wins.periodvalues differ by command:social-hype.timeRangeis numeric (1=24h);token-rank.periodis a code (10=1m,20=5m,30=1h,40=4h,50=24h);smart-money-inflow.periodis a string (5m/1h/4h/24h);address-pnl-rank.periodis a string (7d/30d/90d). Seereferences/cli.mdfor details.token-ranksupports rich filters (min/max pairs:marketCap,volume,liquidity,holders,percentChange, etc.). Pass them as flat top-level fields on the JSON body — the CLI forwards the body verbatim.- Icon / logo URL prefix: most
icon/logo/metaInfo.logo/tokenIconUrlfields are relative paths. Prependhttps://bin.bnbstatic.comto render.chainLogoUrlis already a full URL. - Numeric fields arrive as strings (
price,marketCap,percentChange*, etc.) — convert before arithmetic. address-pnl-rank.pageSizecap is 25 — larger values are silently clamped.- All timestamps are milliseconds.
Full CLI Reference
See references/cli.md [blocked] for per-subcommand invocations, parameter tables, return-field tables, sort-option and filter tables, and real response samples.

