Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Monitor and act on crypto trading signals via Binance Skills Hub for AI agents (natural language interface).
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/cli.md
1# trading-signal — CLI Reference23Complete reference for every command in `scripts/cli.mjs`.45**Invocation pattern:** `node <skill-dir>/scripts/cli.mjs <command> '<json_params>'`6**Exit codes:** `0` success · `1` usage/upstream error · `3` network failure78---910## `smart-money` — On-chain Smart Money trading signals1112> ⚠️ Only `"56"` (BSC) and `"CT_501"` (Solana) are supported. `pageSize` max is `100`. Signals with `status: "timeout"` are stale — prefer `"valid"` / `"active"` signals.1314```bash15node <skill-dir>/scripts/cli.mjs smart-money '{"chainId":"CT_501","page":1,"pageSize":20}'16```1718### Parameters1920| Param | Type | Required | Default | Description |21|---|---|---|---|---|22| `chainId` | string | **yes** | — | `"56"` (BSC) · `"CT_501"` (Solana) |23| `page` | number | no | `1` | Page number (1-indexed) |24| `pageSize` | number | no | — | Items per page, max `100` |25| `smartSignalType` | string | no | — | Filter by signal type (e.g. `"SMART_MONEY"`); omit for all |2627### Return fields (under `.data[]`)2829**Token identity**3031| Field | Type | Description |32|---|---|---|33| `signalId` | number | Unique signal ID |34| `ticker` | string | Token symbol |35| `chainId` | string | Chain identifier |36| `contractAddress` | string | Token contract address |37| `logoUrl` | string | Logo path — prefix with `https://bin.bnbstatic.com` |38| `chainLogoUrl` | string | Full URL of the chain icon |39| `tokenDecimals` | number | Token decimals |4041**Tags & flags**4243| Field | Type | Description |44|---|---|---|45| `isAlpha` | boolean | Marked as Alpha token |46| `launchPlatform` | string | Launch platform (e.g. `"Pumpfun"`, `"Moonshot"`) |47| `tokenTag` | object | Categorized tags. Known categories: `"Social Events"`, `"Launch Platform"`, `"Sensitive Events"`, `"Wash Trading Behavior"` |4849**Signal data**5051| Field | Type | Description |52|---|---|---|53| `smartSignalType` | string | e.g. `"SMART_MONEY"` |54| `direction` | string | `"buy"` or `"sell"` |55| `smartMoneyCount` | number | Smart money addresses triggering the signal (higher = stronger) |56| `signalCount` | number | Historical signal count for this token |57| `signalTriggerTime` | number | Signal trigger timestamp (ms) |58| `timeFrame` | number | Observation window (ms) |5960**Price & performance**6162| Field | Type | Description |63|---|---|---|64| `alertPrice`, `alertMarketCap` | string | Price / market cap at trigger (USD) |65| `currentPrice`, `currentMarketCap` | string | Latest price / market cap (USD) |66| `highestPrice`, `highestPriceTime` | string, number | Peak after signal + timestamp (ms) |67| `totalTokenValue` | string | Aggregate trade value at signal (USD) |68| `maxGain` | string | Max % gain since trigger — **decimal fraction** (e.g. `"0.25"` = 25%); multiply by 100 when displaying as a percentage |69| `exitRate` | number | % of smart money already exited (high = stale) |70| `status` | string | Signal status. Values: `active` (monitoring), `valid` (fresh/open), `timeout` (expired), `completed` (closed). |7172**Sample `tokenTag` shape** (categorized; each category holds `[{tagName}]`):7374```json75"tokenTag": {76"Social Events": [{"tagName": "DEX Paid"}],77"Launch Platform": [{"tagName": "Pumpfun"}],78"Sensitive Events": [{"tagName": "Smart Money Add Holdings"}],79"Wash Trading Behavior": [{"tagName": "Insider Wash Trading"}]80}81```8283**Signal quality:** `smartMoneyCount ≥ 5` = stronger conviction · `exitRate ≥ 70` = already exiting, treat with caution · `status:"timeout"` = no longer actionable.8485---8687## Errors8889Exit codes: `0` ok · `1` upstream/usage (stderr: reason; stdout: body with business `code`) · `3` network.90Business `code`: `000000` ok · `100004` rate-limited · `100002` bad param (check `chainId`/`pageSize`) · `000400` unsupported chain.91