Back to Ccxt

crypto-market-rank — CLI Reference

.agents/skills/crypto-market-rank/references/cli.md

4.5.6510.1 KB
Original Source

crypto-market-rank — CLI Reference

Complete reference for every command in scripts/cli.mjs.

Invocation pattern: node <skill-dir>/scripts/cli.mjs <command> '<json_params>' Exit codes: 0 success · 1 usage/upstream error · 3 network failure

Supported chains: BSC (56), Base (8453), Solana (CT_501). Per-command restrictions noted below.


social-hype — Social buzz leaderboard

bash
node <skill-dir>/scripts/cli.mjs social-hype '{"chainId":"56","targetLanguage":"en","timeRange":1}'

Parameters

ParamTypeRequiredDescription
chainIdstringyesChain identifier
targetLanguagestringyesTranslation target, e.g. "en", "zh"
timeRangenumberyesTime range, 1 = 24h
sentimentstringnoFilter: All / Positive / Negative / Neutral
socialLanguagestringnoContent language, "ALL" for all

Return fields (under .data.leaderBoardList[])

Field PathTypeDescription
metaInfo.symbol / metaInfo.logostringToken symbol and icon path (prefix https://bin.bnbstatic.com)
metaInfo.chainId / metaInfo.contractAddressstringChain + contract
metaInfo.tokenAgenumberCreation timestamp (ms)
marketInfo.marketCap / marketInfo.priceChangenumberMarket cap (USD), 24h % change
socialHypeInfo.socialHypenumberTotal social hype index
socialHypeInfo.sentimentstringPositive / Negative / Neutral
socialHypeInfo.socialSummaryBrief / ...DetailstringSocial summary (short / detailed)
socialHypeInfo.socialSummaryBriefTranslated / ...DetailTranslatedstringTranslated summaries

Nested shape: each entry is {metaInfo, marketInfo, socialHypeInfo} — fields grouped by the three objects above.


token-rank — Unified token rank (POST)

⚠️ rankType determines the list: 10=Trending · 11=TopSearch · 20=Alpha · 40=Stock.

bash
node <skill-dir>/scripts/cli.mjs token-rank '{"rankType":10,"chainId":"56","page":1,"size":20}'

Parameters (all optional; body is a JSON object)

Core:

FieldTypeDefaultDescription
rankTypeinteger1010=Trending, 11=TopSearch, 20=Alpha, 40=Stock
chainIdstring"1", "56", "8453", "CT_501"
periodinteger5010=1m, 20=5m, 30=1h, 40=4h, 50=24h
sortByinteger0See Sort Options below
orderAscbooleanfalseAscending if true
page / sizeinteger1 / 200Pagination (size max 200)

Min/Max filters (decimal unless noted): percentChange · marketCap · volume · liquidity · holders (long) · holdersTop10Percent · kycHolders (long, Alpha only) · count (long) · uniqueTrader (long) · launchTime (long, ms).

Advanced filters: keywords / excludes (string[]) · socials (int[]: 0=at_least_one, 1=X, 2=Telegram, 3=Website) · alphaTagFilter (string[]) · auditFilter (int[]: 0=not_renounced, 1=freezable, 2=mintable) · tagFilter (int[]: 0=hide_alpha, 23=dex_paid, 29=alpha_points, …).

Sort Options (sortBy): 0=Default · 1=Web default · 2=Search count · 10=Launch time · 20=Liquidity · 30=Holders · 40=Market cap · 50=Price change · 60=Tx count · 70=Volume · 80=KYC holders · 90=Price · 100=Unique traders.

Return fields (under .data.tokens[])

FieldTypeDescription
chainId / contractAddress / symbol / iconstringIdentity + logo (prefix https://bin.bnbstatic.com)
price / marketCap / liquidity / holdersstringAll USD string-encoded decimals
percentChange{1m,5m,1h,4h,24h}stringPrice change per window (%)
volume{window} / volume{window}{Buy,Sell}stringVolume + direction breakdown
count{window} / count{window}{Buy,Sell}stringTransaction counts
uniqueTrader{window}stringUnique traders per window
alphaInfoobjectAlpha metadata (tagList, description)
auditInfoobjectAudit info (riskLevel, riskNum, cautionNum)
launchTime / decimalsstring / intLaunch timestamp (ms), token decimals
kycHolders / holdersTop10PercentstringKYC holder count, top-10 %

.data.total / .data.page / .data.size provide pagination context.


smart-money-inflow — Smart money net inflow rank (POST)

⚠️ BSC (56) and Solana (CT_501) only. ⚠️ tagType defaults to 2 (the CLI injects it automatically if omitted — always the correct value).

bash
node <skill-dir>/scripts/cli.mjs smart-money-inflow '{"chainId":"56","period":"24h"}'

Parameters

FieldTypeRequiredDescription
chainIdstringyes"56" (BSC), "CT_501" (Solana)
periodstringno"5m" / "1h" / "4h" / "24h"
tagTypeintegerautoInjected as 2 if omitted — upstream only accepts 2

Return fields (under .data[])

FieldTypeDescription
tokenName / tokenIconUrlstringName + icon path (prefix https://bin.bnbstatic.com)
castringContract address
price / marketCap / volume / liquiditystringUSD, string-encoded
priceChangeRatestringPrice change in period (%)
holders / kycHolders / holdersTop10PercentstringHolder stats
count / countBuy / countSellstringTx counts in period
inflownumberSmart money net inflow (USD) — primary ranking metric
tradersintegerNumber of smart-money addresses trading this token
launchTimenumberLaunch timestamp (ms)
tokenDecimalsintegerToken decimals
tokenRiskLevelinteger-1=unknown, 1=low, 2=medium, 3=high
linkarray[{label, link}] social links
tokenTagobjectTags by category

meme-rank — Top meme tokens from Pulse launchpad

⚠️ BSC (56) only. Returns top 100 meme tokens launched via Pulse, scored and ranked by a breakout-potential algorithm.

bash
node <skill-dir>/scripts/cli.mjs meme-rank '{"chainId":"56"}'

Parameters

ParamTypeRequiredDescription
chainIdstringyesMust be "56" (BSC)

Return fields (under .data.tokens[])

FieldTypeDescription
rank / scoreinteger / stringRank position and algorithm score (higher = stronger breakout signal)
chainId / contractAddress / symbolstringIdentity
metaInfo.icon / metaInfo.name / metaInfo.decimalsLogo path, full name, decimals
metaInfo.aiNarrativeFlagint1 = AI narrative summary available
price / percentChange / percentChange7dstringCurrent price, current %, 7-day %
marketCap / liquidity / volumestringUSD
volumeBnTotal / volumeBn7dstringBinance-user volume (total / 7d)
holders / kycHolders / bnUniqueHolders / holdersTop10PercentstringHolder stats
count / countBnTotal / countBn7dintegerTransaction counts
uniqueTraderBn / uniqueTraderBn7dintegerBinance unique traders
impressionintegerView count
createTime / migrateTimenumberCreation + migration timestamps (ms)
alphaStatusintegerAlpha listing status
previewLinkobject{website[], x[], telegram[]}
tokenTagobjectTags by category

address-pnl-rank — Top trader PnL leaderboard

⚠️ Chain support: "56" (BSC), "CT_501" (Solana). ⚠️ period accepted values: "7d" / "30d" / "90d". ⚠️ pageSize max = 25.

bash
node <skill-dir>/scripts/cli.mjs address-pnl-rank '{"chainId":"CT_501","period":"30d","tag":"ALL","pageNo":1,"pageSize":25}'

Parameters

ParamTypeRequiredDescription
chainIdstringyes"56" or "CT_501"
periodstringyes"7d" / "30d" / "90d"
tagstringyes"ALL" or "KOL"
sortByintegernoSort field
orderByintegernoOrder direction
pageNointegernoMin 1
pageSizeintegernoMax 25

Min/Max filters: PNL (decimal) · winRate (decimal, e.g. 1 = 1%) · tx (long) · volume (decimal).

Return fields (under .data.data[])

FieldTypeDescription
address / addressLogo / addressLabelstringWallet, avatar, display name
balancestringOn-chain native coin balance (chain-native gas token)
tags / genericAddressTagListarrayTag info (e.g. KOL; detailed version has tagName, logoUrl, extraInfo)
realizedPnl / realizedPnlPercentstringPeriod PnL in USD and %
dailyPNLarray[{realizedPnl, dt}] per-day breakdown
winRatestringWin rate for the period
totalVolume / buyVolume / sellVolume / avgBuyVolumestringVolume breakdown (USD)
totalTxCnt / buyTxCnt / sellTxCntintegerTransaction counts
totalTradedTokensintegerNumber of distinct tokens traded
topEarningTokensarray[{tokenAddress, tokenSymbol, tokenUrl, realizedPnl, profitRate}]
tokenDistributionobject{gt500Cnt, between0And500Cnt, between0AndNegative50Cnt, ltNegative50Cnt}
lastActivitynumberLast activity timestamp (ms)

Pagination: .data.current / .data.size / .data.pages. dailyPNL[] entries are {realizedPnl, dt}. topEarningTokens[] entries are {tokenAddress, tokenSymbol, tokenUrl, realizedPnl, profitRate}.


Errors

Exit codes: 0 ok · 1 upstream/usage (stderr: reason; stdout: body with business code) · 3 network. Business code: 000000 ok · 100004 rate-limited · 100002 bad param · 000400 token not found / unsupported chain.


Notes

  • Icon URL prefix: https://bin.bnbstatic.com + icon/logo/tokenIconUrl.
  • Most price / volume / market-cap fields are string-encoded decimals — parse before arithmetic.