Back to Ccxt

trading-signal — CLI Reference

.agents/skills/trading-signal/references/cli.md

4.5.653.7 KB
Original Source

trading-signal — 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


smart-money — On-chain Smart Money trading signals

⚠️ Only "56" (BSC) and "CT_501" (Solana) are supported. pageSize max is 100. Signals with status: "timeout" are stale — prefer "valid" / "active" signals.

bash
node <skill-dir>/scripts/cli.mjs smart-money '{"chainId":"CT_501","page":1,"pageSize":20}'

Parameters

ParamTypeRequiredDefaultDescription
chainIdstringyes"56" (BSC) · "CT_501" (Solana)
pagenumberno1Page number (1-indexed)
pageSizenumbernoItems per page, max 100
smartSignalTypestringnoFilter by signal type (e.g. "SMART_MONEY"); omit for all

Return fields (under .data[])

Token identity

FieldTypeDescription
signalIdnumberUnique signal ID
tickerstringToken symbol
chainIdstringChain identifier
contractAddressstringToken contract address
logoUrlstringLogo path — prefix with https://bin.bnbstatic.com
chainLogoUrlstringFull URL of the chain icon
tokenDecimalsnumberToken decimals

Tags & flags

FieldTypeDescription
isAlphabooleanMarked as Alpha token
launchPlatformstringLaunch platform (e.g. "Pumpfun", "Moonshot")
tokenTagobjectCategorized tags. Known categories: "Social Events", "Launch Platform", "Sensitive Events", "Wash Trading Behavior"

Signal data

FieldTypeDescription
smartSignalTypestringe.g. "SMART_MONEY"
directionstring"buy" or "sell"
smartMoneyCountnumberSmart money addresses triggering the signal (higher = stronger)
signalCountnumberHistorical signal count for this token
signalTriggerTimenumberSignal trigger timestamp (ms)
timeFramenumberObservation window (ms)

Price & performance

FieldTypeDescription
alertPrice, alertMarketCapstringPrice / market cap at trigger (USD)
currentPrice, currentMarketCapstringLatest price / market cap (USD)
highestPrice, highestPriceTimestring, numberPeak after signal + timestamp (ms)
totalTokenValuestringAggregate trade value at signal (USD)
maxGainstringMax % gain since trigger — decimal fraction (e.g. "0.25" = 25%); multiply by 100 when displaying as a percentage
exitRatenumber% of smart money already exited (high = stale)
statusstringSignal status. Values: active (monitoring), valid (fresh/open), timeout (expired), completed (closed).

Sample tokenTag shape (categorized; each category holds [{tagName}]):

json
"tokenTag": {
  "Social Events": [{"tagName": "DEX Paid"}],
  "Launch Platform": [{"tagName": "Pumpfun"}],
  "Sensitive Events": [{"tagName": "Smart Money Add Holdings"}],
  "Wash Trading Behavior": [{"tagName": "Insider Wash Trading"}]
}

Signal quality: smartMoneyCount ≥ 5 = stronger conviction · exitRate ≥ 70 = already exiting, treat with caution · status:"timeout" = no longer actionable.


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 (check chainId/pageSize) · 000400 unsupported chain.