madeonsol 4.5.0 → 4.6.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 +29 -27
- package/dist/index.d.ts +535 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +40 -8
- package/dist/index.js.map +1 -1
- package/llms.txt +127 -117
- package/package.json +1 -1
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
|
@@ -10,10 +10,12 @@
|
|
|
10
10
|
> ⭐ **[Star on GitHub](https://github.com/madeonsol/madeonsol-sdk)** if you find this useful · 📂 **[Examples](./examples/)** · 📚 **[API docs](https://madeonsol.com/api-docs)**
|
|
11
11
|
|
|
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
|
-
> Real-time Solana trading intelligence: track 1,
|
|
13
|
+
> Real-time Solana trading intelligence: track 1,100+ active KOL wallets with <3s latency on paid keys and x402 pay-per-call (free-tier live feeds are 5-min delayed), score 100K+ reputation-profiled Pump.fun deployers, surface early deploy observations with separate execution evidence, 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
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
16
|
|
|
17
|
+
> **New in 4.6.0 (2026-12-06, contract sync).** New methods: `client.signalInbox({ products, cursor, since, limit })` (`GET /signals/inbox`, PRO+: your coordination, copy-trade, RHC coordination and RHC copy-trade signals in one resumable order; dedupe on `delivery_id`; `cursor: "acked"` resumes from your read position) and `client.ackSignalInbox({ cursor })` (`POST /signals/inbox/ack`, PRO+, monotonic read marker). The inbox answers 503 `feature_disabled` until it is enabled server-side. `client.token.insiderFlow(mint)` (`GET /tokens/{mint}/insider-flow`, PRO+: net SOL selling by creator, early buyers, bundlers and KOLs over 5 and 15 minutes; unproven amounts are null with `null_reasons`, never 0). `client.wallet.pnl(address, { scope: "recent" })` and `client.token.trades(mint, { order: "committed", committed_cursor })` expose the existing query options. New optional response fields: `data_contract` (token, token batch items, trades, holders, top-traders, wallet PnL, KOL feed, deployer profile), the unknown-realization counters and win-rate status fields on KOL leaderboard / compare / PnL, alpha leaderboard and top-traders, `incomplete_reasons` on wallet stats / PnL / positions, bundle-share `strict_bundle*` / `wallet_set` / `clusters_complete` / `balance_method`, candles `gap_fill` / `open_bucket_start` / `quality_checked`, token `flow_24h` and batch `vwap_status`, trade `market_price_observed_at*` / `committed_at` / `late*`. `AlphaWalletResponse` now types the `tokens` array the API returns; `wallet`, `positions` and `bot_signals` (never sent) are optional and deprecated. Quota texts corrected (price alerts PRO 5 / ULTRA 50 / BUSINESS 150 active alerts per chain; coordination rules PRO 5 / ULTRA 20 / BUSINESS 100; copy-trade PRO 3x5 / ULTRA 20x50 / BUSINESS 100x250; DEX stream ULTRA 3 / BUSINESS 6 connections).
|
|
18
|
+
>
|
|
17
19
|
> **New in 4.5.0 (2026-10-15, bundle clusters + terminal fields).** `client.alpha.bundles(mint, { window, min_wallets, limit, include_balances })` lists every coordinated buy cluster on a token, the launch bundle and clusters that enter later, with `phase`, `new_wallets`, `atomic_txs` and the cluster's sells so far (`exit`); a cluster is evidence, not a verdict. `client.alpha.bundleShare(mint, { window, min_wallets })` returns one figure, `bundled_pct_of_supply_now` (0 to 1), read from chain balances and null rather than a partial sum when a wallet could not be read. `client.kol.tokenTrades(mint, { limit, action, kol, since, cursor })` returns every stored KOL trade on one token, keyset paged. The stream gains the PRO+ `token:bundles` channel (`token:bundle_cluster`, `token:bundle_exit`; filters `TokenBundlesFilters`). Opt-in parameters now typed: `include_balances` on `bundle()` / `buyerQuality()` (`held_now`, `balance_now`, `dump_cluster_held_now`), `verify_current_balances` / `include_scout_scores` on `capTable()`, `include_wallet_flags` on `holders()` (`wallet_flags`, `wallet_flags_meta`), `include_launches_24h` on `deployer.tokens()`. Also typed: top-traders `cost_method` (`"fifo"`) with `unmatched_sell_tokens` / `cost_basis_complete` (and `unrealized_pnl_sol` / `total_pnl_sol` / `held_value_sol` are `null` when a holding cannot be priced), sniper `finalized_at`, depth `unsupported_pools[].fillable_up_to_sol`, and deployer activity `actor_wallet` / `actor_role` / `token_amount_raw` / `counterparty_class`. All new response fields are optional.
|
|
18
20
|
|
|
19
21
|
> **New in 4.4.0 (early deploy observations).** The sniper feed (`client.sniper.*`, the `sniper:deploys` channel and the `sniper:deploy` webhook) is ULTRA, BUSINESS and ENTERPRISE only, and it reports observed deploy instructions, not executions. `SniperDeploy` gains `event_id` (deduplicate on it), `source` (`"shredprism"` or `"deshred"`), `outer_instruction_index`, `observation_stage`, `execution_status` (`"unknown"` until separate chain evidence resolves it), `transaction_version` (`"legacy"`, `0` or `1`), `transaction_config` (`EarlyTransactionConfig`: the requested compute and fee settings, `priority_fee_lamports` as a decimal string, unset resources `null`) and `fee_payer`. `StreamToken` gains `early_ws_url` and `early_stream`, present only when the early stream is active and the key is ULTRA or above. Every new field is optional and absent on older responses. No timing lead is promised.
|
|
@@ -38,7 +40,7 @@ Official TypeScript/JavaScript SDK for the **[MadeOnSol](https://madeonsol.com)
|
|
|
38
40
|
|
|
39
41
|
> **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.
|
|
40
42
|
|
|
41
|
-
> **New in 2.27.0 — deployer reputation as-of a date, and creator-fee rewards.** `client.
|
|
43
|
+
> **New in 2.27.0 — deployer reputation as-of a date, and creator-fee rewards.** `client.deployer.deployerAsOf(wallet, { date? })` (typed `DeployerAsOfResponse`) binds `GET /deployer-hunter/{wallet}/as-of`: the deployer's reputation exactly as it stood on `date` (default today, UTC) — the latest write-on-change snapshot at or before it, so a backtest sees only what was knowable then. `snapshot.snapshot_date` can predate `requested_date` (snapshots are write-on-change); `snapshot.carried: true` marks that. No snapshot at or before the date → `as_of: false, snapshot: null` — nothing is ever synthesized. `date` must be ≥ 2026-04-07 and not in the future. `client.deployer.deployerRewards(wallet)` (typed `DeployerRewardsResponse`) binds `GET /deployer-hunter/{wallet}/rewards`: pump.fun creator-fee rewards, answered two ways that are never merged — `collected` (what actually reached the wallet: direct vault claims, kept 90 days; social-handle claims; shareholder payouts on **any** token) and `attributed` (every payout on the tokens it **deployed**, split `to_self`/`to_others` + `redirected_pct` — a deployer redirecting most of its fees elsewhere is visible in the gap between the two). Every money field is `{ sol, usdc, usd }`; `usd` is `null` (never a silent 0) when a SOL amount exists and no SOL price was available. `top_tokens`/`top_recipients` (≤10, USD-sorted) show where attributed fees went, recipients flagged `is_self`/`is_social_pda`. Works for non-deployers too (`is_deployer: false`, `attributed` empty). **PRO+** (BASIC receives HTTP 403) on the keyed `msk_` API. New types: `DeployerAsOfParams`, `DeployerAsOfResponse`, `DeployerAsOfSnapshot`, `DeployerRewardsResponse`, `DeployerRewardsMoney`, `DeployerRewardsRail`, `DeployerRewardsTopToken`, `DeployerRewardsTopRecipient`, `DeployerRewardsSocial`.
|
|
42
44
|
|
|
43
45
|
> **New in 2.26.0 — token surges & revivals: momentum fires with the honest half attached — one endpoint + one live channel.** `client.token.surges(params?)` (typed `TokenSurgesResponse`) binds `GET /tokens/surges`: **`surge`** = a token < 30 min old whose MC runs hard vs its *launch* MC (tier `early` ≤ 10 min / ≥ $12k / ≥ 3×, `strong` ≤ 30 min / ≥ $30k / ≥ 6× and still climbing, `breakout` ≤ 2 min / ≥ $45k / ≥ 8× — each fires once per mint, and only when SUSTAINED across ≥ 10 s, never on a one-tick mark); **`revival`** = a token with no trade candle for ≥ 24 h that started trading again, confirmed by real buys + buy volume on the tape, never by the price move alone. Hard gates on both: liquidity ≥ $1.5k and ≥ 2 % of MC, and the MC gained must be *paid for* (buy volume ≥ 3 % of the move — a spoof-pool mark moves MC on ~$0). Every row carries `tape` (buys / sells / volume, `unique_buyers` only where wallet data exists — `wallet_data_available: false` otherwise, never inferred), `kol`, `early_buyers` (bundled / sold / sniper wallets), `deployer` reputation and **`risk_flags[]`** (`bundled_launch`, `few_buyers`, `wash_pattern`, `thin_liquidity`, `cold_deployer`, `sniper_heavy`, `early_buyers_exiting`, `sell_pressure`, `no_tape_trades`, `no_prior_price`, `mint_authority_active`, `transfer_fee`); rows ≥ 65 min old carry the +1 h `outcome` (`mc_1h_multiple`, `peak_1h_multiple`, `priced_after_1h`) and `stats: true` returns per-(kind, tier) hit-rates — out-of-sample by construction. Filters `kind`, `tier`, `mint`, `launchpad`, `deployer_tier`, `min_mc_usd` / `max_mc_usd`, `min_buys`, `exclude_flags`, `only_clean`; cursors `since` / `before`. Pushed live on the new **`token:surges`** WS channel (events `token:surge` / `token:revival`, typed `TokenSurgeStreamEvent`, server-side filters `TokenSurgesSubscribeFilters`: `kinds[]`, `tiers[]`, `launchpads[]`, `exclude_flags[]`, `min_mc_usd` / `max_mc_usd`, `deployer_tier[]`). Nearly every scalar is `| null` — null means unknown, never zero. **PRO+** (BASIC receives HTTP 403) on the keyed `msk_` API.
|
|
44
46
|
|
|
@@ -48,7 +50,7 @@ Official TypeScript/JavaScript SDK for the **[MadeOnSol](https://madeonsol.com)
|
|
|
48
50
|
|
|
49
51
|
> **New in 2.24.0 — live holder census: exact holder count, labelled holders, and pools that are named, not just excluded.** `client.alpha.holders(mint)` (typed `TokenHoldersResponse`) binds `GET /tokens/{mint}/holders` (PRO+): every token account of the mint read from the ledger at `confirmed` and merged per owner, so `concentration.holder_count` is EXACT (distinct non-zero owners minus pools / bonding curves / burns) — never a trade-derived estimate; it is `null` only when the provider refuses the census for a mega-cap, in which case you get the top-20 view and `source.census_fallback_reason` says so. Each disclosed owner carries our labels (`deployer` / `kol` / `early_buyer` / `bundle` / `bot` / `dump_cluster` — empty means unknown to us, not clean), and `excluded[]` NAMES what was taken out of the circulating denominator: `reason` = `pool` (with `dex` + `pool_address`), `bonding_curve` (pump.fun / LaunchLab), `burn`, or `program_account` only when we genuinely cannot attribute the PDA; `pool_pct` / `burned_pct` / `program_pct` split the exclusion. Amounts are raw u64 **strings**. Disclosure: PRO ranks 1–10, ULTRA 1–50, BUSINESS 1–100 — the maths is tier-independent. Big tokens take 5–30 s upstream: you get `503 holder_scan_in_progress` with `retry_after_seconds: 20` while the scan finishes into the cache, and the retry is instant.
|
|
50
52
|
|
|
51
|
-
> **New in 2.23.0 — two prices on the trade tape, and the right one is now the default.** The trade tape now tells you what a trade actually cost. `price_sol`/`price_usd` on each trade are THIS trade's executed price — `sol_amount / token_amount`, reconciling exactly with the amounts on the same row and with the PnL endpoints. Because `sol_amount` is the wallet's net SOL movement, that is the trader's all-in effective rate: swap fee and any account rent included, not the pool mid. The market-cap tracker's canonical pool price moved to the new **`market_price_sol`/`market_price_usd`** fields — sampled once per token per pool update, so every trade in the same slot shares it. Until now `price_sol` carried that canonical value and disagreed with the row's own amounts by a **7.9% median** (p90 ~74%): a stale market price reads low in a pump and high in a dump, so anything you averaged out of the tape inherited the bias instead of cancelling it. Use `price_sol` for cost basis, fills and PnL; `market_price_sol` for a per-token series independent of trade size and direction. Both `client.
|
|
53
|
+
> **New in 2.23.0 — two prices on the trade tape, and the right one is now the default.** The trade tape now tells you what a trade actually cost. `price_sol`/`price_usd` on each trade are THIS trade's executed price — `sol_amount / token_amount`, reconciling exactly with the amounts on the same row and with the PnL endpoints. Because `sol_amount` is the wallet's net SOL movement, that is the trader's all-in effective rate: swap fee and any account rent included, not the pool mid. The market-cap tracker's canonical pool price moved to the new **`market_price_sol`/`market_price_usd`** fields — sampled once per token per pool update, so every trade in the same slot shares it. Until now `price_sol` carried that canonical value and disagreed with the row's own amounts by a **7.9% median** (p90 ~74%): a stale market price reads low in a pump and high in a dump, so anything you averaged out of the tape inherited the bias instead of cancelling it. Use `price_sol` for cost basis, fills and PnL; `market_price_sol` for a per-token series independent of trade size and direction. Both `client.token.trades(mint)` and `client.wallet.trades(address)` carry all four fields on `TokenTrade` / `WalletTrade` — the wallet tape returned amounts and no price at all before.
|
|
52
54
|
|
|
53
55
|
> **New in 2.22.0** — **Clean stream shutdown.** `client.stream.connect().close()` now fully tears down the underlying WebSocket so short-lived scripts exit promptly instead of hanging on a lingering socket. In Node the client now prefers the `ws` package (which exposes `terminate()`) and hard-terminates on close; the browser still uses the native WebSocket. No API changes — purely a lifecycle fix. (If you don't already depend on `ws` and want the fast exit on Node ≥22, `npm i ws`.)
|
|
54
56
|
>
|
|
@@ -78,7 +80,7 @@ Official TypeScript/JavaScript SDK for the **[MadeOnSol](https://madeonsol.com)
|
|
|
78
80
|
|
|
79
81
|
> **Historical 2.9 release:** introduced the sniper endpoints. The current contract requires ULTRA/BUSINESS/ENTERPRISE and exposes observed intent separately from execution; see the early sniper section below.
|
|
80
82
|
>
|
|
81
|
-
> **New in 2.8** — **Price alerts, scout leaderboard, wallet derived stats.** `client.priceAlerts.*` — CRUD for token MC dip/recovery alerts delivered via webhook or WebSocket (PRO
|
|
83
|
+
> **New in 2.8** — **Price alerts, scout leaderboard, wallet derived stats.** `client.priceAlerts.*` — CRUD for token MC dip/recovery alerts delivered via webhook or WebSocket (today: PRO 5, ULTRA 50, BUSINESS 150 active alerts per chain). `client.kol.scoutLeaderboard()` — top scouts ranked by first-touch follow-on rate. `client.kol.coordinationHistory()` and `client.token.peakHistory()` expose the historical record. `client.wallet.stats()` now returns a `derived` block: `win_rate`, `roi`, `verdict`, and `biggest_miss`.
|
|
82
84
|
>
|
|
83
85
|
> **New in 2.7** — **Universal Wallet API.** `client.wallet.stats()`, `client.wallet.pnl()`, `client.wallet.positions()`, `client.wallet.trades()` — FIFO cost-basis PnL, open positions hydrated with live prices, and cursor-paginated raw trades for **any** Solana wallet (not just curated KOLs). PRO+. Server-side cache (5min/1h/24h based on activity) — cache hits don't count against your quota.
|
|
84
86
|
>
|
|
@@ -109,7 +111,7 @@ const { trades } = await client.kol.feed({ limit: 5, action: "buy" });
|
|
|
109
111
|
| **Bundle Cohort** | The wallets that bought a token together (one atomic tx or the same slot) and — headline first — `held_pct_of_supply` still held, plus `held_ratio`, `fully_exited`, and buy volume. Every tier gets the summary; PRO adds top-10 wallet flags; ULTRA adds KOL identity, win rate, bot confidence, and per-wallet balances. |
|
|
110
112
|
| **Universal Wallet** | FIFO cost-basis PnL, open positions (hydrated with live prices), and raw trade history for **any** Solana wallet — not just curated KOLs. 90-day window, server-side cache. PRO+. |
|
|
111
113
|
| **Verified Holdings** | Current on-chain SPL + Token-2022 balances + SOL, read straight from chain and enriched with price/MC/name, plus a `transfer_delta` that exposes airdrops / insider funding / wallet-hopping (tokens that moved without a swap). ULTRA. |
|
|
112
|
-
| **Price Alerts** | Token MC dip/recovery alerts delivered via WebSocket or HMAC-signed webhook. PRO: 5
|
|
114
|
+
| **Price Alerts** | Token MC dip/recovery alerts delivered via WebSocket or HMAC-signed webhook. PRO: 5, ULTRA: 50, BUSINESS: 150 active alerts per chain. |
|
|
113
115
|
| **Wallet Tracker** | Monitor any Solana wallet for swaps and transfers. Track up to 10/50/100 wallets (Free/Pro/Ultra). Full wallets, counterparties, and tx_signatures on every tier. 120-day event retention. WS events on ULTRA. |
|
|
114
116
|
| **Deployer Hunter** | 23,000+ pump.fun deployers scored by bonding rate — tier leaderboard, deploy alerts, deployer profiles, and best-tokens feed. |
|
|
115
117
|
| **DEX Trade Stream** | Real-time WebSocket stream of ALL Solana DEX trades across 9+ programs — filter by token, wallet, DEX, deployer tier, or trade size. ~5 min replay + in-band graduation frames on mint-scoped subs. ULTRA. |
|
|
@@ -151,7 +153,7 @@ console.log(trades[0].kol_name, "bought", trades[0].token_symbol);
|
|
|
151
153
|
|
|
152
154
|
// Early sniper — execution initially unknown (ULTRA/BUSINESS/ENTERPRISE)
|
|
153
155
|
const { deploys } = await client.sniper.recent({ limit: 20, min_bond_rate: 0.5 });
|
|
154
|
-
console.log(deploys[0].
|
|
156
|
+
console.log(deploys[0].name, "deployed by", deploys[0].deployer_tier, "tier deployer");
|
|
155
157
|
|
|
156
158
|
// Multi-KOL coordination signal
|
|
157
159
|
const { coordination } = await client.kol.coordination({ min_kols: 3, min_score: 70 });
|
|
@@ -278,7 +280,7 @@ Returns: `KolCoordinationResponse` — `{ coordination: CoordinatedToken[], scor
|
|
|
278
280
|
|
|
279
281
|
#### `client.coordinationAlerts.*` (v1.1)
|
|
280
282
|
|
|
281
|
-
Create **real-time push alerts** that fire the moment a new coordination cluster forms. Alerts are evaluated per-trade by the signal-evaluator service (sub-second latency), delivered via WebSocket channel `kol:coordination` and/or HMAC-signed webhook. **PRO: 5 rules, ULTRA: 20
|
|
283
|
+
Create **real-time push alerts** that fire the moment a new coordination cluster forms. Alerts are evaluated per-trade by the signal-evaluator service (sub-second latency), delivered via WebSocket channel `kol:coordination` and/or HMAC-signed webhook. **PRO: 5 rules, ULTRA: 20, BUSINESS: 100.**
|
|
282
284
|
|
|
283
285
|
```ts
|
|
284
286
|
// Create a rule: ≥5 KOLs, 10-min window, score ≥70, webhook delivery
|
|
@@ -309,7 +311,7 @@ WebSocket delivery: subscribe to channel `kol:coordination` on `wss://madeonsol.
|
|
|
309
311
|
|
|
310
312
|
#### `client.priceAlerts.*` *(new in 2.8)*
|
|
311
313
|
|
|
312
|
-
**Sub-second token MC dip/recovery alerts.** Set a drop threshold on any token — when MC drops below baseline, a `price_alert:dip` event fires. Optionally track recovery. **PRO: 5 alerts, ULTRA:
|
|
314
|
+
**Sub-second token MC dip/recovery alerts.** Set a drop threshold on any token — when MC drops below baseline, a `price_alert:dip` event fires. Optionally track recovery. **PRO: 5 alerts, ULTRA: 50, BUSINESS: 150 (per chain).**
|
|
313
315
|
|
|
314
316
|
```ts
|
|
315
317
|
// Create: alert when token drops 20%, then notify when it recovers 15% from the dip low
|
|
@@ -488,7 +490,7 @@ Returns: `KolPnlResponse`
|
|
|
488
490
|
Tokens ranked by KOL buy volume across multiple time windows.
|
|
489
491
|
|
|
490
492
|
```ts
|
|
491
|
-
const {
|
|
493
|
+
const { trending } = await client.kol.trendingTokens({
|
|
492
494
|
period: "1h", // "5m" | "15m" | "30m" | "1h" | "4h" | "8h" | "12h", default "1h"
|
|
493
495
|
min_kols: 2, // minimum distinct KOL buyers
|
|
494
496
|
limit: 20, // 1–50, default 20
|
|
@@ -496,7 +498,7 @@ const { tokens } = await client.kol.trendingTokens({
|
|
|
496
498
|
// Available on all tiers; ULTRA unlocks full KOL wallet addresses per token
|
|
497
499
|
```
|
|
498
500
|
|
|
499
|
-
Returns: `
|
|
501
|
+
Returns: `KolTrendingResponse`
|
|
500
502
|
|
|
501
503
|
---
|
|
502
504
|
|
|
@@ -507,7 +509,7 @@ Returns: `KolTrendingTokensResponse`
|
|
|
507
509
|
Leaderboard of 1M+ scored early-buyer wallets ranked by win rate, PnL, or ROI.
|
|
508
510
|
|
|
509
511
|
```ts
|
|
510
|
-
const {
|
|
512
|
+
const { leaderboard } = await client.alpha.leaderboard({
|
|
511
513
|
period: "30d", // "7d" | "30d" | "90d", default "30d"
|
|
512
514
|
sort: "win_rate", // "win_rate" | "pnl" | "roi"
|
|
513
515
|
min_tokens: 5,
|
|
@@ -680,20 +682,20 @@ Returns: `TokenHoldersResponse` (`TokenHolder`, `TokenHoldersExcluded`, `TokenHo
|
|
|
680
682
|
List your tracked wallets and remaining capacity.
|
|
681
683
|
|
|
682
684
|
```ts
|
|
683
|
-
const { wallets,
|
|
684
|
-
//
|
|
685
|
+
const { wallets, count, limit, remaining } = await client.walletTracker.watchlist();
|
|
686
|
+
// limit — Pro: 50, Ultra: 250, Business: 1,000 (no wallet tracker on Free)
|
|
685
687
|
```
|
|
686
688
|
|
|
687
689
|
Returns: `WatchlistResponse`
|
|
688
690
|
|
|
689
691
|
---
|
|
690
692
|
|
|
691
|
-
#### `client.walletTracker.addToWatchlist(
|
|
693
|
+
#### `client.walletTracker.addToWatchlist(params)`
|
|
692
694
|
|
|
693
695
|
Add a wallet to your watchlist. Tracking begins immediately.
|
|
694
696
|
|
|
695
697
|
```ts
|
|
696
|
-
await client.walletTracker.addToWatchlist("7xKX...",
|
|
698
|
+
await client.walletTracker.addToWatchlist({ wallet_address: "7xKX...", label: "whale" });
|
|
697
699
|
```
|
|
698
700
|
|
|
699
701
|
---
|
|
@@ -708,12 +710,12 @@ await client.walletTracker.removeFromWatchlist("7xKX...");
|
|
|
708
710
|
|
|
709
711
|
---
|
|
710
712
|
|
|
711
|
-
#### `client.walletTracker.updateLabel(wallet,
|
|
713
|
+
#### `client.walletTracker.updateLabel(wallet, params)`
|
|
712
714
|
|
|
713
715
|
Update the label for a tracked wallet.
|
|
714
716
|
|
|
715
717
|
```ts
|
|
716
|
-
await client.walletTracker.updateLabel("7xKX...", "smart money");
|
|
718
|
+
await client.walletTracker.updateLabel("7xKX...", { label: "smart money" });
|
|
717
719
|
```
|
|
718
720
|
|
|
719
721
|
---
|
|
@@ -728,7 +730,7 @@ const { events } = await client.walletTracker.trades({
|
|
|
728
730
|
action: "buy", // "buy" | "sell"
|
|
729
731
|
event_type: "swap", // "swap" | "transfer"
|
|
730
732
|
limit: 50,
|
|
731
|
-
before:
|
|
733
|
+
before: 1775001600, // block_time cursor (next_cursor from the previous page)
|
|
732
734
|
});
|
|
733
735
|
```
|
|
734
736
|
|
|
@@ -923,7 +925,7 @@ Global statistics across all tracked deployer wallets.
|
|
|
923
925
|
|
|
924
926
|
```ts
|
|
925
927
|
const stats = await client.deployer.stats();
|
|
926
|
-
console.log(stats.
|
|
928
|
+
console.log(stats.bond_rate); // e.g. 0.043
|
|
927
929
|
```
|
|
928
930
|
|
|
929
931
|
Returns: `DeployerStats`
|
|
@@ -953,7 +955,7 @@ Full profile for a single deployer wallet.
|
|
|
953
955
|
|
|
954
956
|
```ts
|
|
955
957
|
const deployer = await client.deployer.profile("3xAB...");
|
|
956
|
-
console.log(deployer.tier, deployer.bonding_rate);
|
|
958
|
+
console.log(deployer.deployer?.tier, deployer.deployer?.bonding_rate);
|
|
957
959
|
```
|
|
958
960
|
|
|
959
961
|
Returns: `DeployerProfile`
|
|
@@ -1027,7 +1029,7 @@ Returns: `BestTokensResponse`
|
|
|
1027
1029
|
Most recently bonded tokens from tracked deployers.
|
|
1028
1030
|
|
|
1029
1031
|
```ts
|
|
1030
|
-
const {
|
|
1032
|
+
const { tokens } = await client.deployer.recentBonds({ limit: 20 });
|
|
1031
1033
|
```
|
|
1032
1034
|
|
|
1033
1035
|
Returns: `RecentBondsResponse`
|
|
@@ -1498,7 +1500,7 @@ const { evicted } = await client.stream.deleteSession(sessions[0].id);
|
|
|
1498
1500
|
|
|
1499
1501
|
Real-time trades across **9+ Solana DEX programs** (Pump.fun, PumpAMM, PumpSwap, Raydium AMM/CPMM/CAMM, Jupiter v6, Orca Whirlpool, Meteora DBC/DAMM, LaunchLab/bonk.fun) on a single normalized WebSocket. Server-side filters drop everything you don't care about before it hits your socket.
|
|
1500
1502
|
|
|
1501
|
-
**Limits:** ULTRA
|
|
1503
|
+
**Limits:** ULTRA 3 connections, BUSINESS 6, **10 named subscriptions per connection**, up to **500 trades replay** from a server-side buffer holding ~5 minutes of firehose history (not connection-scoped — covers trades from before you connected; newest-first, sort by `block_time`). Inbound rate limit: 5 messages/sec (excess emits one error per second).
|
|
1502
1504
|
|
|
1503
1505
|
#### Quick start
|
|
1504
1506
|
|
|
@@ -1637,9 +1639,9 @@ const webhook = await client.webhooks.create({
|
|
|
1637
1639
|
|
|
1638
1640
|
// List, update, delete
|
|
1639
1641
|
const { webhooks } = await client.webhooks.list();
|
|
1640
|
-
await client.webhooks.update(webhook.id, {
|
|
1641
|
-
await client.webhooks.delete(webhook.id);
|
|
1642
|
-
await client.webhooks.test(webhook.id);
|
|
1642
|
+
await client.webhooks.update(webhook.webhook.id, { is_active: false });
|
|
1643
|
+
await client.webhooks.delete(webhook.webhook.id);
|
|
1644
|
+
await client.webhooks.test(webhook.webhook.id);
|
|
1643
1645
|
```
|
|
1644
1646
|
|
|
1645
1647
|
---
|
|
@@ -1716,7 +1718,7 @@ import type {
|
|
|
1716
1718
|
|
|
1717
1719
|
// KOL PnL & Trending
|
|
1718
1720
|
KolPnlResponse,
|
|
1719
|
-
|
|
1721
|
+
KolTrendingResponse,
|
|
1720
1722
|
TrendingToken,
|
|
1721
1723
|
|
|
1722
1724
|
// Alpha Wallet Intelligence
|
|
@@ -1773,7 +1775,7 @@ import type {
|
|
|
1773
1775
|
|
|
1774
1776
|
## Related
|
|
1775
1777
|
|
|
1776
|
-
- [MadeOnSol website](https://madeonsol.com) — Browse
|
|
1778
|
+
- [MadeOnSol website](https://madeonsol.com) — Browse 1,200+ Solana & Robinhood Chain tools
|
|
1777
1779
|
- [API documentation](https://madeonsol.com/api-docs) — Interactive endpoint reference
|
|
1778
1780
|
- [Pricing & API keys](https://madeonsol.com/pricing) — Free tier: 200 requests/day, no signup payment
|
|
1779
1781
|
- [MadeOnSol on GitHub](https://github.com/madeonsol/madeonsol) — Main project repository
|