madeonsol 4.4.0 → 4.5.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/README.md +2 -0
- package/dist/index.d.ts +424 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +49 -9
- package/dist/index.js.map +1 -1
- package/dist/stream.d.ts +2 -2
- package/dist/stream.d.ts.map +1 -1
- package/dist/stream.js +1 -0
- package/dist/stream.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,6 +14,8 @@ Official TypeScript/JavaScript SDK for the **[MadeOnSol](https://madeonsol.com)
|
|
|
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.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
|
+
|
|
17
19
|
> **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.
|
|
18
20
|
|
|
19
21
|
> **New in 4.3.0 (stream handshake fix + contract parity).** `MadeOnSolStream` no longer opens a second WebSocket (or requests a second stream token) when `connect()` or `subscribe()` is called while the first socket is still connecting; channels requested during the handshake are sent once it opens, and `close()` during the handshake leaves no socket behind. Response types gain the fields the API already serves: copy-trade identity v2 on `CopyTradeSignal` (`economic_action_id`, `source_actor`, `co_actors`, `identity_version`), LP security on `TokenSummary` (`lp_secured_pct`, `lp_secured_basis`, `lp_locked_until`), `AlmostBondedToken.launchpad` / `venue_source`, cap-table `ranks_completeness`, depth `pool_selection` and per-pool `model_detail` / `pool_account` / `fee_basis` / `bins_window` / `ticks_window`, batch-classify `label_coverage` / `rule_version` / `evidence_horizon`, proven-holding fields on wallet PnL and positions (`holding_check`, `position_basis`, `holding_status`, `holding_unverified_reason`, `cost_basis_status`, `holding`) and funding `wallet_coverage`. All additive and optional.
|
package/dist/index.d.ts
CHANGED
|
@@ -666,6 +666,8 @@ export interface TokenTopTradersParams {
|
|
|
666
666
|
window_days?: number;
|
|
667
667
|
/** Minimum SOL bought to qualify (default 0.1). */
|
|
668
668
|
min_bought_sol?: number;
|
|
669
|
+
/** Page offset (default 0). */
|
|
670
|
+
offset?: number;
|
|
669
671
|
}
|
|
670
672
|
/** One wallet in a top-traders response, enriched with KOL identity + alpha-wallet stats. */
|
|
671
673
|
export interface TokenTopTrader {
|
|
@@ -676,12 +678,18 @@ export interface TokenTopTrader {
|
|
|
676
678
|
sells: number;
|
|
677
679
|
bought_sol: number;
|
|
678
680
|
sold_sol: number;
|
|
681
|
+
/** Realized SOL PnL on the matched portion; cost basis per the response's `cost_method`. */
|
|
679
682
|
realized_pnl_sol: number;
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
+
/** null when still holding a token we cannot price (never valued at 0). */
|
|
684
|
+
unrealized_pnl_sol: number | null;
|
|
685
|
+
total_pnl_sol: number | null;
|
|
686
|
+
held_value_sol: number | null;
|
|
683
687
|
roi: number | null;
|
|
684
688
|
still_holding: boolean;
|
|
689
|
+
/** FIFO only (2026-10-14): tokens sold without an observed earlier buy (proceeds excluded from realized PnL). null under `average_cost`. */
|
|
690
|
+
unmatched_sell_tokens?: number | null;
|
|
691
|
+
/** FIFO only: every sold token matched an observed buy. null under `average_cost`. */
|
|
692
|
+
cost_basis_complete?: boolean | null;
|
|
685
693
|
first_trade_at: string;
|
|
686
694
|
last_trade_at: string;
|
|
687
695
|
is_kol: boolean;
|
|
@@ -696,6 +704,9 @@ export interface TokenTopTradersResponse {
|
|
|
696
704
|
mint: string;
|
|
697
705
|
sort: "pnl" | "roi";
|
|
698
706
|
window_days: number;
|
|
707
|
+
/** 2026-10-14: `"fifo"` = same cost basis as `/wallet/{address}/pnl`; `"average_cost"` = legacy fallback (overstates profit on unmatched sells). */
|
|
708
|
+
cost_method?: "fifo" | "average_cost";
|
|
709
|
+
cost_method_note?: string;
|
|
699
710
|
traders: TokenTopTrader[];
|
|
700
711
|
summary: {
|
|
701
712
|
returned: number;
|
|
@@ -1128,6 +1139,44 @@ export interface KolEntryOrderParams {
|
|
|
1128
1139
|
/** Max entries to return (1–100). Default: 50. */
|
|
1129
1140
|
limit?: number;
|
|
1130
1141
|
}
|
|
1142
|
+
export interface KolTokenTradesParams {
|
|
1143
|
+
/** 1–200, default 100. BASIC is clamped to 20. */
|
|
1144
|
+
limit?: number;
|
|
1145
|
+
action?: "buy" | "sell";
|
|
1146
|
+
/** Only this KOL wallet. */
|
|
1147
|
+
kol?: string;
|
|
1148
|
+
/** ISO time: only trades strictly after it. */
|
|
1149
|
+
since?: string;
|
|
1150
|
+
/** `next_cursor` from the previous page. */
|
|
1151
|
+
cursor?: string;
|
|
1152
|
+
}
|
|
1153
|
+
/** One stored KOL trade on a token. */
|
|
1154
|
+
export interface KolTokenTrade {
|
|
1155
|
+
id: string;
|
|
1156
|
+
kol_name: string | null;
|
|
1157
|
+
kol_twitter: string | null;
|
|
1158
|
+
wallet: string;
|
|
1159
|
+
action: "buy" | "sell";
|
|
1160
|
+
sol_amount: number | null;
|
|
1161
|
+
token_amount: number | null;
|
|
1162
|
+
price_usd_at_trade: number | null;
|
|
1163
|
+
market_cap_usd_at_trade: number | null;
|
|
1164
|
+
tx_signature: string | null;
|
|
1165
|
+
traded_at: string;
|
|
1166
|
+
}
|
|
1167
|
+
/** `GET /kol/tokens/{mint}/trades` — every stored KOL trade on one token, newest first, keyset paged. */
|
|
1168
|
+
export interface KolTokenTradesResponse {
|
|
1169
|
+
token_mint: string;
|
|
1170
|
+
trades: KolTokenTrade[];
|
|
1171
|
+
count: number;
|
|
1172
|
+
/** Distinct KOL addresses on this page. */
|
|
1173
|
+
kols_on_page: number;
|
|
1174
|
+
next_cursor: string | null;
|
|
1175
|
+
/** Exact (limit + 1 probe). */
|
|
1176
|
+
has_more: boolean;
|
|
1177
|
+
note?: string;
|
|
1178
|
+
_rid?: string;
|
|
1179
|
+
}
|
|
1131
1180
|
export interface KolEntryOrderEntry {
|
|
1132
1181
|
rank: number;
|
|
1133
1182
|
kol_name: string | null;
|
|
@@ -1272,6 +1321,28 @@ export interface DeployerLeaderboardParams extends PaginationParams {
|
|
|
1272
1321
|
export interface DeployerTokensParams extends PaginationParams {
|
|
1273
1322
|
/** Max results (1–50). Default: 20. */
|
|
1274
1323
|
limit?: number;
|
|
1324
|
+
/** true = only tokens that graduated (bonded_at set); total / has_more count the bonded set. */
|
|
1325
|
+
only_bonded?: boolean;
|
|
1326
|
+
/** Opt in to `launches_24h` (distinct launches observed in our index over a rolling UTC 24 h window). */
|
|
1327
|
+
include_launches_24h?: boolean;
|
|
1328
|
+
}
|
|
1329
|
+
/**
|
|
1330
|
+
* Launches observed in OUR index over a rolling UTC 24 h window. Indexed
|
|
1331
|
+
* observations only, not a chain-complete count. `count` is null (never 0)
|
|
1332
|
+
* unless `status` is `"observed"`.
|
|
1333
|
+
*/
|
|
1334
|
+
export interface DeployerLaunches24h {
|
|
1335
|
+
window_start: string;
|
|
1336
|
+
window_end: string;
|
|
1337
|
+
count: number | null;
|
|
1338
|
+
status: "observed" | "source_unavailable" | "over_budget" | "source_incomplete" | "untracked_deployer";
|
|
1339
|
+
completeness: "indexed_observations_only";
|
|
1340
|
+
provenance?: string;
|
|
1341
|
+
row_cap_per_source?: number;
|
|
1342
|
+
source_rows?: {
|
|
1343
|
+
bonded?: number;
|
|
1344
|
+
pending?: number;
|
|
1345
|
+
};
|
|
1275
1346
|
}
|
|
1276
1347
|
export interface DeployerAlertsParams extends PaginationParams {
|
|
1277
1348
|
/** ISO 8601 datetime — return alerts since this time. */
|
|
@@ -1543,6 +1614,8 @@ export interface DeployerTokensResponse {
|
|
|
1543
1614
|
is_deployer?: boolean;
|
|
1544
1615
|
wallet?: string;
|
|
1545
1616
|
coverage?: TradeCoverage;
|
|
1617
|
+
/** Present only with `include_launches_24h: true`. */
|
|
1618
|
+
launches_24h?: DeployerLaunches24h;
|
|
1546
1619
|
_rid?: string;
|
|
1547
1620
|
/** @deprecated Never sent by the API — use `tokens.length`. */
|
|
1548
1621
|
count?: number;
|
|
@@ -1862,6 +1935,18 @@ export interface DeployerActivityEvent {
|
|
|
1862
1935
|
sol?: number | null;
|
|
1863
1936
|
tokens?: number | null;
|
|
1864
1937
|
price_usd?: number | null;
|
|
1938
|
+
/** Realtime dev-event actor. PRO sees only direct developer events; ULTRA+ may also see proven linked-wallet events when identity stitching is released. */
|
|
1939
|
+
actor_wallet?: string | null;
|
|
1940
|
+
actor_role?: "deployer" | "linked_wallet" | null;
|
|
1941
|
+
/** Exact base-unit amount on persisted realtime dev events (decimal string; use BigInt()). */
|
|
1942
|
+
token_amount_raw?: string | null;
|
|
1943
|
+
supply_pct?: number | null;
|
|
1944
|
+
venue?: string | null;
|
|
1945
|
+
/** Raw transfer counterparty; never an identity claim. */
|
|
1946
|
+
counterparty?: string | null;
|
|
1947
|
+
counterparty_class?: string | null;
|
|
1948
|
+
/** Timeline source/projection marker for realtime dev events. */
|
|
1949
|
+
feed?: string | null;
|
|
1865
1950
|
first_at?: string | null;
|
|
1866
1951
|
last_at?: string | null;
|
|
1867
1952
|
aggregate?: boolean;
|
|
@@ -2088,6 +2173,55 @@ export interface AlphaCapTableBuyer {
|
|
|
2088
2173
|
historical_win_rate: number | null;
|
|
2089
2174
|
historical_pnl_sol: number | null;
|
|
2090
2175
|
historical_tokens: number | null;
|
|
2176
|
+
/** 2026-10, only with `verify_current_balances: true` (ULTRA+): the current balance of this mint, read from chain. */
|
|
2177
|
+
balance_now?: BalanceNow;
|
|
2178
|
+
/** 2026-10, only with `verify_current_balances: true`: from the balance (not the swap ledger). */
|
|
2179
|
+
holding_status?: "verified_nonzero" | "verified_zero";
|
|
2180
|
+
/** 2026-10, only with `verify_current_balances: true`: zero balance although no sell is on the swap ledger. */
|
|
2181
|
+
exited_without_sell?: boolean;
|
|
2182
|
+
/** 2026-10, only with `include_scout_scores: true`: KOL buyers' scout score as of first_buy_at (no hindsight); null for non-KOLs. */
|
|
2183
|
+
scout_score?: {
|
|
2184
|
+
as_of: string;
|
|
2185
|
+
first_touches_30d: number;
|
|
2186
|
+
avg_followers_4h: number | null;
|
|
2187
|
+
swarm_3plus_pct: number | null;
|
|
2188
|
+
swarm_5plus_pct: number | null;
|
|
2189
|
+
scout_tier: "S" | "A" | "B" | "C" | null;
|
|
2190
|
+
} | null;
|
|
2191
|
+
}
|
|
2192
|
+
/** A wallet's current balance of one mint, read from chain (`getTokenAccountsByOwner`). `amount_raw` is a u64 decimal string. */
|
|
2193
|
+
export interface BalanceNow {
|
|
2194
|
+
amount_raw: string;
|
|
2195
|
+
decimals: number | null;
|
|
2196
|
+
amount: string;
|
|
2197
|
+
holding: boolean;
|
|
2198
|
+
token_accounts: number;
|
|
2199
|
+
slot: number;
|
|
2200
|
+
}
|
|
2201
|
+
/** Balance-based held figures for a wallet cohort (bundle, bundle clusters, bundle share). Totals only when every wallet was read (`complete`). */
|
|
2202
|
+
export interface BundleHeldNow {
|
|
2203
|
+
source: "solana_rpc_getTokenAccountsByOwner";
|
|
2204
|
+
checked_at: string;
|
|
2205
|
+
wallets: number;
|
|
2206
|
+
verified_wallets: number;
|
|
2207
|
+
holding_wallets: number;
|
|
2208
|
+
complete: boolean;
|
|
2209
|
+
incomplete_reason: string | null;
|
|
2210
|
+
slot_min: number | null;
|
|
2211
|
+
slot_max: number | null;
|
|
2212
|
+
tokens_held_raw: string | null;
|
|
2213
|
+
tokens_held: string | null;
|
|
2214
|
+
/** RATIO in [0, 1] of circulating_supply_raw. */
|
|
2215
|
+
held_pct_of_supply: number | null;
|
|
2216
|
+
supply_basis: "circulating_supply_raw" | null;
|
|
2217
|
+
}
|
|
2218
|
+
export interface AlphaCapTableParams {
|
|
2219
|
+
/** Rows to return (tier-capped). */
|
|
2220
|
+
limit?: number;
|
|
2221
|
+
/** ULTRA+: read every scored buyer's current balance from chain (`balance_now`, `exited_without_sell`, `onchain_balance_verification`). */
|
|
2222
|
+
verify_current_balances?: boolean;
|
|
2223
|
+
/** Add `scout_score` per KOL buyer plus `scout_scores_status` / `scout_scores_note`. */
|
|
2224
|
+
include_scout_scores?: boolean;
|
|
2091
2225
|
}
|
|
2092
2226
|
export interface AlphaCapTableSummary {
|
|
2093
2227
|
known_alpha_wallets: number;
|
|
@@ -2103,6 +2237,22 @@ export interface AlphaCapTableResponse {
|
|
|
2103
2237
|
summary: AlphaCapTableSummary;
|
|
2104
2238
|
/** v2.22.4 — trade-coverage disclosure (additive; absent on older cached responses). */
|
|
2105
2239
|
coverage?: TradeCoverage;
|
|
2240
|
+
/** 2026-10, only with `include_scout_scores: true`. */
|
|
2241
|
+
scout_scores_status?: "ok" | "unavailable" | "timeout" | "error";
|
|
2242
|
+
scout_scores_note?: string;
|
|
2243
|
+
/** 2026-10, only with `verify_current_balances: true` (ULTRA+), after every scored buyer was read. */
|
|
2244
|
+
onchain_balance_verification?: {
|
|
2245
|
+
source: string;
|
|
2246
|
+
checked_at: string;
|
|
2247
|
+
slot_min: number;
|
|
2248
|
+
slot_max: number;
|
|
2249
|
+
verified_wallets: number;
|
|
2250
|
+
complete: boolean;
|
|
2251
|
+
verified_still_holding: number;
|
|
2252
|
+
verified_exited: number;
|
|
2253
|
+
exited_without_sell: number;
|
|
2254
|
+
note: string;
|
|
2255
|
+
};
|
|
2106
2256
|
/** 2026-10: whether early-buyer ranks 1..20 can be trusted. `gap_overlap` = a
|
|
2107
2257
|
* recorded ingest gap overlaps launch to the last ranked buy, so a true early
|
|
2108
2258
|
* buyer may be missing. Absent on older responses. */
|
|
@@ -2139,8 +2289,23 @@ export interface AlphaBuyerQualityBreakdown {
|
|
|
2139
2289
|
*/
|
|
2140
2290
|
recycled_early_buyer_count: number;
|
|
2141
2291
|
}
|
|
2292
|
+
export interface AlphaBuyerQualityParams {
|
|
2293
|
+
/** PRO+: add `dump_cluster_held_now` (the dump-cluster early buyers' current holdings, read from chain). */
|
|
2294
|
+
include_balances?: boolean;
|
|
2295
|
+
}
|
|
2142
2296
|
export interface AlphaBuyerQualityResponse {
|
|
2143
2297
|
mint: string;
|
|
2298
|
+
/** 2026-10, only with `include_balances: true` (PRO+): the dump-cluster early buyers' CURRENT holdings; totals only when every member was read. */
|
|
2299
|
+
dump_cluster_held_now?: {
|
|
2300
|
+
cohort_size: number;
|
|
2301
|
+
members: number;
|
|
2302
|
+
held_now: BundleHeldNow | Record<string, unknown>;
|
|
2303
|
+
wallets: Array<{
|
|
2304
|
+
wallet: string;
|
|
2305
|
+
balance_now: BalanceNow | null;
|
|
2306
|
+
}>;
|
|
2307
|
+
note: string;
|
|
2308
|
+
};
|
|
2144
2309
|
score: number;
|
|
2145
2310
|
confidence: "low" | "medium" | "high";
|
|
2146
2311
|
signal: "positive" | "neutral" | "negative";
|
|
@@ -2352,6 +2517,12 @@ export interface BundleWallet {
|
|
|
2352
2517
|
bot_confidence?: string | null;
|
|
2353
2518
|
/** ULTRA-only — tokens this wallet currently holds. */
|
|
2354
2519
|
tokens_held?: number | null;
|
|
2520
|
+
/** 2026-10, only with `include_balances: true`: current balance of the mint; null when the cohort read failed. */
|
|
2521
|
+
balance_now?: BalanceNow | null;
|
|
2522
|
+
}
|
|
2523
|
+
export interface TokenBundleParams {
|
|
2524
|
+
/** PRO+: add `held_now` + per-wallet `balance_now` from current chain balances. */
|
|
2525
|
+
include_balances?: boolean;
|
|
2355
2526
|
}
|
|
2356
2527
|
/** Bundle-cohort holdings for a token — the wallets that bought together (one
|
|
2357
2528
|
* atomic transaction or the same slot) and how much of supply they still hold.
|
|
@@ -2362,10 +2533,187 @@ export interface BundleWallet {
|
|
|
2362
2533
|
export interface TokenBundleResponse {
|
|
2363
2534
|
mint: string;
|
|
2364
2535
|
bundle: BundleSummary;
|
|
2536
|
+
/** 2026-10, only with `include_balances: true` (PRO+): balance-based held figures; totals only when complete. */
|
|
2537
|
+
held_now?: BundleHeldNow;
|
|
2365
2538
|
wallets: BundleWallet[];
|
|
2366
2539
|
/** v2.22.4 — trade-coverage disclosure (additive; absent on older cached responses). */
|
|
2367
2540
|
coverage?: TradeCoverage;
|
|
2368
2541
|
}
|
|
2542
|
+
/** Window shared by `bundles()` / `bundleShare()`. */
|
|
2543
|
+
export type BundleWindow = "1h" | "6h" | "24h";
|
|
2544
|
+
export interface TokenBundlesParams {
|
|
2545
|
+
/** Default `"24h"`. */
|
|
2546
|
+
window?: BundleWindow;
|
|
2547
|
+
/** Minimum distinct buyers in one slot to count as a cluster (3–20, default 3). */
|
|
2548
|
+
min_wallets?: number;
|
|
2549
|
+
/** 1–100, default 50. */
|
|
2550
|
+
limit?: number;
|
|
2551
|
+
/** Add `held_now` (current chain balances) to the 3 most recent clusters. */
|
|
2552
|
+
include_balances?: boolean;
|
|
2553
|
+
}
|
|
2554
|
+
/** What a followed cluster's wallets have SOLD since the cluster (bundle-watch sell ledger). */
|
|
2555
|
+
export interface TokenBundleClusterExit {
|
|
2556
|
+
cluster_id: number;
|
|
2557
|
+
followed_until: string;
|
|
2558
|
+
wallets_tracked: number;
|
|
2559
|
+
wallets_sold: number;
|
|
2560
|
+
/** Sold >= 99 % of their cluster buy. */
|
|
2561
|
+
wallets_exited: number;
|
|
2562
|
+
bought_tokens: number;
|
|
2563
|
+
sold_tokens: number;
|
|
2564
|
+
/** Sum over wallets of min(sold, bought in the cluster) / bought in the cluster, 0..1. */
|
|
2565
|
+
sold_pct: number | null;
|
|
2566
|
+
realized_sol: number;
|
|
2567
|
+
last_sell_at: string | null;
|
|
2568
|
+
}
|
|
2569
|
+
/** One slot where >= `min_wallets` distinct wallets bought the token. Evidence, not a verdict. */
|
|
2570
|
+
export interface TokenBundleCluster {
|
|
2571
|
+
slot: number;
|
|
2572
|
+
at: string;
|
|
2573
|
+
minutes_after_launch: number | null;
|
|
2574
|
+
/** `launch` = within 5 minutes of `launch_at`. */
|
|
2575
|
+
phase: "launch" | "later" | "unknown";
|
|
2576
|
+
wallet_count: number;
|
|
2577
|
+
/** Buyers with no earlier buy of this token. */
|
|
2578
|
+
new_wallets: number;
|
|
2579
|
+
/** Transactions carrying 3+ of the buyers (definitively coordinated). */
|
|
2580
|
+
atomic_txs: number;
|
|
2581
|
+
sol_volume: number | null;
|
|
2582
|
+
token_volume: number | null;
|
|
2583
|
+
/** At most 50. */
|
|
2584
|
+
wallets: string[];
|
|
2585
|
+
/** Only with `include_balances: true`, on the 3 most recent clusters. */
|
|
2586
|
+
held_now?: BundleHeldNow;
|
|
2587
|
+
/** null = not followed (only announced clusters are followed, 7 days, first 50 wallets). */
|
|
2588
|
+
exit?: TokenBundleClusterExit | null;
|
|
2589
|
+
}
|
|
2590
|
+
/** `GET /tokens/{mint}/bundles` — every coordinated buy cluster in the window, launch AND later (PRO+). */
|
|
2591
|
+
export interface TokenBundlesResponse {
|
|
2592
|
+
mint: string;
|
|
2593
|
+
window: string;
|
|
2594
|
+
min_wallets: number;
|
|
2595
|
+
launch_at: string | null;
|
|
2596
|
+
summary: {
|
|
2597
|
+
cluster_count: number;
|
|
2598
|
+
launch_clusters: number;
|
|
2599
|
+
later_clusters: number;
|
|
2600
|
+
latest_cluster_at: string | null;
|
|
2601
|
+
largest_cluster_wallets: number;
|
|
2602
|
+
/** Window baseline (null when no cluster was found). On busy tokens unrelated buyers share slots. */
|
|
2603
|
+
baseline: Record<string, unknown> | null;
|
|
2604
|
+
};
|
|
2605
|
+
clusters: TokenBundleCluster[];
|
|
2606
|
+
/** Only with `include_balances: true`. */
|
|
2607
|
+
held_now_clusters?: number;
|
|
2608
|
+
/** Whether the exit ledger could be read; clusters are served either way (`exit` null when not ok). */
|
|
2609
|
+
exit_tracking?: "ok" | "unavailable" | "error";
|
|
2610
|
+
exit_note?: string;
|
|
2611
|
+
note?: string;
|
|
2612
|
+
_rid?: string;
|
|
2613
|
+
}
|
|
2614
|
+
export interface TokenBundleShareParams {
|
|
2615
|
+
/** Which later clusters to include (the launch bundle is always included). Default `"24h"`. */
|
|
2616
|
+
window?: BundleWindow;
|
|
2617
|
+
/** 3–20, default 3. */
|
|
2618
|
+
min_wallets?: number;
|
|
2619
|
+
}
|
|
2620
|
+
/** `GET /tokens/{mint}/bundle-share` — ONE figure: share of supply held now by every bundle wallet (PRO+, cached 30 s per token). */
|
|
2621
|
+
export interface TokenBundleShareResponse {
|
|
2622
|
+
mint: string;
|
|
2623
|
+
window: string;
|
|
2624
|
+
min_wallets: number;
|
|
2625
|
+
/** RATIO in [0, 1]. Null unless every wallet was read (see `held_now.incomplete_reason`), never a partial sum. */
|
|
2626
|
+
bundled_pct_of_supply_now: number | null;
|
|
2627
|
+
/** `launch_cohort_only` = the cluster function was not available; only the launch bundle is counted. */
|
|
2628
|
+
scope: "launch_and_clusters" | "launch_cohort_only";
|
|
2629
|
+
clusters_status: "ok" | "unavailable" | "timeout" | "error";
|
|
2630
|
+
wallets: {
|
|
2631
|
+
total: number;
|
|
2632
|
+
launch_cohort_wallets: number;
|
|
2633
|
+
cluster_wallets: number;
|
|
2634
|
+
overlap: number;
|
|
2635
|
+
clusters_counted: number;
|
|
2636
|
+
verified: number;
|
|
2637
|
+
holding: number;
|
|
2638
|
+
max: number;
|
|
2639
|
+
};
|
|
2640
|
+
held_now: BundleHeldNow;
|
|
2641
|
+
as_of: string;
|
|
2642
|
+
note?: string;
|
|
2643
|
+
_rid?: string;
|
|
2644
|
+
}
|
|
2645
|
+
/** Filters for the `token:bundles` WS channel (all optional, AND-combined; invalid values reject the channel). */
|
|
2646
|
+
export interface TokenBundlesFilters {
|
|
2647
|
+
/** Only these mints (at most 250). */
|
|
2648
|
+
mints?: string[];
|
|
2649
|
+
/** Minimum distinct buyers in the cluster (3-50, count at detection). */
|
|
2650
|
+
min_wallets?: number;
|
|
2651
|
+
/** Minimum buyers new to the token (3-50). */
|
|
2652
|
+
min_new_wallets?: number;
|
|
2653
|
+
/** `launch` = within 5 minutes of the token's first sighting. */
|
|
2654
|
+
phases?: Array<"launch" | "later" | "unknown">;
|
|
2655
|
+
/** Only clusters where one transaction carried 3+ of the buyers. */
|
|
2656
|
+
atomic_only?: boolean;
|
|
2657
|
+
/** Only these event types (default both). */
|
|
2658
|
+
bundle_events?: Array<"token:bundle_cluster" | "token:bundle_exit">;
|
|
2659
|
+
}
|
|
2660
|
+
/**
|
|
2661
|
+
* `token:bundle_cluster` on WS `token:bundles` (PRO+): one NEW coordinated buy
|
|
2662
|
+
* cluster on a Solana token, launch or later: one slot where >= 3 wallets
|
|
2663
|
+
* bought and >= 3 of them had never bought the token before. Only stored buys
|
|
2664
|
+
* count (0.05 SOL / $3.50 persistence floor). Announced once; evidence, not a
|
|
2665
|
+
* verdict. For the share of supply these wallets hold now call `alpha.bundleShare()`.
|
|
2666
|
+
*/
|
|
2667
|
+
export interface TokenBundleClusterEvent {
|
|
2668
|
+
/** bundle_cluster_events row id (dedupe key). */
|
|
2669
|
+
id: number;
|
|
2670
|
+
chain: "solana";
|
|
2671
|
+
mint: string;
|
|
2672
|
+
slot: number;
|
|
2673
|
+
/** First buy of the cluster (ISO). */
|
|
2674
|
+
at: string;
|
|
2675
|
+
minutes_after_launch: number | null;
|
|
2676
|
+
phase: "launch" | "later" | "unknown";
|
|
2677
|
+
launch_at: string | null;
|
|
2678
|
+
wallet_count: number;
|
|
2679
|
+
new_wallets: number;
|
|
2680
|
+
/** Transactions carrying 3+ of the buyers. */
|
|
2681
|
+
atomic_txs: number;
|
|
2682
|
+
sol_volume: number | null;
|
|
2683
|
+
token_volume: number | null;
|
|
2684
|
+
/** Up to 50 buyer wallets. */
|
|
2685
|
+
wallets: string[];
|
|
2686
|
+
/** When bundle-watch detected it (ISO). */
|
|
2687
|
+
detected_at: string;
|
|
2688
|
+
}
|
|
2689
|
+
/**
|
|
2690
|
+
* `token:bundle_exit` on WS `token:bundles` (PRO+): an announced cluster's
|
|
2691
|
+
* wallets have sold `threshold_pct` (25 / 50 / 90 / 100) % of what they bought
|
|
2692
|
+
* IN the cluster, each threshold once. Only sells by the bundle wallets
|
|
2693
|
+
* themselves, followed for 7 days after detection; first 50 wallets.
|
|
2694
|
+
*/
|
|
2695
|
+
export interface TokenBundleExitEvent extends Omit<TokenBundleClusterEvent, "sol_volume" | "token_volume" | "wallets"> {
|
|
2696
|
+
cluster_id: number;
|
|
2697
|
+
cluster_detected_at: string | null;
|
|
2698
|
+
threshold_pct: 25 | 50 | 90 | 100;
|
|
2699
|
+
wallets_tracked: number;
|
|
2700
|
+
wallets_sold: number;
|
|
2701
|
+
/** Wallets that sold at least 99 % of their cluster buy. */
|
|
2702
|
+
wallets_exited: number;
|
|
2703
|
+
bought_tokens: number;
|
|
2704
|
+
sold_tokens: number;
|
|
2705
|
+
/** sum over wallets of min(sold, bought) / bought, 0..1. */
|
|
2706
|
+
sold_pct: number | null;
|
|
2707
|
+
realized_sol: number;
|
|
2708
|
+
last_sell_at: string | null;
|
|
2709
|
+
recent_sells: Array<{
|
|
2710
|
+
wallet: string;
|
|
2711
|
+
tx_signature: string;
|
|
2712
|
+
tokens: number | null;
|
|
2713
|
+
sol: number | null;
|
|
2714
|
+
at: string;
|
|
2715
|
+
}>;
|
|
2716
|
+
}
|
|
2369
2717
|
/** One DEX pool a token trades in. `is_active` distinguishes live pools from
|
|
2370
2718
|
* parked/drained ones; `liquidity_usd`/`last_price_sol`/`last_swap_at` are null
|
|
2371
2719
|
* when the pool has no recent on-chain activity. */
|
|
@@ -2400,7 +2748,33 @@ export interface TokenPoolsResponse {
|
|
|
2400
2748
|
/** Wallet-intelligence label on a live holder (`GET /tokens/{mint}/holders`).
|
|
2401
2749
|
* Labels come from MadeOnSol's swap-ledger data — an empty `labels[]` means
|
|
2402
2750
|
* "unknown to us", NOT "verified clean". */
|
|
2403
|
-
export type TokenHolderLabel = "deployer" | "kol" | "early_buyer" | "buyer" | "bundle" | "bot" | "dump_cluster";
|
|
2751
|
+
export type TokenHolderLabel = "deployer" | "kol" | "early_buyer" | "buyer" | "bundle" | "bot" | "dump_cluster" | "sniper" | "bundler_wallet" | "dumper" | "alpha_tracked";
|
|
2752
|
+
/** Per label: `evaluated: false` means insufficient evidence, NOT a verified negative. */
|
|
2753
|
+
export type WalletFlagLabelCoverage = Record<string, {
|
|
2754
|
+
evaluated: boolean;
|
|
2755
|
+
reason?: string;
|
|
2756
|
+
}>;
|
|
2757
|
+
/** Per-holder flags, only with `include_wallet_flags: true`. Null when the flag sources were unavailable. */
|
|
2758
|
+
export interface TokenHolderWalletFlags {
|
|
2759
|
+
is_sniper: boolean;
|
|
2760
|
+
is_bundler: boolean;
|
|
2761
|
+
is_dumper: boolean;
|
|
2762
|
+
is_kol: boolean;
|
|
2763
|
+
is_alpha_tracked: boolean;
|
|
2764
|
+
is_bot_high_confidence: boolean;
|
|
2765
|
+
label_coverage: WalletFlagLabelCoverage;
|
|
2766
|
+
}
|
|
2767
|
+
/** Top-level flag status, only with `include_wallet_flags: true`. */
|
|
2768
|
+
export interface WalletFlagsMeta {
|
|
2769
|
+
status: "available" | "partial" | "unavailable";
|
|
2770
|
+
rule_version?: string;
|
|
2771
|
+
note?: string;
|
|
2772
|
+
[key: string]: unknown;
|
|
2773
|
+
}
|
|
2774
|
+
export interface TokenHoldersParams {
|
|
2775
|
+
/** Opt in to per-holder `wallet_flags` + `wallet_flags_meta` (PRO+, tier-disclosed rows only). */
|
|
2776
|
+
include_wallet_flags?: boolean;
|
|
2777
|
+
}
|
|
2404
2778
|
/** Why an owner was excluded from the circulating denominator and listed in
|
|
2405
2779
|
* `excluded[]`: `pool` = vault authority of a known pool (`dex` + `pool_address`
|
|
2406
2780
|
* set); `bonding_curve` = pump.fun / LaunchLab curve; `burn` = incinerator /
|
|
@@ -2436,6 +2810,8 @@ export interface TokenHolder {
|
|
|
2436
2810
|
/** Alpha-wallet classifier enum (`"none"`/`"low"`/`"medium"`/`"high"`), not a number. */
|
|
2437
2811
|
bot_confidence: string | null;
|
|
2438
2812
|
historical_win_rate: number | null;
|
|
2813
|
+
/** Only with `include_wallet_flags: true`; null when the flag sources were unavailable. */
|
|
2814
|
+
wallet_flags?: TokenHolderWalletFlags | null;
|
|
2439
2815
|
}
|
|
2440
2816
|
/** An owner excluded from the circulating denominator (pool / bonding curve /
|
|
2441
2817
|
* burn / unattributed program account), NAMED where possible. */
|
|
@@ -2530,6 +2906,8 @@ export interface TokenHoldersResponse {
|
|
|
2530
2906
|
concentration: TokenHoldersConcentration;
|
|
2531
2907
|
deployer: TokenHoldersDeployer | null;
|
|
2532
2908
|
source: TokenHoldersSource;
|
|
2909
|
+
/** Only with `include_wallet_flags: true`. */
|
|
2910
|
+
wallet_flags_meta?: WalletFlagsMeta;
|
|
2533
2911
|
}
|
|
2534
2912
|
/** Locker program a contract lives under. LP locks are NOT covered (token / vesting locks only). */
|
|
2535
2913
|
export type TokenLockProgram = "streamflow" | "jupiter_lock" | "bonfida_vesting" | "smithii_vesting" | "sablier_lockup";
|
|
@@ -4014,6 +4392,8 @@ export interface TokenDepthPool extends TokenDepthPoolBase {
|
|
|
4014
4392
|
* `"reserves_unavailable"`) rather than a wrong number. */
|
|
4015
4393
|
export interface TokenDepthUnsupportedPool extends TokenDepthPoolBase {
|
|
4016
4394
|
reason: string;
|
|
4395
|
+
/** With reason `"dlmm_insufficient_liquidity_in_loaded_bins"`: the largest SOL input (incl. fees) the loaded bins can absorb (0 = no buy-side liquidity in the window). */
|
|
4396
|
+
fillable_up_to_sol?: number;
|
|
4017
4397
|
}
|
|
4018
4398
|
/** Per-pool price-impact / slippage depth. Impact is per-pool, not
|
|
4019
4399
|
* router-optimal. **PRO/ULTRA only.** */
|
|
@@ -5635,6 +6015,17 @@ declare class KolClient {
|
|
|
5635
6015
|
* @param params Optional: limit (1–100).
|
|
5636
6016
|
*/
|
|
5637
6017
|
tokenEntryOrder(mint: string, params?: KolEntryOrderParams): Promise<KolEntryOrderResponse>;
|
|
6018
|
+
/**
|
|
6019
|
+
* Every stored KOL trade on one token, newest first, keyset paged with
|
|
6020
|
+
* `next_cursor` / exact `has_more` (`token(mint)` is the per-KOL aggregate;
|
|
6021
|
+
* this is the per-trade list behind it). Same tier depth as `feed()`: BASIC
|
|
6022
|
+
* gets the 5-minute delayed tape and 20 rows per page. KOL trades below the
|
|
6023
|
+
* persistence floor (0.05 SOL, or $3.50 on a stable-quoted leg) are not stored.
|
|
6024
|
+
* `GET /kol/tokens/{mint}/trades`
|
|
6025
|
+
* @param mint Token mint address.
|
|
6026
|
+
* @param params Optional: limit (1–200), action, kol, since, cursor.
|
|
6027
|
+
*/
|
|
6028
|
+
tokenTrades(mint: string, params?: KolTokenTradesParams): Promise<KolTokenTradesResponse>;
|
|
5638
6029
|
/**
|
|
5639
6030
|
* Side-by-side comparison of 2–5 KOL wallets.
|
|
5640
6031
|
* Returns full scores (winrate/ROI/profit factor/early entry/consistency) and, on PRO+, a 30d overlap array.
|
|
@@ -5701,14 +6092,14 @@ declare class AlphaClient {
|
|
|
5701
6092
|
* **BASIC**: HTTP 403. **PRO**: top 10, truncated wallets. **ULTRA**: top 20, full wallets.
|
|
5702
6093
|
* @param mint Token mint address.
|
|
5703
6094
|
*/
|
|
5704
|
-
capTable(mint: string): Promise<AlphaCapTableResponse>;
|
|
6095
|
+
capTable(mint: string, params?: AlphaCapTableParams): Promise<AlphaCapTableResponse>;
|
|
5705
6096
|
/**
|
|
5706
6097
|
* 0–100 buyer quality score for a token's early-buyer cohort.
|
|
5707
6098
|
* Signal: "positive" (>60), "neutral" (40–60), "negative" (<40). 5-minute cache.
|
|
5708
6099
|
* BASIC: score + confidence + signal. PRO/ULTRA: + breakdown.
|
|
5709
6100
|
* @param mint Token mint address.
|
|
5710
6101
|
*/
|
|
5711
|
-
buyerQuality(mint: string): Promise<AlphaBuyerQualityResponse>;
|
|
6102
|
+
buyerQuality(mint: string, params?: AlphaBuyerQualityParams): Promise<AlphaBuyerQualityResponse>;
|
|
5712
6103
|
/**
|
|
5713
6104
|
* v2.13 — Transparent 0–100 token rug-risk/safety score (higher = riskier).
|
|
5714
6105
|
* Returns a `band` (safe/caution/danger), an explainable `factors` array that
|
|
@@ -5731,7 +6122,30 @@ declare class AlphaClient {
|
|
|
5731
6122
|
* (`kol_name`, `win_rate`, `bot_confidence`) and per-wallet `tokens_held`.
|
|
5732
6123
|
* @param mint Token mint address.
|
|
5733
6124
|
*/
|
|
5734
|
-
bundle(mint: string): Promise<TokenBundleResponse>;
|
|
6125
|
+
bundle(mint: string, params?: TokenBundleParams): Promise<TokenBundleResponse>;
|
|
6126
|
+
/**
|
|
6127
|
+
* Every coordinated buy cluster on a token in a window, the launch bundle AND
|
|
6128
|
+
* clusters that enter later: one slot where at least `min_wallets` distinct
|
|
6129
|
+
* wallets bought. `bundle()` stays the launch-cohort view. Per cluster: slot,
|
|
6130
|
+
* time, `phase`, `wallet_count`, `new_wallets`, `atomic_txs`, volumes,
|
|
6131
|
+
* wallets and (for followed clusters) `exit`. `summary.baseline` gives the
|
|
6132
|
+
* window's buys per active slot: a cluster is evidence, not a verdict. Only
|
|
6133
|
+
* stored buys count. `include_balances: true` adds `held_now` to the 3 most
|
|
6134
|
+
* recent clusters. **PRO+.** `GET /tokens/{mint}/bundles`
|
|
6135
|
+
* @param mint Token mint address.
|
|
6136
|
+
* @param params Optional: window, min_wallets (3–20), limit (1–100), include_balances.
|
|
6137
|
+
*/
|
|
6138
|
+
bundles(mint: string, params?: TokenBundlesParams): Promise<TokenBundlesResponse>;
|
|
6139
|
+
/**
|
|
6140
|
+
* ONE figure: `bundled_pct_of_supply_now`, the share of supply held RIGHT NOW
|
|
6141
|
+
* by every bundle wallet (launch bundle plus every cluster wallet in the
|
|
6142
|
+
* window, each counted once), read from chain balances. Null when not every
|
|
6143
|
+
* wallet could be read, never a partial sum. Cached 30 s per token (`as_of`),
|
|
6144
|
+
* so polling is cheap. **PRO+.** `GET /tokens/{mint}/bundle-share`
|
|
6145
|
+
* @param mint Token mint address.
|
|
6146
|
+
* @param params Optional: window, min_wallets (3–20).
|
|
6147
|
+
*/
|
|
6148
|
+
bundleShare(mint: string, params?: TokenBundleShareParams): Promise<TokenBundleShareResponse>;
|
|
5735
6149
|
/**
|
|
5736
6150
|
* Per-venue liquidity map: every DEX pool a token trades in, each flagged
|
|
5737
6151
|
* live (`is_active`) or parked, with `liquidity_usd`, `last_price_sol`, and
|
|
@@ -5810,7 +6224,7 @@ declare class AlphaClient {
|
|
|
5810
6224
|
* 404 `error_kind: "not_a_mint"`. **PRO+** — BASIC receives HTTP 403.
|
|
5811
6225
|
* @param mint Token mint address.
|
|
5812
6226
|
*/
|
|
5813
|
-
holders(mint: string): Promise<TokenHoldersResponse>;
|
|
6227
|
+
holders(mint: string, params?: TokenHoldersParams): Promise<TokenHoldersResponse>;
|
|
5814
6228
|
}
|
|
5815
6229
|
declare class TokenClient {
|
|
5816
6230
|
private readonly _fetch;
|
|
@@ -6274,6 +6688,8 @@ export interface SniperDeploy {
|
|
|
6274
6688
|
/** Null until separate chain evidence is available; observation is not execution. */
|
|
6275
6689
|
confirmed_on_chain: boolean | null;
|
|
6276
6690
|
confirmed_at: string | null;
|
|
6691
|
+
/** ShredPrism: first observed successful finalized outcome (observation time); null for legacy deshred rows. */
|
|
6692
|
+
finalized_at?: string | null;
|
|
6277
6693
|
/** v2.20 — slot-window snipe rollup for this deploy (slots [-1..+3]). `null`
|
|
6278
6694
|
* until the ~10-min settle window has passed or when the mint is outside the
|
|
6279
6695
|
* pump.fun-pipeline write-gate — absent, not zero. */
|