madeonsol 2.31.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +101 -7
- package/dist/index.d.ts +1418 -74
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +94 -11
- package/dist/index.js.map +1 -1
- package/llms.txt +117 -117
- package/package.json +2 -2
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 MadeOnSol
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 MadeOnSol
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -12,6 +12,18 @@
|
|
|
12
12
|
Official TypeScript/JavaScript SDK for the **[MadeOnSol](https://madeonsol.com) Solana API** — zero dependencies, fully typed, works in Node.js ≥ 18 and edge runtimes.
|
|
13
13
|
> Real-time Solana trading intelligence: track 1,069 KOL wallets with <3s latency on paid keys and x402 pay-per-call (free-tier live feeds are 5-min delayed), score 23,000+ Pump.fun deployers, surface deshred deploy signals **~500ms before on-chain confirmation**, detect multi-KOL coordination, score token rug-risk 0–100 with a transparent factor breakdown, expose the bundle cohort that bought a token together and how much of supply it still holds, verify any wallet's current on-chain holdings with airdrop/insider `transfer_delta` detection, push every pump.fun graduation the second it bonds, and stream every DEX trade across 9+ programs. Free tier: 200 requests/day across 40+ endpoints (live feeds 5-min delayed) — no signup payment. Get a key at [madeonsol.com/pricing](https://madeonsol.com/pricing).
|
|
14
14
|
|
|
15
|
+
> **Migrating to 4.0.0.** Runtime API behaviour is not intentionally changing: the server sends exactly what it sent before. The breaking change is the corrected public **type contract**. Several 3.x response types described field names and shapes the API never returned, so code that compiled against them read `undefined` at runtime. Rewritten or renamed types: `KolWalletProfile` (`kol` / `stats` / `scores` / `peer_ranks` / `recent_trades` / `pnl_by_token`), `KolTokenActivity` (`token_mint` / `summary` / `kols[]`), alpha linked wallets (`linked`, was `linked_wallets`), `DeployerTokenRow` (`token_mint`, was `mint`), wallet-tracker trade events (`slot`, `ingested_at`, `ordered_by`, `next_cursor_slot`; keys the API never sent are now optional and `@deprecated`), `DeployerProfileResponse` (from 3.0.0). Several previously required fields are now optional because the API omits or nulls them. Update the field names your code reads; no request-side change is needed.
|
|
16
|
+
|
|
17
|
+
> **New in 4.0.0 (SDK contract parity, 2026-10-03).** **New methods:** `client.kol.wallets(params?)` → `GET /kol/wallets` (tracked KOL roster, any key); `client.token.search({ q, limit? })` → `GET /tokens/search` (ticker/name → candidate mints, any key); `client.listSignals()` → `GET /signals`; `client.manifests(params?)` → `GET /manifests` (nightly as-of dataset manifests with `fingerprint`, any key); `client.wallet.flags(address, { as_of?, history? })` → `GET /wallet/{address}/flags` (point-in-time flags, PRO+); `client.wallet.batchTrades({ wallets, since?, limit_per_wallet?, action? })` → `POST /wallet/batch/trades` (PRO+); `client.wallet.scoreList(wallets)` → `POST /wallet-list/score` (Enterprise); `client.wallet.funding(address, { limit?, offset? })` → `GET /wallet/{address}/funding` (shared-funder evidence, PRO+; `relationships` ULTRA+). `client.token.get(mint, { include })` accepts `buyer_quality` / `deployer`. **Typed (was `unknown`):** `kol.scoutLeaderboard()`, `kol.coordinationHistory()`, `getSignalPerformance()` (now also takes `{ history }`). **Type corrections (compile-time breaking, matching what the API has always returned):** `KolWalletProfile` (`kol`, `stats`, `scores`, `peer_ranks`, `recent_trades`, `pnl_by_token` with `total_bought`/`total_sold`), `KolTokenActivity` (`token_mint`, `summary`, `kols[]`), `AlphaLinkedResponse.linked` (with `avg_time_diff_secs`/`avg_sol_diff`), `DeployerTokensResponse.tokens` (`DeployerTokenRow`, with `instant_bond`), `WalletTrackerEvent` (`slot`, `replayed`, `ingested_at`, `timestamp`; `action` nullable) — the old never-sent keys stay as optional `@deprecated`. **New fields:** token snapshot (`/token/{mint}`, `/token/batch`) price provenance (`price_source`, `price_observed_at`, `price_is_stale`, `price_age_seconds`), `vwap_price_*`, `primary_pool_address`, `deployer_identity`, `lp_burn_status`, `token_supply_burn_detected`; `/tokens` rows `lp_burn_status` / `lp_burned` / `token_supply_burn_detected` + `deprecations`; risk `dev_status` / `resolved_from` and batch `unavailable` errors with `unavailable_inputs`; buyer-quality `signal_stats`; candles plan-floor fields; wallet PnL/positions `cache_age_seconds` / `cache_validation` / `cache_invalidated`; wallet-tracker `ordered_by` / `next_cursor` / `next_cursor_slot`; deployer stats MC-at-alert maps, alert-stats `sampled_rows`, `instant_bond` on recent bonds, typed `pump_tokens`; sniper `attribution_status`; stream-token channel registry + named-subscription hints; KOL PnL open-position `is_priced`; KOL compare `overlap_meta`.
|
|
18
|
+
|
|
19
|
+
> **New in 3.0.0 (API parity 2026-10-03).** **Type fixes:** `KolConsensusResponse` now nests the figures under `consensus` (new `KolConsensus`) and `PeakHistoryResponse` under `peak_history` (new `PeakHistory`) — that is what the API has always returned; the old flat types read `undefined`. **New fields:** `TradeCoverage.size_floor` (`TradeSizeFloor`: the stored tape drops buys under 0.05 SOL / $3.50 in stables; live streams, prices and candles are unaffected) plus `data_observed` / `eligibility` / `eligibility_basis` / `completeness`; `WalletStatsResponse.stats_unavailable` / `enrichment_unavailable` / `degraded_fields` (a degraded read is UNKNOWN, never "no data"); token-lock provenance and countdowns on `TokenLock` (`provider`, `explorer`, `price_usd`, `seconds_until_end`, `seconds_until_next_unlock`, Bonfida `schedule`) and `cursor` / `next_cursor` + `degraded_fields` on the locks feed; copy-trade `min_mc_usd` / `max_mc_usd`, `source_wallets_tracked` / `source_wallets_untracked` / `warnings`; `ApiTier` adds `BUSINESS` / `ENTERPRISE`. **New method:** `client.token.topTraders(mint, params?)` → `GET /tokens/{mint}/top-traders` (PRO+).
|
|
20
|
+
|
|
21
|
+
> **New in 3.0.0, continued (API parity 2026-10-03, second pass).** **Pagination:** `client.kol.feed()`, `client.kol.firstTouches()` and `client.deployer.alerts()` accept `cursor` (opaque strict keyset, preferred over the legacy `before`), and their responses carry `next_cursor`, `has_more` (false only at the real end of the feed), `scan` (`FeedScanInfo`, on post-filtered pages) and the free-tier delay fields (`FreeTierDelayMeta`); the KOL feed and first-touches also return `next_since` / `since` and a `stream` pointer, and `kol.feed()` accepts `since` and `include: "token"` (each trade gains `token`). `deployer.alerts()` accepts `token_mint` and returns `kol_buys_complete`. **New fields:** `KolLeaderboardResponse.pagination` / `universe` / `entry_mc_window_start` / `entry_mc_complete`, `KolLeaderboardEntry.entry_mc_samples` / `avg_entry_mc_usd`, `DeployerAlert.launchpad`, `DeployerSummary.instant_bonds` / `runner_tokens`. **Type corrections (breaking at compile time, matching what the API has always returned):** `client.deployer.profile()` returns `DeployerProfileResponse` (`is_deployer`, `deployer` row, `pump_stats`, `pump_tokens`, `pump_error`, `launchpad_tokens`, PRO+ `funding`) instead of the flat `DeployerProfile` (now deprecated); `TokenSurgeStreamEvent.kol` / `early_buyers` are nullable (null when `enrichment_available` is false); wallet tracker `addToWatchlist()` returns `{ wallet }`, `updateLabel()` returns `{ wallet }`, `removeFromWatchlist()` returns `{ removed }`; webhooks use `is_active` (the `status` field never existed on the wire, and `status` in an update was ignored), `create()` returns `{ webhook, note }` (the only response with `secret`), `update()` returns `{ webhook }`, `delete()` returns `{ deleted }`, events are typed `WebhookEvent` and filters `WebhookFilters`. **New methods:** `client.webhooks.get(id)` → `GET /webhooks/{id}` (with `recent_deliveries`); `client.webhooks.test(id, event?)` takes the optional event to sample.
|
|
22
|
+
|
|
23
|
+
> **New in 2.31.0 — WS Phase 4 stream types.** `token:candles`, `token:risk` and `wallet:scores` channels, event names, payload and filter types (README example).
|
|
24
|
+
|
|
25
|
+
> **New in 2.30.0 — WS Phase 3 stream types.** `token:locks` lifecycle event names plus payload / filter types; README covers lock lifecycle and `dex:liquidity`.
|
|
26
|
+
|
|
15
27
|
> **New in 2.29.0 — named subscriptions: several independent subscriptions per socket.** `subscribe({ subId, channels, filters })`, `updateSubscription(subId, filters)`, `unsubscribe(subId)`, `getSubscriptions()` / `listSubscriptions()`. Each named subscription has its own channels and filters (the server caps the total per connection, default included: PRO 5, ULTRA 10, BUSINESS 20); frames carry `evt.sub_id`; an event matching several subscriptions is delivered once per subscription (dedupe per `(sub_id, id)`). Resume is per subscription with one commit for the connection. The plain `subscribe(channels, filters)` API is unchanged. See "Named subscriptions" in the stream section.
|
|
16
28
|
|
|
17
29
|
> **New in 2.28.0 — stream recovery: resume cursor, de-duplication, honest gaps.** The managed stream now tracks the cursor `{ instance, seq, ts }` of the last frame your handlers finished and resumes after it on every reconnect (the v1 `resume` request, with an automatic fallback to `replay_since_seq` / `replay_since_ts` on older servers). Delivery is at-least-once, de-duplicated by event `id`; new lifecycle events `cursor`, `replay`, `gap` (what could not be recovered — a `seq` gap is never loss) and `fatal`. Close codes are handled: 4001 re-fetches the token (bounded), 4002 waits ≥ 60 s instead of looping every second, 4003 stops, 4008 resumes; the backoff resets only after a `subscribed` ack. Every server `warning` frame is emitted (incl. `channels_rejected` / `channels_revoked`). `STREAM_CHANNELS` lists every Solana channel and `token:prices` joins the `StreamChannel` type. See the stream section's "Recovery" notes.
|
|
@@ -211,12 +223,25 @@ Full profile for a single KOL wallet, including trade history and optional per-t
|
|
|
211
223
|
const profile = await client.kol.wallet("7xKX...", {
|
|
212
224
|
include: "pnl_by_token",
|
|
213
225
|
});
|
|
226
|
+
console.log(profile.kol.name, profile.scores.winrate_7d, profile.peer_ranks.percentile_pnl_7d);
|
|
214
227
|
```
|
|
215
228
|
|
|
216
229
|
Returns: `KolWalletProfile`
|
|
217
230
|
|
|
218
231
|
---
|
|
219
232
|
|
|
233
|
+
#### `client.kol.wallets(params?)` *(unreleased)*
|
|
234
|
+
|
|
235
|
+
The tracked KOL roster every `/kol/*` route is keyed on (`GET /kol/wallets`): address, name, X handle, strategy tag, follower counts, tracked-since. Roster only; performance is in `leaderboard()` / `wallet()`. Any key.
|
|
236
|
+
|
|
237
|
+
```ts
|
|
238
|
+
const { wallets, total, has_more } = await client.kol.wallets({ limit: 200, active: "true" });
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
Returns: `KolWalletsResponse`
|
|
242
|
+
|
|
243
|
+
---
|
|
244
|
+
|
|
220
245
|
#### `client.kol.coordination(params?)`
|
|
221
246
|
|
|
222
247
|
Detect tokens where multiple KOLs are buying simultaneously — a strong signal of coordinated pumps. **v1.1** adds peak-density windows, exit tracking, and a composite 0–100 coordination score.
|
|
@@ -351,7 +376,9 @@ const data = await client.kol.coordinationHistory({ limit: 50, min_score: 70 });
|
|
|
351
376
|
KOL consensus on a token: how many bought/sold, exit rate, net flow, median entry MC. **ULTRA** gets individual wallet arrays.
|
|
352
377
|
|
|
353
378
|
```ts
|
|
354
|
-
const consensus = await client.token.kolConsensus("4sVahM4U8js62mQV58ABSkNRhf6Ztc7Xs2LXUznNpump");
|
|
379
|
+
const { consensus } = await client.token.kolConsensus("4sVahM4U8js62mQV58ABSkNRhf6Ztc7Xs2LXUznNpump");
|
|
380
|
+
// figures are nested under `consensus` (null when no KOL traded the mint)
|
|
381
|
+
console.log(consensus?.total_kol_buyers, consensus?.kol_exit_rate);
|
|
355
382
|
```
|
|
356
383
|
|
|
357
384
|
---
|
|
@@ -361,7 +388,9 @@ const consensus = await client.token.kolConsensus("4sVahM4U8js62mQV58ABSkNRhf6Zt
|
|
|
361
388
|
Peak MC history: ATH, decline from peak, MC at bond and at 1h/6h/24h/7d after bond.
|
|
362
389
|
|
|
363
390
|
```ts
|
|
364
|
-
const
|
|
391
|
+
const { found, peak_history } = await client.token.peakHistory("4sVahM4U8js62mQV58ABSkNRhf6Ztc7Xs2LXUznNpump");
|
|
392
|
+
// figures are nested under `peak_history` (null with found: false for an unknown mint)
|
|
393
|
+
console.log(found, peak_history?.peak_mc_usd);
|
|
365
394
|
```
|
|
366
395
|
|
|
367
396
|
---
|
|
@@ -420,7 +449,8 @@ Same HMAC scheme as coordination alerts. WebSocket channel: `kol:first_touches`.
|
|
|
420
449
|
KOL buy/sell activity for a specific token mint.
|
|
421
450
|
|
|
422
451
|
```ts
|
|
423
|
-
const
|
|
452
|
+
const { summary, kols } = await client.kol.token("EPjFW...");
|
|
453
|
+
console.log(summary.kol_count, summary.signal, kols[0]?.total_bought);
|
|
424
454
|
```
|
|
425
455
|
|
|
426
456
|
Returns: `KolTokenActivity`
|
|
@@ -792,6 +822,46 @@ Returns: `WalletHoldingsResponse` — `holdings[]` (typed `Holding`), `sol_balan
|
|
|
792
822
|
|
|
793
823
|
---
|
|
794
824
|
|
|
825
|
+
#### `client.wallet.flags(address, params?)` *(unreleased — PRO+)*
|
|
826
|
+
|
|
827
|
+
Point-in-time wallet flags (`GET /wallet/{address}/flags`): for each source (`deployer`, `alpha`, `dump_cluster`, `kol`, `sniper`, `bundler`) the latest write-on-change snapshot at or before `as_of` (default now). `null` = we had no snapshot on the wallet then; `carried: true` = recorded earlier and unchanged by `as_of`. `history: true` adds the change series. Snapshots exist from 2026-08-28.
|
|
828
|
+
|
|
829
|
+
```ts
|
|
830
|
+
const f = await client.wallet.flags("ASVz...ybJk", { as_of: "2026-09-01T00:00:00Z" });
|
|
831
|
+
console.log(f.flagged, f.sources.deployer?.carried);
|
|
832
|
+
```
|
|
833
|
+
|
|
834
|
+
Returns: `WalletFlagsResponse`
|
|
835
|
+
|
|
836
|
+
#### `client.wallet.batchTrades(params)` *(unreleased — PRO+)*
|
|
837
|
+
|
|
838
|
+
Recent trades for up to 50 wallets in one call (`POST /wallet/batch/trades`), up to 100 each, newest first, 90-day window. Pass `next_since` back as `since` to poll. One quota unit. `coverage` states the pipeline scope: an empty `trades` array means "not observed", not "inactive".
|
|
839
|
+
|
|
840
|
+
```ts
|
|
841
|
+
const page = await client.wallet.batchTrades({ wallets: [a, b, c], limit_per_wallet: 20 });
|
|
842
|
+
for (const w of page.wallets) console.log(w.wallet, w.count);
|
|
843
|
+
const next = await client.wallet.batchTrades({ wallets: [a, b, c], since: page.next_since });
|
|
844
|
+
```
|
|
845
|
+
|
|
846
|
+
Returns: `WalletBatchTradesResponse`
|
|
847
|
+
|
|
848
|
+
#### `client.wallet.funding(address, params?)` *(unreleased — PRO+)*
|
|
849
|
+
|
|
850
|
+
Shared-funder evidence (`GET /wallet/{address}/funding`): addresses that sent a qualifying SOL transfer to this wallet AND to other tracked wallets (active KOLs, elite/good deployers), with the supporting transactions, plus `direct_funding` ("where was this wallet funded from"). Evidence of a funding connection, not proof of common ownership. Forward-looking coverage only; read `status` and `coverage` before treating an empty list as "none". Amounts are raw base-unit strings. Cross-wallet `relationships` counts inside `direct_funding` are ULTRA+.
|
|
851
|
+
|
|
852
|
+
```ts
|
|
853
|
+
const f = await client.wallet.funding("ASVz...ybJk", { limit: 10 });
|
|
854
|
+
for (const s of f.shared_funders.filter((s) => !s.service_funder)) console.log(s.funder, s.connected_wallets.length);
|
|
855
|
+
```
|
|
856
|
+
|
|
857
|
+
Returns: `WalletFundingResponse`
|
|
858
|
+
|
|
859
|
+
#### `client.wallet.scoreList(wallets)` *(unreleased — Enterprise)*
|
|
860
|
+
|
|
861
|
+
Score up to 200 customer-supplied wallets on FIFO trading performance (`POST /wallet-list/score`): a 0–100 `score` (50 % win rate + 50 % profit factor), the PnL `summary`, and reputation flags. Only the first 25 UNCACHED wallets are computed per call; the rest come back `status: "not_computed"`, so call again.
|
|
862
|
+
|
|
863
|
+
Returns: `WalletListScoreResponse`
|
|
864
|
+
|
|
795
865
|
#### `client.wallet.trades(address, params?)`
|
|
796
866
|
|
|
797
867
|
Cursor-paginated raw trades. Default window is the last 90 days; override via `since` / `until` (Unix epoch seconds). Default limit 100, max 500.
|
|
@@ -987,6 +1057,19 @@ Invalid mints return a 400 with `code: "invalid_mint"`, `reason`, `received_leng
|
|
|
987
1057
|
|
|
988
1058
|
Returns: `TokenResponse` (with `mc_change_pct` / `volume_usd` / `mev_volume_pct` (each keyed by 5m/15m/1h/2h/4h) + `history_age_seconds` as of 1.7). **New in 2.12:** also returns `liquidity_to_mc_ratio` (liquidity_usd / market_cap), `launch_cohort_sol` (total SOL spent by the first-20 buyers), and `launch_cohort_size` (count of first-20 buyers, 0–20).
|
|
989
1059
|
|
|
1060
|
+
#### `client.token.get(mint, { include })` / `client.token.search(params)` *(unreleased)*
|
|
1061
|
+
|
|
1062
|
+
`include: "buyer_quality"` and/or `"deployer"` embeds the `/tokens/{mint}/buyer-quality` body as `buyer_quality` and the deployer profile as `deployer_profile` in the same call (each keeps its own tier gate; a failing include lands in `include_errors`, never fails the token).
|
|
1063
|
+
|
|
1064
|
+
`client.token.search({ q, limit? })` (`GET /tokens/search`, any key) resolves a ticker or name to candidate mints, ranked exact ticker, symbol prefix, name prefix, fuzzy, and by liquidity inside each tier. Memecoin/launchpad universe only: `q: "SOL"` returns tokens *named* SOL and `note` says so.
|
|
1065
|
+
|
|
1066
|
+
```ts
|
|
1067
|
+
const { results } = await client.token.search({ q: "bonk", limit: 5 });
|
|
1068
|
+
const { token, buyer_quality } = await client.token.get(results[0].mint, { include: ["buyer_quality"] });
|
|
1069
|
+
```
|
|
1070
|
+
|
|
1071
|
+
Returns: `TokenSearchResponse` / `TokenResponse`
|
|
1072
|
+
|
|
990
1073
|
#### `client.token.batch(mints)`
|
|
991
1074
|
|
|
992
1075
|
Batch lookup up to 50 mints in one round-trip. ~10–20× cheaper than N sequential calls. Each item returns the same shape as `get()` — including `liquidity_to_mc_ratio`, `launch_cohort_sol`, and `launch_cohort_size` *(new in 2.12)*.
|
|
@@ -1243,13 +1326,24 @@ Returns: `MeResponse`
|
|
|
1243
1326
|
Performance stats for a named signal: hit rate, precision, sample count, and lookback window.
|
|
1244
1327
|
|
|
1245
1328
|
```ts
|
|
1246
|
-
const
|
|
1247
|
-
|
|
1329
|
+
const { signals } = await client.listSignals(); // GET /signals — the catalog
|
|
1330
|
+
const perf = await client.getSignalPerformance("dump_cluster_count", { history: true });
|
|
1331
|
+
for (const b of perf.buckets) console.log(b.bucket, b.hit_rate, b.base_rate, b.lift, b.sample_n);
|
|
1248
1332
|
```
|
|
1249
1333
|
|
|
1250
|
-
Params: `name` — signal
|
|
1334
|
+
Params: `name` — a signal from `listSignals()` (`dump_cluster_count`, `runner_rate`, `recycled_early_buyer_count`, `coordination_count`, `scout_first_touch`); `history` adds the per-snapshot series.
|
|
1335
|
+
|
|
1336
|
+
Returns: `SignalPerformanceResponse` (`listSignals()` → `SignalsCatalogResponse`).
|
|
1337
|
+
|
|
1338
|
+
#### `client.manifests(params?)` *(unreleased)*
|
|
1339
|
+
|
|
1340
|
+
Nightly as-of dataset manifests (`GET /manifests`): per dataset `rows_24h`, `min_ts` / `max_ts`, `row_count_estimate` (planner estimate), `schema_hash` and `fingerprint`. Cite the fingerprint to name the exact data state a report used; `dataset` walks one dataset's history. Any key.
|
|
1341
|
+
|
|
1342
|
+
```ts
|
|
1343
|
+
const { manifests } = await client.manifests({ dataset: "token_trades", limit: 7 });
|
|
1344
|
+
```
|
|
1251
1345
|
|
|
1252
|
-
Returns: `
|
|
1346
|
+
Returns: `ManifestsResponse`
|
|
1253
1347
|
|
|
1254
1348
|
---
|
|
1255
1349
|
|