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/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,24 @@ export interface PaginationParams {
|
|
|
11
11
|
limit?: number;
|
|
12
12
|
offset?: number;
|
|
13
13
|
}
|
|
14
|
+
/** Free (BASIC) tier 5-minute delay metadata — present only on delayed feed responses. */
|
|
15
|
+
export interface FreeTierDelayMeta {
|
|
16
|
+
/** e.g. "5m" */
|
|
17
|
+
delay?: string;
|
|
18
|
+
delay_seconds?: number;
|
|
19
|
+
/** The delayed cutoff the page was served at. */
|
|
20
|
+
as_of?: string;
|
|
21
|
+
delay_note?: string;
|
|
22
|
+
/** Pricing URL. */
|
|
23
|
+
upgrade?: string;
|
|
24
|
+
}
|
|
25
|
+
/** Present when a filter was applied after the candidate fetch. `scan_truncated: true` means more matches MAY exist past `next_cursor`. */
|
|
26
|
+
export interface FeedScanInfo {
|
|
27
|
+
post_filtered: boolean;
|
|
28
|
+
scanned: number;
|
|
29
|
+
scan_truncated: boolean;
|
|
30
|
+
scan_budget: number;
|
|
31
|
+
}
|
|
14
32
|
export type KolAction = "buy" | "sell";
|
|
15
33
|
export type LeaderboardPeriod = "today" | "7d" | "30d" | "90d" | "180d";
|
|
16
34
|
export type CoordinationPeriod = "1h" | "6h" | "24h" | "7d";
|
|
@@ -20,8 +38,14 @@ export type KolWalletInclude = "pnl_by_token" | "recent_winners" | "recent_loser
|
|
|
20
38
|
export interface KolFeedParams {
|
|
21
39
|
/** Number of trades to return (1–100). Default: 50. */
|
|
22
40
|
limit?: number;
|
|
23
|
-
/**
|
|
41
|
+
/** LEGACY cursor — return trades strictly older than this ISO 8601 timestamp (skips same-timestamp rows). Prefer `cursor`. */
|
|
24
42
|
before?: string;
|
|
43
|
+
/** PREFERRED pagination: `next_cursor` from the previous page — opaque strict (traded_at, id) keyset. Cannot be combined with `before`. */
|
|
44
|
+
cursor?: string;
|
|
45
|
+
/** Poll cursor — only trades strictly newer than this ISO time (feed back `next_since`). */
|
|
46
|
+
since?: string;
|
|
47
|
+
/** "token" embeds the /token/{mint} snapshot on each row (≤20 distinct mints per page). */
|
|
48
|
+
include?: "token";
|
|
25
49
|
/** Filter by trade direction. */
|
|
26
50
|
action?: KolAction;
|
|
27
51
|
/** Filter by a specific KOL wallet address. */
|
|
@@ -113,13 +137,39 @@ export interface KolTrade {
|
|
|
113
137
|
token_age_minutes?: number | null;
|
|
114
138
|
deployer?: KolTradeDeployer | null;
|
|
115
139
|
deployer_tier?: string | null;
|
|
140
|
+
/** include=token only — the /token/{mint} snapshot (null past the 20-mint cap). */
|
|
141
|
+
token?: TokenResponseBody | null;
|
|
116
142
|
}
|
|
117
|
-
export interface KolFeedResponse {
|
|
143
|
+
export interface KolFeedResponse extends FreeTierDelayMeta {
|
|
118
144
|
trades: KolTrade[];
|
|
119
145
|
count: number;
|
|
120
146
|
data_age_seconds?: number | null;
|
|
121
|
-
/**
|
|
147
|
+
/** LEGACY strict timestamp cursor (skips same-timestamp siblings) — pass as `before`. Prefer `next_cursor`. */
|
|
122
148
|
next_before?: string | null;
|
|
149
|
+
/** Pass as `cursor` for the next (older) page; null at the end. */
|
|
150
|
+
next_cursor?: string | null;
|
|
151
|
+
/** false only when the candidate feed is exhausted — never inferred from a short filtered page. */
|
|
152
|
+
has_more?: boolean;
|
|
153
|
+
/** Present when a filter was applied after the candidate fetch. */
|
|
154
|
+
scan?: FeedScanInfo;
|
|
155
|
+
/** Poll cursor — pass as `since` to fetch only newer rows. */
|
|
156
|
+
next_since?: string | null;
|
|
157
|
+
/** Echo of the `since` parameter. */
|
|
158
|
+
since?: string | null;
|
|
159
|
+
/** WebSocket channel (`kol:trades`) that pushes the same rows. */
|
|
160
|
+
stream?: TokenFeedStreamPointer;
|
|
161
|
+
/** Present only when include= was honoured. */
|
|
162
|
+
included?: Array<"token">;
|
|
163
|
+
/** Present only when include=token hit the 20-distinct-mint cap. */
|
|
164
|
+
include_truncated?: {
|
|
165
|
+
token: string[];
|
|
166
|
+
note: string;
|
|
167
|
+
};
|
|
168
|
+
/** Present only when an unknown include= value was sent. */
|
|
169
|
+
include_errors?: Record<string, {
|
|
170
|
+
status: number;
|
|
171
|
+
error: string;
|
|
172
|
+
}>;
|
|
123
173
|
_rid?: string;
|
|
124
174
|
}
|
|
125
175
|
export interface KolLeaderboardEntry {
|
|
@@ -146,29 +196,147 @@ export interface KolLeaderboardEntry {
|
|
|
146
196
|
median_hold_minutes_30d?: number | null;
|
|
147
197
|
/** Percentile rank for early entry (0–100) over the last 30 days. */
|
|
148
198
|
percentile_early_entry_30d?: number | null;
|
|
199
|
+
/** Number of buys with a known entry MC in the period; null when that read failed (`entry_mc_complete: false`). */
|
|
200
|
+
entry_mc_samples?: number | null;
|
|
201
|
+
/** Average entry market cap (USD) over the period; null when unknown. */
|
|
202
|
+
avg_entry_mc_usd?: number | null;
|
|
203
|
+
}
|
|
204
|
+
export interface KolLeaderboardPagination {
|
|
205
|
+
limit: number;
|
|
206
|
+
offset: number;
|
|
207
|
+
returned: number;
|
|
208
|
+
/** Entries in the filtered universe. */
|
|
209
|
+
total: number;
|
|
210
|
+
has_more: boolean;
|
|
211
|
+
}
|
|
212
|
+
/** The fixed ranked set pagination walks (top KOLs by realized PnL for the period). */
|
|
213
|
+
export interface KolLeaderboardUniverse {
|
|
214
|
+
kind: string;
|
|
215
|
+
period: string;
|
|
216
|
+
max_size: number;
|
|
217
|
+
size: number;
|
|
218
|
+
note: string;
|
|
149
219
|
}
|
|
150
220
|
export interface KolLeaderboardResponse {
|
|
151
221
|
leaderboard: KolLeaderboardEntry[];
|
|
222
|
+
pagination?: KolLeaderboardPagination;
|
|
223
|
+
universe?: KolLeaderboardUniverse;
|
|
224
|
+
/** Start of the entry-MC aggregation window (ISO). */
|
|
225
|
+
entry_mc_window_start?: string | null;
|
|
226
|
+
/** false when the entry-MC read failed (entry MC fields are then null). */
|
|
227
|
+
entry_mc_complete?: boolean;
|
|
152
228
|
period: string;
|
|
153
229
|
sort?: string | null;
|
|
230
|
+
/** Echo — present only when the filter was sent. */
|
|
231
|
+
strategy?: string;
|
|
232
|
+
/** Echo — present only when the filter was sent. */
|
|
233
|
+
min_winrate?: number;
|
|
154
234
|
_rid?: string;
|
|
155
235
|
}
|
|
236
|
+
/** One row of `pnl_by_token` on `GET /kol/{wallet}` (only with `include: "pnl_by_token"`). SOL figures. */
|
|
156
237
|
export interface KolPnlByToken {
|
|
157
|
-
|
|
238
|
+
token_mint: string;
|
|
239
|
+
token_symbol: string | null;
|
|
158
240
|
token_name: string | null;
|
|
241
|
+
buy_count: number;
|
|
242
|
+
sell_count: number;
|
|
243
|
+
/** SOL spent buying this token. */
|
|
244
|
+
total_bought: number;
|
|
245
|
+
/** SOL received selling this token. */
|
|
246
|
+
total_sold: number;
|
|
247
|
+
/** total_sold − total_bought, SOL. */
|
|
248
|
+
pnl: number;
|
|
249
|
+
result: "open" | "win" | "loss";
|
|
250
|
+
first_trade: string;
|
|
251
|
+
last_trade: string;
|
|
252
|
+
/** @deprecated Never sent by the API — use `token_mint`. */
|
|
253
|
+
mint?: string;
|
|
254
|
+
/** @deprecated Never sent by the API — use `pnl` (SOL). */
|
|
255
|
+
realized_pnl_usd?: number;
|
|
256
|
+
}
|
|
257
|
+
/** `recent_winners` / `recent_losers` row on `GET /kol/{wallet}`. */
|
|
258
|
+
export interface KolWalletClosedToken {
|
|
259
|
+
token_mint: string;
|
|
159
260
|
token_symbol: string | null;
|
|
160
|
-
|
|
261
|
+
token_name: string | null;
|
|
262
|
+
pnl: number;
|
|
263
|
+
roi_pct: number | null;
|
|
161
264
|
buy_count: number;
|
|
162
265
|
sell_count: number;
|
|
266
|
+
first_trade: string;
|
|
267
|
+
last_trade: string;
|
|
163
268
|
}
|
|
269
|
+
/** `GET /kol/{wallet}` — what `client.kol.wallet()` returns. */
|
|
164
270
|
export interface KolWalletProfile {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
271
|
+
kol: {
|
|
272
|
+
name: string;
|
|
273
|
+
wallet: string;
|
|
274
|
+
twitter_url: string | null;
|
|
275
|
+
strategy_tag: string | null;
|
|
276
|
+
auto_strategy_tag: string | null;
|
|
277
|
+
};
|
|
278
|
+
/** Sums over the returned trades only (not full history). `win_rate` (0–100) only when per-token PnL was computed. */
|
|
279
|
+
stats: {
|
|
280
|
+
pnl: number;
|
|
281
|
+
buy_count: number;
|
|
282
|
+
sell_count: number;
|
|
283
|
+
volume: number;
|
|
284
|
+
win_rate?: number;
|
|
285
|
+
};
|
|
286
|
+
scores: {
|
|
287
|
+
winrate_7d: number | null;
|
|
288
|
+
winrate_30d: number | null;
|
|
289
|
+
avg_roi_7d: number | null;
|
|
290
|
+
avg_roi_30d: number | null;
|
|
291
|
+
profit_factor_7d: number | null;
|
|
292
|
+
profit_factor_30d: number | null;
|
|
293
|
+
pnl_7d: number | null;
|
|
294
|
+
pnl_30d: number | null;
|
|
295
|
+
early_entry_pct_30d: number | null;
|
|
296
|
+
consistency_7d: number | null;
|
|
297
|
+
median_hold_minutes_30d: number | null;
|
|
298
|
+
closed_positions_7d: number;
|
|
299
|
+
closed_positions_30d: number;
|
|
300
|
+
is_heating_up: boolean;
|
|
301
|
+
is_cold: boolean;
|
|
302
|
+
};
|
|
303
|
+
/** Percentile vs the other tracked KOLs; null when not ranked. */
|
|
304
|
+
peer_ranks: {
|
|
305
|
+
percentile_pnl_7d: number | null;
|
|
306
|
+
percentile_winrate_7d: number | null;
|
|
307
|
+
percentile_pnl_30d: number | null;
|
|
308
|
+
percentile_winrate_30d: number | null;
|
|
309
|
+
percentile_early_entry_30d: number | null;
|
|
310
|
+
};
|
|
311
|
+
/** Up to 100 most recent trades. */
|
|
312
|
+
recent_trades: {
|
|
313
|
+
token_mint: string;
|
|
314
|
+
token_name: string | null;
|
|
315
|
+
token_symbol: string | null;
|
|
316
|
+
action: KolAction;
|
|
317
|
+
sol_amount: number;
|
|
318
|
+
token_amount: number;
|
|
319
|
+
market_cap_usd_at_trade: number | null;
|
|
320
|
+
price_usd_at_trade: number | null;
|
|
321
|
+
tx_signature: string;
|
|
322
|
+
traded_at: string;
|
|
323
|
+
}[];
|
|
171
324
|
pnl_by_token?: KolPnlByToken[];
|
|
325
|
+
recent_winners?: KolWalletClosedToken[];
|
|
326
|
+
recent_losers?: KolWalletClosedToken[];
|
|
327
|
+
_rid?: string;
|
|
328
|
+
/** @deprecated Never sent by the API — use `kol.wallet`. */
|
|
329
|
+
wallet?: string;
|
|
330
|
+
/** @deprecated Never sent by the API — use `kol.name`. */
|
|
331
|
+
kol_name?: string | null;
|
|
332
|
+
/** @deprecated Never sent by the API — use `kol.twitter_url`. */
|
|
333
|
+
kol_twitter?: string | null;
|
|
334
|
+
/** @deprecated Never sent by the API — use `stats.pnl` (SOL). */
|
|
335
|
+
total_pnl_usd?: number;
|
|
336
|
+
/** @deprecated Never sent by the API — use `stats.win_rate`. */
|
|
337
|
+
win_rate?: number;
|
|
338
|
+
/** @deprecated Never sent by the API — use `stats.buy_count + stats.sell_count`. */
|
|
339
|
+
trade_count?: number;
|
|
172
340
|
}
|
|
173
341
|
export interface CoordinationKol {
|
|
174
342
|
name: string;
|
|
@@ -388,10 +556,59 @@ export interface ScoutLeaderboardParams {
|
|
|
388
556
|
scout_tier?: ScoutTier;
|
|
389
557
|
sort?: ScoutLeaderboardSort;
|
|
390
558
|
}
|
|
559
|
+
/** One row of `GET /kol/scouts/leaderboard`. */
|
|
560
|
+
export interface ScoutLeaderboardEntry {
|
|
561
|
+
wallet: string;
|
|
562
|
+
name: string | null;
|
|
563
|
+
avatar_url: string | null;
|
|
564
|
+
twitter_url: string | null;
|
|
565
|
+
scout_tier: ScoutTier | null;
|
|
566
|
+
first_touches_30d: number | null;
|
|
567
|
+
avg_followers_4h: number | null;
|
|
568
|
+
/** % of first touches that drew ≥3 other KOLs within 4h. */
|
|
569
|
+
swarm_3plus_pct: number | null;
|
|
570
|
+
/** % of first touches that drew ≥5 other KOLs within 4h. */
|
|
571
|
+
swarm_5plus_pct: number | null;
|
|
572
|
+
computed_at: string;
|
|
573
|
+
}
|
|
574
|
+
export interface ScoutLeaderboardResponse {
|
|
575
|
+
scouts: ScoutLeaderboardEntry[];
|
|
576
|
+
count: number;
|
|
577
|
+
_rid?: string;
|
|
578
|
+
}
|
|
579
|
+
/**
|
|
580
|
+
* GET /tokens/{mint}/kol-consensus. FIX (2026-10-03 parity): the figures are
|
|
581
|
+
* nested under `consensus` — that is what the route has always returned;
|
|
582
|
+
* earlier versions of this type declared them at the top level, where they were
|
|
583
|
+
* always undefined. With no KOL trades: `consensus: null`,
|
|
584
|
+
* `total_kol_buyers: 0`, `total_kol_sellers: 0`, `complete: true`.
|
|
585
|
+
*/
|
|
391
586
|
export interface KolConsensusResponse {
|
|
587
|
+
mint: string;
|
|
588
|
+
current_mc_usd?: number | null;
|
|
589
|
+
current_price_usd?: number | null;
|
|
590
|
+
consensus: KolConsensus | null;
|
|
591
|
+
/** Only on the no-trades answer (then 0). */
|
|
592
|
+
total_kol_buyers?: number;
|
|
593
|
+
total_kol_sellers?: number;
|
|
594
|
+
complete?: boolean;
|
|
595
|
+
_rid?: string;
|
|
596
|
+
}
|
|
597
|
+
/** The `consensus` block of {@link KolConsensusResponse}. */
|
|
598
|
+
export interface KolConsensus {
|
|
392
599
|
total_kol_buyers: number;
|
|
393
600
|
total_kol_sellers: number;
|
|
601
|
+
/** Share of KOL buyers with >=1 recorded sell (any size) — NOT a full position exit. */
|
|
394
602
|
kol_exit_rate: number | null;
|
|
603
|
+
/** Accurately named copy of kol_exit_rate. */
|
|
604
|
+
kol_any_sell_rate?: number | null;
|
|
605
|
+
/** false when the trade read hit its row ceiling (numbers cover the oldest rows_scanned trades). */
|
|
606
|
+
complete?: boolean;
|
|
607
|
+
truncated?: boolean;
|
|
608
|
+
rows_scanned?: number;
|
|
609
|
+
/** Definition string for kol_exit_rate. */
|
|
610
|
+
kol_exit_rate_definition?: string;
|
|
611
|
+
total_trades?: number;
|
|
395
612
|
net_flow_sol: number;
|
|
396
613
|
total_buy_sol: number;
|
|
397
614
|
total_sell_sol: number;
|
|
@@ -404,9 +621,26 @@ export interface KolConsensusResponse {
|
|
|
404
621
|
buyers?: string[];
|
|
405
622
|
/** ULTRA only — wallets that fully exited. */
|
|
406
623
|
exited?: string[];
|
|
407
|
-
_rid?: string;
|
|
408
624
|
}
|
|
625
|
+
/**
|
|
626
|
+
* GET /tokens/{mint}/peak-history. FIX (2026-10-03 parity): the figures are
|
|
627
|
+
* nested under `peak_history` (null with `found: false` for an unknown mint);
|
|
628
|
+
* earlier versions of this type declared them at the top level, where they were
|
|
629
|
+
* always undefined.
|
|
630
|
+
*/
|
|
409
631
|
export interface PeakHistoryResponse {
|
|
632
|
+
mint: string;
|
|
633
|
+
found: boolean;
|
|
634
|
+
token?: {
|
|
635
|
+
name: string | null;
|
|
636
|
+
symbol: string | null;
|
|
637
|
+
image_url: string | null;
|
|
638
|
+
};
|
|
639
|
+
peak_history: PeakHistory | null;
|
|
640
|
+
_rid?: string;
|
|
641
|
+
}
|
|
642
|
+
/** The `peak_history` block of {@link PeakHistoryResponse}. */
|
|
643
|
+
export interface PeakHistory {
|
|
410
644
|
peak_mc_usd: number | null;
|
|
411
645
|
peak_mc_updated_at: string | null;
|
|
412
646
|
current_mc_usd: number | null;
|
|
@@ -421,6 +655,57 @@ export interface PeakHistoryResponse {
|
|
|
421
655
|
time_to_bond_minutes: number | null;
|
|
422
656
|
deployed_at: string | null;
|
|
423
657
|
bonded_at: string | null;
|
|
658
|
+
mc_tracking_complete?: boolean | null;
|
|
659
|
+
}
|
|
660
|
+
export interface TokenTopTradersParams {
|
|
661
|
+
/** 1-25 on PRO, up to 100 on ULTRA+. */
|
|
662
|
+
limit?: number;
|
|
663
|
+
/** Rank axis. Default "pnl". */
|
|
664
|
+
sort?: "pnl" | "roi";
|
|
665
|
+
/** Lookback window in days (1-180, default 90). */
|
|
666
|
+
window_days?: number;
|
|
667
|
+
/** Minimum SOL bought to qualify (default 0.1). */
|
|
668
|
+
min_bought_sol?: number;
|
|
669
|
+
}
|
|
670
|
+
/** One wallet in a top-traders response, enriched with KOL identity + alpha-wallet stats. */
|
|
671
|
+
export interface TokenTopTrader {
|
|
672
|
+
rank: number;
|
|
673
|
+
wallet: string;
|
|
674
|
+
trades: number;
|
|
675
|
+
buys: number;
|
|
676
|
+
sells: number;
|
|
677
|
+
bought_sol: number;
|
|
678
|
+
sold_sol: number;
|
|
679
|
+
realized_pnl_sol: number;
|
|
680
|
+
unrealized_pnl_sol: number;
|
|
681
|
+
total_pnl_sol: number;
|
|
682
|
+
held_value_sol: number;
|
|
683
|
+
roi: number | null;
|
|
684
|
+
still_holding: boolean;
|
|
685
|
+
first_trade_at: string;
|
|
686
|
+
last_trade_at: string;
|
|
687
|
+
is_kol: boolean;
|
|
688
|
+
kol_name: string | null;
|
|
689
|
+
is_alpha_tracked: boolean;
|
|
690
|
+
bot_confidence: "low" | "medium" | "high" | "none" | null;
|
|
691
|
+
historical_win_rate: number | null;
|
|
692
|
+
historical_pnl_sol: number | null;
|
|
693
|
+
historical_tokens: number | null;
|
|
694
|
+
}
|
|
695
|
+
export interface TokenTopTradersResponse {
|
|
696
|
+
mint: string;
|
|
697
|
+
sort: "pnl" | "roi";
|
|
698
|
+
window_days: number;
|
|
699
|
+
traders: TokenTopTrader[];
|
|
700
|
+
summary: {
|
|
701
|
+
returned: number;
|
|
702
|
+
known_kols: number;
|
|
703
|
+
known_alpha_wallets: number;
|
|
704
|
+
net_realized_pnl_sol: number;
|
|
705
|
+
};
|
|
706
|
+
/** Trade-coverage disclosure; when `in_scope` is false an empty `traders`
|
|
707
|
+
* list means "outside the write-gate", not "nobody traded". */
|
|
708
|
+
coverage?: TradeCoverage;
|
|
424
709
|
_rid?: string;
|
|
425
710
|
}
|
|
426
711
|
export interface CoordinationHistoryParams {
|
|
@@ -428,12 +713,32 @@ export interface CoordinationHistoryParams {
|
|
|
428
713
|
since?: string;
|
|
429
714
|
min_score?: number;
|
|
430
715
|
}
|
|
716
|
+
/** One past coordination cluster (deduped per token) on `GET /kol/coordination/history`. */
|
|
717
|
+
export interface CoordinationHistoryEvent {
|
|
718
|
+
token_mint: string;
|
|
719
|
+
/** Most recent fire time for this token. */
|
|
720
|
+
fired_at: string;
|
|
721
|
+
/** Highest score observed across the token's fires. */
|
|
722
|
+
coordination_score: number;
|
|
723
|
+
total_fires: number;
|
|
724
|
+
/** Distinct KOL wallets that bought the token. */
|
|
725
|
+
kol_buyers: number;
|
|
726
|
+
current_mc_usd: number | null;
|
|
727
|
+
current_price_usd: number | null;
|
|
728
|
+
}
|
|
729
|
+
export interface CoordinationHistoryResponse {
|
|
730
|
+
events: CoordinationHistoryEvent[];
|
|
731
|
+
count: number;
|
|
732
|
+
_rid?: string;
|
|
733
|
+
}
|
|
431
734
|
export type ScoutTier = "S" | "A" | "B" | "C";
|
|
432
735
|
export interface FirstTouchesParams {
|
|
433
736
|
/** ISO datetime — return events strictly newer than this. Polling cursor. */
|
|
434
737
|
since?: string;
|
|
435
|
-
/** ISO datetime — return events strictly older than this.
|
|
738
|
+
/** ISO datetime — return events strictly older than this. LEGACY pagination (skips same-timestamp rows); prefer `cursor`. */
|
|
436
739
|
before?: string;
|
|
740
|
+
/** PREFERRED pagination: `next_cursor` from the previous page — opaque strict keyset. Cannot be combined with `before`. */
|
|
741
|
+
cursor?: string;
|
|
437
742
|
/** 1–100. Default: 50 (BASIC capped at 20). */
|
|
438
743
|
limit?: number;
|
|
439
744
|
/** Single KOL wallet (32–44 base58 chars). */
|
|
@@ -490,11 +795,24 @@ export interface FirstTouchEvent {
|
|
|
490
795
|
/** v2.4 — current last-trade price (USD). */
|
|
491
796
|
last_price_usd?: number | null;
|
|
492
797
|
}
|
|
493
|
-
export interface FirstTouchesResponse {
|
|
798
|
+
export interface FirstTouchesResponse extends FreeTierDelayMeta {
|
|
494
799
|
events: FirstTouchEvent[];
|
|
495
800
|
count: number;
|
|
801
|
+
/** LEGACY strict timestamp cursor — prefer `next_cursor`. */
|
|
496
802
|
next_before: string | null;
|
|
803
|
+
/** Pass as `cursor` for the next (older) page; null at the end. */
|
|
804
|
+
next_cursor?: string | null;
|
|
805
|
+
/** false only when the candidate feed is exhausted. */
|
|
806
|
+
has_more?: boolean;
|
|
807
|
+
/** Present when a filter was applied after the candidate fetch. */
|
|
808
|
+
scan?: FeedScanInfo;
|
|
809
|
+
/** Poll cursor — pass as `since` for only-newer rows. */
|
|
810
|
+
next_since?: string | null;
|
|
811
|
+
/** Echo of the `since` parameter. */
|
|
812
|
+
since?: string | null;
|
|
497
813
|
data_age_seconds: number | null;
|
|
814
|
+
/** WebSocket channel (`kol:first_touches`) that pushes the same rows. */
|
|
815
|
+
stream?: TokenFeedStreamPointer;
|
|
498
816
|
_rid?: string;
|
|
499
817
|
}
|
|
500
818
|
export interface FirstTouchSubscriptionFilters {
|
|
@@ -707,6 +1025,11 @@ export interface KolOpenPosition {
|
|
|
707
1025
|
token_name: string;
|
|
708
1026
|
buy_count: number;
|
|
709
1027
|
bought_sol: number;
|
|
1028
|
+
/** Current value of the remaining position, SOL (0 when unpriced — check `is_priced`). */
|
|
1029
|
+
held_value_sol?: number;
|
|
1030
|
+
unrealized_pnl_sol?: number;
|
|
1031
|
+
/** false = no live price for this token, so held_value_sol / unrealized_pnl_sol are not a valuation. */
|
|
1032
|
+
is_priced?: boolean;
|
|
710
1033
|
first_buy_at: string;
|
|
711
1034
|
}
|
|
712
1035
|
export interface KolPnlResponse {
|
|
@@ -755,16 +1078,51 @@ export interface KolTrendingResponse {
|
|
|
755
1078
|
min_kols: number;
|
|
756
1079
|
_rid?: string;
|
|
757
1080
|
}
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
kol_buyers: string[];
|
|
763
|
-
kol_sellers: string[];
|
|
1081
|
+
/** One KOL on `GET /kol/tokens/{mint}` (up to 50, by net flow). SOL figures. */
|
|
1082
|
+
export interface KolTokenKol {
|
|
1083
|
+
name: string;
|
|
1084
|
+
wallet: string;
|
|
764
1085
|
buy_count: number;
|
|
765
1086
|
sell_count: number;
|
|
766
|
-
|
|
767
|
-
|
|
1087
|
+
/** SOL this KOL spent buying the token. */
|
|
1088
|
+
total_bought: number;
|
|
1089
|
+
/** SOL this KOL received selling the token. */
|
|
1090
|
+
total_sold: number;
|
|
1091
|
+
net_sol: number;
|
|
1092
|
+
position: "net_buyer" | "net_seller" | "neutral";
|
|
1093
|
+
first_trade: string;
|
|
1094
|
+
last_trade: string;
|
|
1095
|
+
}
|
|
1096
|
+
/** `GET /kol/tokens/{mint}` — what `client.kol.token()` returns. */
|
|
1097
|
+
export interface KolTokenActivity extends FreeTierDelayMeta {
|
|
1098
|
+
token_mint: string;
|
|
1099
|
+
summary: {
|
|
1100
|
+
kol_count: number;
|
|
1101
|
+
total_bought_sol: number;
|
|
1102
|
+
total_sold_sol: number;
|
|
1103
|
+
net_flow_sol: number;
|
|
1104
|
+
signal: "accumulating" | "distributing";
|
|
1105
|
+
};
|
|
1106
|
+
kols: KolTokenKol[];
|
|
1107
|
+
_rid?: string;
|
|
1108
|
+
/** @deprecated Never sent by the API — use `token_mint`. */
|
|
1109
|
+
mint?: string;
|
|
1110
|
+
/** @deprecated Never sent by the API. */
|
|
1111
|
+
token_name?: string | null;
|
|
1112
|
+
/** @deprecated Never sent by the API. */
|
|
1113
|
+
token_symbol?: string | null;
|
|
1114
|
+
/** @deprecated Never sent by the API — use `kols`. */
|
|
1115
|
+
kol_buyers?: string[];
|
|
1116
|
+
/** @deprecated Never sent by the API — use `kols`. */
|
|
1117
|
+
kol_sellers?: string[];
|
|
1118
|
+
/** @deprecated Never sent by the API. */
|
|
1119
|
+
buy_count?: number;
|
|
1120
|
+
/** @deprecated Never sent by the API. */
|
|
1121
|
+
sell_count?: number;
|
|
1122
|
+
/** @deprecated Never sent by the API — use `summary`. */
|
|
1123
|
+
total_sol_volume?: number;
|
|
1124
|
+
/** @deprecated Never sent by the API. */
|
|
1125
|
+
recent_trades?: KolTrade[];
|
|
768
1126
|
}
|
|
769
1127
|
export interface KolEntryOrderParams {
|
|
770
1128
|
/** Max entries to return (1–100). Default: 50. */
|
|
@@ -841,6 +1199,15 @@ export interface KolCompareResponse {
|
|
|
841
1199
|
profiles: KolCompareProfile[];
|
|
842
1200
|
/** Tokens bought by 2+ of the provided wallets in the last 30d (PRO+ only). */
|
|
843
1201
|
overlap?: KolCompareOverlapToken[];
|
|
1202
|
+
/** `overlap` is the top 25 of `total` qualifying tokens over the full 30 d window; `total: null` = the aggregate failed (unknown, not 0). */
|
|
1203
|
+
overlap_meta?: {
|
|
1204
|
+
window_start: string;
|
|
1205
|
+
min_wallets: number;
|
|
1206
|
+
total: number | null;
|
|
1207
|
+
returned: number;
|
|
1208
|
+
has_more: boolean | null;
|
|
1209
|
+
complete: boolean;
|
|
1210
|
+
};
|
|
844
1211
|
}
|
|
845
1212
|
export type KolAlertType = "consensus_cluster" | "fresh_token_kol_buy" | "heating_up";
|
|
846
1213
|
export type KolAlertWindow = "1h" | "6h" | "24h";
|
|
@@ -909,8 +1276,12 @@ export interface DeployerTokensParams extends PaginationParams {
|
|
|
909
1276
|
export interface DeployerAlertsParams extends PaginationParams {
|
|
910
1277
|
/** ISO 8601 datetime — return alerts since this time. */
|
|
911
1278
|
since?: string;
|
|
912
|
-
/**
|
|
1279
|
+
/** LEGACY cursor — return alerts strictly older than this ISO 8601 timestamp (skips same-timestamp siblings). Prefer `cursor`. */
|
|
913
1280
|
before?: string;
|
|
1281
|
+
/** PREFERRED pagination: `next_cursor` from the previous page — opaque strict (created_at, id) keyset. Not combinable with `before` / `offset`. */
|
|
1282
|
+
cursor?: string;
|
|
1283
|
+
/** Only alerts for this token mint. */
|
|
1284
|
+
token_mint?: string;
|
|
914
1285
|
/** Max results (1–50). Default: 20. */
|
|
915
1286
|
limit?: number;
|
|
916
1287
|
/**
|
|
@@ -956,6 +1327,22 @@ export interface DeployerStats {
|
|
|
956
1327
|
bonds_detected: number;
|
|
957
1328
|
bond_rate: number;
|
|
958
1329
|
tiers: DeployerTierCounts;
|
|
1330
|
+
/** Average market cap (USD) at alert time per tier, last 30 d. Values are null (unknown, never 0) when `mc_at_alert_complete` is false. */
|
|
1331
|
+
avg_mc_at_alert_usd_30d?: {
|
|
1332
|
+
elite: number | null;
|
|
1333
|
+
good: number | null;
|
|
1334
|
+
rising: number | null;
|
|
1335
|
+
} | null;
|
|
1336
|
+
/** Alerts behind each average (every alert in the 30 d window). null when the aggregate failed. */
|
|
1337
|
+
mc_at_alert_samples_30d?: {
|
|
1338
|
+
elite: number | null;
|
|
1339
|
+
good: number | null;
|
|
1340
|
+
rising: number | null;
|
|
1341
|
+
} | null;
|
|
1342
|
+
mc_at_alert_window_start?: string;
|
|
1343
|
+
/** false = the per-tier MC aggregate failed; the two maps above are unknown. */
|
|
1344
|
+
mc_at_alert_complete?: boolean;
|
|
1345
|
+
coverage?: TradeCoverage;
|
|
959
1346
|
_rid?: string;
|
|
960
1347
|
}
|
|
961
1348
|
export interface DeployerSummary {
|
|
@@ -973,6 +1360,10 @@ export interface DeployerSummary {
|
|
|
973
1360
|
/** Confidence denominator; gate on >=3. */
|
|
974
1361
|
labeled_tokens?: number | null;
|
|
975
1362
|
avg_time_to_bond_minutes?: number | null;
|
|
1363
|
+
/** Populated on alert rows. */
|
|
1364
|
+
instant_bonds?: number | null;
|
|
1365
|
+
/** Count of labeled tokens that ran. Populated on alert rows. */
|
|
1366
|
+
runner_tokens?: number | null;
|
|
976
1367
|
}
|
|
977
1368
|
export interface DeployerLeaderboardEntry {
|
|
978
1369
|
id: string;
|
|
@@ -1013,6 +1404,118 @@ export interface DeployerToken {
|
|
|
1013
1404
|
bonded_at: string | null;
|
|
1014
1405
|
peak_market_cap_usd: number | null;
|
|
1015
1406
|
}
|
|
1407
|
+
/** A LaunchLab (bonk) / bags token from our own DB on GET /deployer-hunter/{wallet}. */
|
|
1408
|
+
export interface DeployerLaunchpadToken {
|
|
1409
|
+
mint: string;
|
|
1410
|
+
name: string | null;
|
|
1411
|
+
symbol: string | null;
|
|
1412
|
+
/** e.g. "launchlab" (bonk) | "bags". */
|
|
1413
|
+
launchpad: string;
|
|
1414
|
+
/** Graduated / bonded. */
|
|
1415
|
+
complete: boolean;
|
|
1416
|
+
deployed_at: string;
|
|
1417
|
+
bonded_at: string | null;
|
|
1418
|
+
peak_market_cap: number | null;
|
|
1419
|
+
}
|
|
1420
|
+
/**
|
|
1421
|
+
* One entry of `pump_tokens` on `GET /deployer-hunter/{wallet}` — passed through
|
|
1422
|
+
* from the live pump.fun API, so every field is optional and the object may carry
|
|
1423
|
+
* more keys than listed here.
|
|
1424
|
+
*/
|
|
1425
|
+
export interface DeployerPumpToken {
|
|
1426
|
+
mint?: string;
|
|
1427
|
+
name?: string;
|
|
1428
|
+
symbol?: string;
|
|
1429
|
+
image_uri?: string;
|
|
1430
|
+
creator?: string;
|
|
1431
|
+
/** Unix ms. */
|
|
1432
|
+
created_timestamp?: number;
|
|
1433
|
+
/** Bonded / graduated. */
|
|
1434
|
+
complete?: boolean;
|
|
1435
|
+
ath_market_cap?: number;
|
|
1436
|
+
usd_market_cap?: number;
|
|
1437
|
+
market_cap?: number;
|
|
1438
|
+
reply_count?: number;
|
|
1439
|
+
pool_address?: string;
|
|
1440
|
+
pump_swap_pool?: string;
|
|
1441
|
+
[key: string]: unknown;
|
|
1442
|
+
}
|
|
1443
|
+
/** One token row of `GET /deployer-hunter/{wallet}/tokens`. */
|
|
1444
|
+
export interface DeployerTokenRow {
|
|
1445
|
+
id: string;
|
|
1446
|
+
token_mint: string;
|
|
1447
|
+
token_name: string | null;
|
|
1448
|
+
token_symbol: string | null;
|
|
1449
|
+
deployed_at: string;
|
|
1450
|
+
bonded_at: string | null;
|
|
1451
|
+
time_to_bond_minutes: number | null;
|
|
1452
|
+
peak_market_cap: number | null;
|
|
1453
|
+
mc_at_bond: number | null;
|
|
1454
|
+
market_cap_at_alert: number | null;
|
|
1455
|
+
alerted_at: string | null;
|
|
1456
|
+
/** create → migrate within ~90 s (curve filled by a bundle). */
|
|
1457
|
+
instant_bond: boolean;
|
|
1458
|
+
}
|
|
1459
|
+
/** The `deployers` row inside {@link DeployerProfileResponse}. */
|
|
1460
|
+
export interface DeployerProfileRow {
|
|
1461
|
+
id: string;
|
|
1462
|
+
wallet_address: string;
|
|
1463
|
+
total_tokens_deployed: number;
|
|
1464
|
+
total_bonded: number;
|
|
1465
|
+
instant_bonds: number | null;
|
|
1466
|
+
bonding_rate: number | null;
|
|
1467
|
+
recent_bond_rate: number | null;
|
|
1468
|
+
tier: DeployerTier | null;
|
|
1469
|
+
is_tracked: boolean;
|
|
1470
|
+
avg_time_to_bond_minutes: number | null;
|
|
1471
|
+
best_token_peak_mc: number | null;
|
|
1472
|
+
avg_peak_mc: number | null;
|
|
1473
|
+
recent_outcomes: unknown;
|
|
1474
|
+
/** Fraction of labeled tokens that ran (peak ≥ 60 min). Gate on `labeled_tokens` ≥ 3. */
|
|
1475
|
+
runner_rate: number | null;
|
|
1476
|
+
runner_tokens: number | null;
|
|
1477
|
+
labeled_tokens: number | null;
|
|
1478
|
+
post_bond_survival_rate: number | null;
|
|
1479
|
+
post_bond_2x_rate: number | null;
|
|
1480
|
+
post_bond_labeled_count: number | null;
|
|
1481
|
+
first_seen_at: string | null;
|
|
1482
|
+
last_deploy_at: string | null;
|
|
1483
|
+
last_bond_at: string | null;
|
|
1484
|
+
label: string | null;
|
|
1485
|
+
}
|
|
1486
|
+
/**
|
|
1487
|
+
* `GET /deployer-hunter/{wallet}` — what `client.deployer.profile()` returns.
|
|
1488
|
+
* The route has always nested the deployer row under `deployer` (null with
|
|
1489
|
+
* `is_deployer: false` for an untracked wallet); the earlier flat
|
|
1490
|
+
* {@link DeployerProfile} return type described fields that were undefined at runtime.
|
|
1491
|
+
*/
|
|
1492
|
+
export interface DeployerProfileResponse {
|
|
1493
|
+
is_deployer: boolean;
|
|
1494
|
+
/** Only on the `is_deployer: false` answer. */
|
|
1495
|
+
wallet?: string;
|
|
1496
|
+
deployer: DeployerProfileRow | null;
|
|
1497
|
+
/** Aggregated from the live pump.fun API (not our DB); null when not a deployer. */
|
|
1498
|
+
pump_stats: {
|
|
1499
|
+
total: number;
|
|
1500
|
+
bonded: number;
|
|
1501
|
+
bondingRate: number;
|
|
1502
|
+
bestAthMc: number;
|
|
1503
|
+
avgAthMc: number;
|
|
1504
|
+
} | null;
|
|
1505
|
+
/** Raw pump.fun API token list (pump.fun-launched tokens only). */
|
|
1506
|
+
pump_tokens: DeployerPumpToken[];
|
|
1507
|
+
/** true when the pump.fun API read failed (pump_tokens is then empty); null on the not-a-deployer answer. */
|
|
1508
|
+
pump_error: boolean | null;
|
|
1509
|
+
/** Our own LaunchLab/bonk + bags tokens for this deployer. */
|
|
1510
|
+
launchpad_tokens: DeployerLaunchpadToken[];
|
|
1511
|
+
/** PRO+ funding evidence; absent below PRO or when the feature is off. */
|
|
1512
|
+
funding?: Record<string, unknown>;
|
|
1513
|
+
funding_features?: Record<string, unknown>;
|
|
1514
|
+
/** PRO+ capital intelligence; absent when disabled. */
|
|
1515
|
+
capital_intelligence?: Record<string, unknown>;
|
|
1516
|
+
_rid?: string;
|
|
1517
|
+
}
|
|
1518
|
+
/** @deprecated Not what GET /deployer-hunter/{wallet} returns — use {@link DeployerProfileResponse}. Kept for source compatibility. */
|
|
1016
1519
|
export interface DeployerProfile {
|
|
1017
1520
|
wallet: string;
|
|
1018
1521
|
tier: DeployerTier;
|
|
@@ -1029,15 +1532,26 @@ export interface DeployerProfile {
|
|
|
1029
1532
|
avg_time_to_bond_minutes?: number | null;
|
|
1030
1533
|
tokens?: DeployerToken[] | null;
|
|
1031
1534
|
}
|
|
1535
|
+
/** `GET /deployer-hunter/{wallet}/tokens` — what `client.deployer.tokens()` returns. */
|
|
1032
1536
|
export interface DeployerTokensResponse {
|
|
1033
|
-
tokens:
|
|
1034
|
-
count: number;
|
|
1537
|
+
tokens: DeployerTokenRow[];
|
|
1035
1538
|
total: number;
|
|
1539
|
+
limit: number;
|
|
1540
|
+
offset: number;
|
|
1541
|
+
has_more: boolean;
|
|
1542
|
+
/** Only on the untracked-wallet answer (`is_deployer: false`, empty `tokens`). */
|
|
1543
|
+
is_deployer?: boolean;
|
|
1544
|
+
wallet?: string;
|
|
1545
|
+
coverage?: TradeCoverage;
|
|
1546
|
+
_rid?: string;
|
|
1547
|
+
/** @deprecated Never sent by the API — use `tokens.length`. */
|
|
1548
|
+
count?: number;
|
|
1036
1549
|
}
|
|
1037
1550
|
export interface KolBuysSummary {
|
|
1038
1551
|
count: number;
|
|
1039
1552
|
total_sol: number;
|
|
1040
|
-
|
|
1553
|
+
/** KOLs that bought. */
|
|
1554
|
+
kols: string[];
|
|
1041
1555
|
}
|
|
1042
1556
|
export interface DeployerAlert {
|
|
1043
1557
|
id: string;
|
|
@@ -1052,15 +1566,25 @@ export interface DeployerAlert {
|
|
|
1052
1566
|
market_cap_at_alert?: number | null;
|
|
1053
1567
|
/** Deployer wallet's SOL balance at alert time, in SOL. Null when unknown. */
|
|
1054
1568
|
deployer_sol_balance?: number | null;
|
|
1569
|
+
/** Launchpad the token was deployed on. */
|
|
1570
|
+
launchpad?: string | null;
|
|
1055
1571
|
deployers: DeployerSummary;
|
|
1056
1572
|
kol_buys?: KolBuysSummary | null;
|
|
1057
1573
|
}
|
|
1058
|
-
export interface DeployerAlertsResponse {
|
|
1574
|
+
export interface DeployerAlertsResponse extends FreeTierDelayMeta {
|
|
1059
1575
|
alerts: DeployerAlert[];
|
|
1060
1576
|
limit: number;
|
|
1061
1577
|
offset: number;
|
|
1062
|
-
/**
|
|
1578
|
+
/** LEGACY strict timestamp cursor — pass as `before`. Prefer `next_cursor`. */
|
|
1063
1579
|
next_before?: string | null;
|
|
1580
|
+
/** Pass as `cursor` for the next (older) page; null at the end. */
|
|
1581
|
+
next_cursor?: string | null;
|
|
1582
|
+
/** false only when the candidate feed is exhausted. */
|
|
1583
|
+
has_more?: boolean;
|
|
1584
|
+
/** false only if kol_buys could not be aggregated exactly (counts are then lower bounds). */
|
|
1585
|
+
kol_buys_complete?: boolean;
|
|
1586
|
+
/** Present with min_kol_buys. */
|
|
1587
|
+
scan?: FeedScanInfo;
|
|
1064
1588
|
data_age_seconds?: number | null;
|
|
1065
1589
|
_rid?: string;
|
|
1066
1590
|
}
|
|
@@ -1090,6 +1614,10 @@ export interface DeployerAlertStats {
|
|
|
1090
1614
|
multiplier: MultiplierStats;
|
|
1091
1615
|
tiers: Record<string, TierStats>;
|
|
1092
1616
|
period: string;
|
|
1617
|
+
/** Rows the multiplier/tier aggregates were computed over. */
|
|
1618
|
+
sampled_rows?: number;
|
|
1619
|
+
/** true = the population exceeded the internal row cap; the aggregates are a sample. */
|
|
1620
|
+
truncated?: boolean;
|
|
1093
1621
|
_rid?: string;
|
|
1094
1622
|
}
|
|
1095
1623
|
export interface BestToken {
|
|
@@ -1124,6 +1652,8 @@ export interface RecentBond {
|
|
|
1124
1652
|
time_to_bond_minutes?: number | null;
|
|
1125
1653
|
peak_market_cap?: number | null;
|
|
1126
1654
|
mc_at_bond?: number | null;
|
|
1655
|
+
/** create → migrate within ~90 s (curve filled by a bundle). */
|
|
1656
|
+
instant_bond?: boolean;
|
|
1127
1657
|
deployers: DeployerSummary;
|
|
1128
1658
|
}
|
|
1129
1659
|
export interface RecentBondsResponse {
|
|
@@ -1384,12 +1914,23 @@ export interface AlphaWalletResponse {
|
|
|
1384
1914
|
export interface AlphaLinkedWallet {
|
|
1385
1915
|
wallet_address: string;
|
|
1386
1916
|
shared_tokens: number;
|
|
1917
|
+
/** Average seconds between the two wallets' trades on shared tokens. */
|
|
1918
|
+
avg_time_diff_secs: number;
|
|
1919
|
+
/** Average SOL-size difference between paired trades. */
|
|
1920
|
+
avg_sol_diff: number;
|
|
1387
1921
|
similarity_score: number;
|
|
1388
1922
|
}
|
|
1923
|
+
/** `GET /alpha/{wallet}/linked`. */
|
|
1389
1924
|
export interface AlphaLinkedResponse {
|
|
1390
1925
|
wallet: string;
|
|
1391
|
-
|
|
1392
|
-
|
|
1926
|
+
/** Most similar co-trading wallets. */
|
|
1927
|
+
linked: AlphaLinkedWallet[];
|
|
1928
|
+
coverage?: TradeCoverage;
|
|
1929
|
+
_rid?: string;
|
|
1930
|
+
/** @deprecated Never sent by the API — the list is `linked`. */
|
|
1931
|
+
linked_wallets?: AlphaLinkedWallet[];
|
|
1932
|
+
/** @deprecated Never sent by the API — use `linked.length`. */
|
|
1933
|
+
total?: number;
|
|
1393
1934
|
}
|
|
1394
1935
|
export interface AlphaCapTableBuyer {
|
|
1395
1936
|
rank: number;
|
|
@@ -1448,6 +1989,23 @@ export interface AlphaBuyerQualityResponse {
|
|
|
1448
1989
|
cached_at: string;
|
|
1449
1990
|
/** Returned on all tiers. */
|
|
1450
1991
|
breakdown?: AlphaBuyerQualityBreakdown;
|
|
1992
|
+
/** Present only when breakdown.dump_cluster_count ≥ 1 and the daily signal-performance snapshot has a bucket for it. */
|
|
1993
|
+
signal_stats?: {
|
|
1994
|
+
dump_cluster_count: {
|
|
1995
|
+
value: number;
|
|
1996
|
+
/** "k>=1" | "k>=3" | "k>=5" */
|
|
1997
|
+
bucket: string;
|
|
1998
|
+
/** "dump" | "runner" */
|
|
1999
|
+
outcome: string;
|
|
2000
|
+
hit_rate: number;
|
|
2001
|
+
base_rate: number;
|
|
2002
|
+
lift: number;
|
|
2003
|
+
sample_n: number;
|
|
2004
|
+
window_days: number;
|
|
2005
|
+
as_of: string;
|
|
2006
|
+
summary: string;
|
|
2007
|
+
};
|
|
2008
|
+
};
|
|
1451
2009
|
note?: string;
|
|
1452
2010
|
/** v2.22.4 — trade-coverage disclosure (additive; absent on older cached responses). */
|
|
1453
2011
|
coverage?: TradeCoverage;
|
|
@@ -1559,13 +2117,27 @@ export interface TokenRiskResponse {
|
|
|
1559
2117
|
* names the split: trade-derived sub-fields are launchpad-pipeline scoped,
|
|
1560
2118
|
* on-chain sub-fields are unaffected by trade coverage. */
|
|
1561
2119
|
coverage?: TradeCoverage;
|
|
2120
|
+
/** Deploy-row lookup status behind `dev`: ok | not_found (no deploy row) | unavailable (lookup failed — `dev` is unknown, not absent). */
|
|
2121
|
+
dev_status?: "ok" | "not_found" | "unavailable";
|
|
2122
|
+
/** Single-mint `/risk` only: present when you passed a POOL address and the answer is for its token mint. */
|
|
2123
|
+
resolved_from?: {
|
|
2124
|
+
address: string;
|
|
2125
|
+
kind: "pool";
|
|
2126
|
+
dex: string;
|
|
2127
|
+
source: string;
|
|
2128
|
+
};
|
|
1562
2129
|
}
|
|
1563
2130
|
/** Per-mint error entry in a batch-risk response. Untracked mints come back as
|
|
1564
|
-
* `"not_tracked"`; a per-mint scoring failure comes back as `"error"
|
|
1565
|
-
*
|
|
2131
|
+
* `"not_tracked"`; a per-mint scoring failure comes back as `"error"`;
|
|
2132
|
+
* `"unavailable"` = a score-critical input could not be read (retry — never a
|
|
2133
|
+
* partial score). None of them fails the batch. */
|
|
1566
2134
|
export interface TokenRiskBatchError {
|
|
1567
2135
|
mint: string;
|
|
1568
|
-
error: "not_tracked" | "error";
|
|
2136
|
+
error: "not_tracked" | "error" | "unavailable";
|
|
2137
|
+
code?: "risk_inputs_unavailable";
|
|
2138
|
+
/** Which score-critical inputs could not be read (with `error: "unavailable"`). */
|
|
2139
|
+
unavailable_inputs?: string[];
|
|
2140
|
+
retryable?: boolean;
|
|
1569
2141
|
}
|
|
1570
2142
|
/** One entry in `TokenRiskBatchResponse.tokens` — either a full risk result
|
|
1571
2143
|
* (same shape as `alpha.risk(mint)`, plus `as_of`) or a per-mint error stub.
|
|
@@ -1831,10 +2403,42 @@ export interface TokenLockNextUnlock {
|
|
|
1831
2403
|
* ui (`amount`, `locked`, …), `*_usd` and `*_pct_of_supply` fields are null when
|
|
1832
2404
|
* decimals / price are unknown.
|
|
1833
2405
|
*/
|
|
2406
|
+
/**
|
|
2407
|
+
* Who runs the lock contract, and how sure the server is (server 2026-10-02).
|
|
2408
|
+
* `verified` = a known provider deployment (Streamflow / Jupiter Lock / Bonfida,
|
|
2409
|
+
* identified by program id); `compatible` = only the instruction/event shape
|
|
2410
|
+
* matches a known provider (`compatible_with`), the operator is NOT identified;
|
|
2411
|
+
* `unverified` = unknown program. `id` / `website_url` are null unless verified.
|
|
2412
|
+
* `lock_url` is a per-lock page on the provider site, set ONLY where its
|
|
2413
|
+
* format is proven — for the Solana providers it is always null (never guessed).
|
|
2414
|
+
*/
|
|
2415
|
+
export interface TokenLockProvider {
|
|
2416
|
+
id: string | null;
|
|
2417
|
+
name: string | null;
|
|
2418
|
+
identity: "verified" | "compatible" | "unverified";
|
|
2419
|
+
compatible_with: string | null;
|
|
2420
|
+
website_url: string | null;
|
|
2421
|
+
lock_url: string | null;
|
|
2422
|
+
}
|
|
2423
|
+
/** Independent on-chain evidence on Solana Explorer (server 2026-10-02). */
|
|
2424
|
+
export interface TokenLockExplorer {
|
|
2425
|
+
lock_account_url: string | null;
|
|
2426
|
+
creation_tx_url: string | null;
|
|
2427
|
+
}
|
|
2428
|
+
/** One Bonfida vesting tranche (`TokenLock.schedule`). */
|
|
2429
|
+
export interface TokenLockTranche {
|
|
2430
|
+
release_at: string | null;
|
|
2431
|
+
/** Base units as a decimal string. */
|
|
2432
|
+
amount_raw: string;
|
|
2433
|
+
}
|
|
1834
2434
|
export interface TokenLock {
|
|
1835
2435
|
/** The contract account (Streamflow stream / Jupiter VestingEscrow / Bonfida vesting account). */
|
|
1836
2436
|
lock_account: string;
|
|
1837
2437
|
program: TokenLockProgram;
|
|
2438
|
+
/** Server 2026-10-02 — who runs the locker and how sure we are; see {@link TokenLockProvider}. Absent on older servers. */
|
|
2439
|
+
provider?: TokenLockProvider;
|
|
2440
|
+
/** Server 2026-10-02 — Solana Explorer links for the lock account and the creation tx. */
|
|
2441
|
+
explorer?: TokenLockExplorer;
|
|
1838
2442
|
kind: TokenLockKind;
|
|
1839
2443
|
status: TokenLockStatus;
|
|
1840
2444
|
mint: string;
|
|
@@ -1846,6 +2450,9 @@ export interface TokenLock {
|
|
|
1846
2450
|
amount_raw: string;
|
|
1847
2451
|
amount: number | null;
|
|
1848
2452
|
amount_usd: number | null;
|
|
2453
|
+
/** Server 2026-10-02 — the token price behind every `*_usd` field (null when unknown, stale or phantom). */
|
|
2454
|
+
price_usd?: number | null;
|
|
2455
|
+
/** % of CURRENT supply; null when unknown or above 100.5 (supply changed since the deposit). */
|
|
1849
2456
|
amount_pct_of_supply: number | null;
|
|
1850
2457
|
/** Still locked right now (amount − unlocked-so-far); "0" unless active. */
|
|
1851
2458
|
locked_raw: string;
|
|
@@ -1864,6 +2471,10 @@ export interface TokenLock {
|
|
|
1864
2471
|
cliff_at: string | null;
|
|
1865
2472
|
/** Fully unlocked at; null = perpetual / no schedule. */
|
|
1866
2473
|
end_at: string | null;
|
|
2474
|
+
/** Server 2026-10-02 — seconds until fully unlocked (>= 0); 0 once completed; null when perpetual or cancelled / closed. */
|
|
2475
|
+
seconds_until_end?: number | null;
|
|
2476
|
+
/** Server 2026-10-02 — seconds until `next_unlock.at` (>= 0); null without a next unlock. */
|
|
2477
|
+
seconds_until_next_unlock?: number | null;
|
|
1867
2478
|
period_seconds: number | null;
|
|
1868
2479
|
/** period < 1h (per-second stream, e.g. Streamflow payroll). */
|
|
1869
2480
|
continuous: boolean;
|
|
@@ -1873,6 +2484,8 @@ export interface TokenLock {
|
|
|
1873
2484
|
cliff_amount: number | null;
|
|
1874
2485
|
perpetual: boolean;
|
|
1875
2486
|
next_unlock: TokenLockNextUnlock | null;
|
|
2487
|
+
/** Bonfida vesting only: the tranche list (absent on other programs). */
|
|
2488
|
+
schedule?: TokenLockTranche[];
|
|
1876
2489
|
/** The locker can cancel — funds are locked against the RECIPIENT, not the locker (a weaker promise). */
|
|
1877
2490
|
cancelable_by_sender: boolean | null;
|
|
1878
2491
|
cancelable_by_recipient: boolean | null;
|
|
@@ -1949,8 +2562,10 @@ export interface TokenLocksResponse {
|
|
|
1949
2562
|
export interface TokenLocksFeedParams {
|
|
1950
2563
|
/** ISO date-time — only contracts created after this instant (use `pagination.next_since`). */
|
|
1951
2564
|
since?: string;
|
|
1952
|
-
/** ISO date-time — page back: only contracts created before this instant (`pagination.next_before`). */
|
|
2565
|
+
/** ISO date-time — page back: only contracts created before this instant (`pagination.next_before`). Legacy and strict: skips same-timestamp siblings — prefer `cursor`. */
|
|
1953
2566
|
before?: string;
|
|
2567
|
+
/** Opaque `pagination.next_cursor` from the previous page: strict (created_at, id) keyset, no repeats, no skips. Not combinable with `before`. */
|
|
2568
|
+
cursor?: string;
|
|
1954
2569
|
mint?: string;
|
|
1955
2570
|
sender?: string;
|
|
1956
2571
|
recipient?: string;
|
|
@@ -1975,6 +2590,13 @@ export interface TokenFeedPagination {
|
|
|
1975
2590
|
next_since: string | null;
|
|
1976
2591
|
/** Pass as `before` to page back. */
|
|
1977
2592
|
next_before: string | null;
|
|
2593
|
+
/** Locks feed — pass as `cursor` to page back without skipping same-timestamp rows; null = end. */
|
|
2594
|
+
next_cursor?: string | null;
|
|
2595
|
+
/** Present when a post-filter (min_usd / min_pct_of_supply / status) was scanned. */
|
|
2596
|
+
post_filtered?: boolean;
|
|
2597
|
+
scanned?: number;
|
|
2598
|
+
scan_truncated?: boolean;
|
|
2599
|
+
scan_budget?: number;
|
|
1978
2600
|
}
|
|
1979
2601
|
/** WebSocket pointer returned by the feed endpoints — the same rows are pushed live on `channel`. */
|
|
1980
2602
|
export interface TokenFeedStreamPointer {
|
|
@@ -1991,6 +2613,8 @@ export interface TokenFeedStreamPointer {
|
|
|
1991
2613
|
export interface TokenLocksFeedResponse {
|
|
1992
2614
|
locks: TokenLockFeedEntry[];
|
|
1993
2615
|
pagination: TokenFeedPagination;
|
|
2616
|
+
/** "mint_facts:<table>" when a per-mint enrichment read failed; those rows' usd/ui/pct are null (unknown) and min_usd / min_pct_of_supply could not be applied to them. */
|
|
2617
|
+
degraded_fields?: string[];
|
|
1994
2618
|
/** Pointer to the `token:locks` WS channel (event `token:lock`). */
|
|
1995
2619
|
stream: TokenFeedStreamPointer;
|
|
1996
2620
|
meta?: Record<string, unknown>;
|
|
@@ -2786,8 +3410,10 @@ export interface TokenSurgeStreamEvent {
|
|
|
2786
3410
|
bonding_progress_pct: number | null;
|
|
2787
3411
|
is_bonded: boolean | null;
|
|
2788
3412
|
tape: TokenSurgeTape;
|
|
2789
|
-
|
|
2790
|
-
|
|
3413
|
+
/** null when the enrichment round-trip failed (`enrichment_available: false`). */
|
|
3414
|
+
kol: TokenSurgeKol | null;
|
|
3415
|
+
/** null when the enrichment round-trip failed (`enrichment_available: false`). */
|
|
3416
|
+
early_buyers: TokenSurgeEarlyBuyers | null;
|
|
2791
3417
|
deployer: TokenSurgeDeployer | null;
|
|
2792
3418
|
/** Flat copies of `deployer.wallet` / `deployer.tier` (what the subscribe filter reads). */
|
|
2793
3419
|
deployer_wallet: string | null;
|
|
@@ -2998,6 +3624,15 @@ export interface CandlesResponse {
|
|
|
2998
3624
|
/** True on ULTRA keys — the net-flow / liquidity fields are populated. */
|
|
2999
3625
|
net_flow_included: boolean;
|
|
3000
3626
|
candles: Candle[];
|
|
3627
|
+
/** true = the page budget ran out before `limit` candles or `from` was reached; `covered_from` is then the oldest instant actually searched. */
|
|
3628
|
+
truncated?: boolean;
|
|
3629
|
+
covered_from?: string;
|
|
3630
|
+
/** Oldest instant your plan may read (PRO: 30 days); null = no plan floor. */
|
|
3631
|
+
history_floor?: string | null;
|
|
3632
|
+
/** true = `from` was moved forward to `history_floor`. */
|
|
3633
|
+
history_clamped?: boolean;
|
|
3634
|
+
/** true = the whole requested window is older than the plan floor (200 with no candles). */
|
|
3635
|
+
history_outside_plan?: boolean;
|
|
3001
3636
|
}
|
|
3002
3637
|
export type TokenFlowWindow = "1h" | "24h";
|
|
3003
3638
|
export interface TokenFlowParams {
|
|
@@ -3092,6 +3727,27 @@ export interface TradeCoverage {
|
|
|
3092
3727
|
/** Present when `in_scope` is `false`/`null` (and always on `/risk`) —
|
|
3093
3728
|
* human-readable explanation of what the coverage gap means. */
|
|
3094
3729
|
note?: string;
|
|
3730
|
+
/** Same value as in_scope: persisted rows exist (presence, not completeness). */
|
|
3731
|
+
data_observed?: boolean | null;
|
|
3732
|
+
/** Does the CURRENT capture gate admit this mint? */
|
|
3733
|
+
eligibility?: TradeEligibility | null;
|
|
3734
|
+
eligibility_basis?: string | null;
|
|
3735
|
+
/** Always "not_verified": rows existing never proves a complete interval. */
|
|
3736
|
+
completeness?: "not_verified";
|
|
3737
|
+
/** Persistence size floor of the stored trade tape (server 2026-09-30). */
|
|
3738
|
+
size_floor?: TradeSizeFloor;
|
|
3739
|
+
}
|
|
3740
|
+
/** Treat unknown future values as "unknown". */
|
|
3741
|
+
export type TradeEligibility = "eligible" | "lapsed" | "excluded" | "unknown" | "admitted_previously" | "not_applicable";
|
|
3742
|
+
/**
|
|
3743
|
+
* The stored trade tape drops buys under `min_sol` SOL (under `min_stable_usd`
|
|
3744
|
+
* when paid in USDC/USDT); sells that RECEIVE SOL are kept at any size. Live
|
|
3745
|
+
* streams, prices, market caps and candles are not subject to it.
|
|
3746
|
+
*/
|
|
3747
|
+
export interface TradeSizeFloor {
|
|
3748
|
+
min_sol: number;
|
|
3749
|
+
min_stable_usd: number;
|
|
3750
|
+
applies_to: string;
|
|
3095
3751
|
}
|
|
3096
3752
|
/** Back-compat alias — the honesty block is no longer trades-specific. */
|
|
3097
3753
|
export type TokenTradesCoverage = TradeCoverage;
|
|
@@ -3381,6 +4037,19 @@ export interface WalletStatsResponse {
|
|
|
3381
4037
|
/** v2.22.4 — trade-coverage disclosure; when `in_scope` is false an empty
|
|
3382
4038
|
* `stats` block means "outside the write-gate", not "never traded". */
|
|
3383
4039
|
coverage?: TradeCoverage;
|
|
4040
|
+
/**
|
|
4041
|
+
* Server 2026-10-01 — present (`true`) only when the 90-day aggregation
|
|
4042
|
+
* failed: `stats: null` is then UNKNOWN, not an inactive wallet.
|
|
4043
|
+
*/
|
|
4044
|
+
stats_unavailable?: boolean;
|
|
4045
|
+
/** Present (`true`) only when one or more enrichment queries failed; see `degraded_fields`. */
|
|
4046
|
+
enrichment_unavailable?: boolean;
|
|
4047
|
+
/**
|
|
4048
|
+
* Enrichment blocks whose query failed (e.g. a database timeout). Their
|
|
4049
|
+
* `null` / `[]` is UNKNOWN, not "no data"; retry later. `biggest_miss`
|
|
4050
|
+
* refers to `derived.biggest_miss`.
|
|
4051
|
+
*/
|
|
4052
|
+
degraded_fields?: Array<"top_tokens" | "trading_style" | "deployer_breakdown" | "recent_trades" | "biggest_miss" | (string & {})>;
|
|
3384
4053
|
_rid?: string;
|
|
3385
4054
|
}
|
|
3386
4055
|
export interface WalletPnlSummary {
|
|
@@ -3468,6 +4137,12 @@ export interface WalletPnlResponse {
|
|
|
3468
4137
|
computed_at?: string;
|
|
3469
4138
|
/** Only present on cache misses — TTL for this row in wallet_analyses. */
|
|
3470
4139
|
ttl_seconds?: number;
|
|
4140
|
+
/** Seconds since `computed_at` (source age survives a cache hit). */
|
|
4141
|
+
cache_age_seconds?: number;
|
|
4142
|
+
/** Cache hits: head_checked (no newer trade) | unverified (the check failed). */
|
|
4143
|
+
cache_validation?: "head_checked" | "unverified";
|
|
4144
|
+
/** A cache row existed but the wallet traded since; this response was recomputed. */
|
|
4145
|
+
cache_invalidated?: "new_activity";
|
|
3471
4146
|
/** v2.22.4 — trade-coverage disclosure; `in_scope: false` means the PnL is
|
|
3472
4147
|
* built from zero covered trades, not that the wallet never traded. */
|
|
3473
4148
|
coverage?: TradeCoverage;
|
|
@@ -3479,6 +4154,12 @@ export interface WalletPositionsResponse {
|
|
|
3479
4154
|
cache_hit?: boolean;
|
|
3480
4155
|
computed_at?: string | null;
|
|
3481
4156
|
ttl_seconds?: number | null;
|
|
4157
|
+
/** Seconds since `computed_at` (source age survives a cache hit). */
|
|
4158
|
+
cache_age_seconds?: number;
|
|
4159
|
+
/** Cache hits: head_checked (no newer trade) | unverified (the check failed). */
|
|
4160
|
+
cache_validation?: "head_checked" | "unverified";
|
|
4161
|
+
/** A cache row existed but the wallet traded since; this response was recomputed. */
|
|
4162
|
+
cache_invalidated?: "new_activity";
|
|
3482
4163
|
/** v2.22.4 — trade-coverage disclosure (additive). */
|
|
3483
4164
|
coverage?: TradeCoverage;
|
|
3484
4165
|
_rid?: string;
|
|
@@ -3646,14 +4327,64 @@ export interface TokenResponseBody {
|
|
|
3646
4327
|
launch_cohort_sol?: number | null;
|
|
3647
4328
|
/** Count of distinct first-20 buyers (0–20). */
|
|
3648
4329
|
launch_cohort_size?: number;
|
|
4330
|
+
/** Volume-weighted price over recent trades; null when there are none. */
|
|
4331
|
+
vwap_price_usd?: number | null;
|
|
4332
|
+
vwap_price_sol?: number | null;
|
|
4333
|
+
/** Address of the pool the headline price comes from; null when unknown. */
|
|
4334
|
+
primary_pool_address?: string | null;
|
|
4335
|
+
/** Which writer produced the selected price; null when there is no price. */
|
|
4336
|
+
price_source?: "mc_tracker" | "dex_stream" | null;
|
|
4337
|
+
/** Observation time of the selected price (the price-age anchor — not `last_trade_at`). */
|
|
4338
|
+
price_observed_at?: string | null;
|
|
4339
|
+
/** null = a price exists but its age is unknown (never a false "fresh"). */
|
|
4340
|
+
price_is_stale?: boolean | null;
|
|
4341
|
+
price_age_seconds?: number | null;
|
|
4342
|
+
/** Why `deployer` is null: unknown creator vs a failed lookup. */
|
|
4343
|
+
deployer_identity?: {
|
|
4344
|
+
identity_status: "resolved" | "unknown" | "lookup_failed";
|
|
4345
|
+
history_status: DeployerHistoryStatus | null;
|
|
4346
|
+
address: string | null;
|
|
4347
|
+
source: "deployer_tokens" | "pending_deploys" | null;
|
|
4348
|
+
};
|
|
4349
|
+
/** A token-SUPPLY burn was observed (mint supply decreased) — not LP evidence. null = unknown. */
|
|
4350
|
+
token_supply_burn_detected?: boolean | null;
|
|
4351
|
+
/** LP-burn evidence. Only "verified" means the LP was proven burnt. */
|
|
4352
|
+
lp_burn_status?: LpBurnStatus;
|
|
4353
|
+
}
|
|
4354
|
+
/** LP-burn evidence: only "verified" means proven; "unknown" is the honest default. */
|
|
4355
|
+
export type LpBurnStatus = "verified" | "not_verified" | "unknown";
|
|
4356
|
+
/** Creator-history label on `deployer_identity`. "unranked" tier is NOT "new". */
|
|
4357
|
+
export type DeployerHistoryStatus = "new_in_our_index" | "limited_history" | "reputation_pending" | "established";
|
|
4358
|
+
/** Includes accepted by `client.token.get(mint, { include })`. */
|
|
4359
|
+
export type TokenInclude = "buyer_quality" | "deployer";
|
|
4360
|
+
export interface TokenGetParams {
|
|
4361
|
+
/** Comma-separated or array: `buyer_quality` embeds the `/tokens/{mint}/buyer-quality` body, `deployer` embeds `/deployer-hunter/{deployer}` as `deployer_profile`. One call; each include keeps its own tier gate. */
|
|
4362
|
+
include?: TokenInclude | TokenInclude[] | string;
|
|
3649
4363
|
}
|
|
3650
4364
|
export interface TokenResponse {
|
|
3651
4365
|
token: TokenResponseBody;
|
|
4366
|
+
/** Response assembly time; NOT the observation time of any field. */
|
|
4367
|
+
as_of?: string;
|
|
4368
|
+
/** Present with `include: "buyer_quality"` — the `/tokens/{mint}/buyer-quality` body. */
|
|
4369
|
+
buyer_quality?: AlphaBuyerQualityResponse;
|
|
4370
|
+
/** Present with `include: "deployer"` — the `/deployer-hunter/{wallet}` body. */
|
|
4371
|
+
deployer_profile?: DeployerProfileResponse;
|
|
4372
|
+
/** Per-include errors (a failing include never fails the request). */
|
|
4373
|
+
include_errors?: Record<string, {
|
|
4374
|
+
status: number;
|
|
4375
|
+
error?: string;
|
|
4376
|
+
[k: string]: unknown;
|
|
4377
|
+
}>;
|
|
4378
|
+
/** Includes that were requested. */
|
|
4379
|
+
included?: string[];
|
|
3652
4380
|
_rid?: string;
|
|
3653
4381
|
}
|
|
3654
4382
|
export interface TokenBatchResponse {
|
|
3655
4383
|
tokens: TokenResponseBody[];
|
|
3656
4384
|
count: number;
|
|
4385
|
+
as_of?: string;
|
|
4386
|
+
/** Fields that could not be read for this batch (null in every row, never defaults). */
|
|
4387
|
+
degraded_fields?: string[];
|
|
3657
4388
|
_rid?: string;
|
|
3658
4389
|
}
|
|
3659
4390
|
export type TokenListSort = "mc_desc" | "mc_asc" | "last_trade_desc" | "liquidity_desc" | "cumulative_volume_desc" | "mc_change_5m_desc" | "mc_change_1h_desc" | "volume_1h_desc" | "trending";
|
|
@@ -3684,6 +4415,10 @@ export interface TokenListParams {
|
|
|
3684
4415
|
min_liq_mc_ratio?: number;
|
|
3685
4416
|
/** Filter by maximum liquidity_to_mc_ratio. */
|
|
3686
4417
|
max_liq_mc_ratio?: number;
|
|
4418
|
+
/** Token-SUPPLY burn observed (what `lp_burned` used to filter on). */
|
|
4419
|
+
supply_burn?: boolean;
|
|
4420
|
+
/** @deprecated Matches VERIFIED LP evidence only (nothing today) — use `lp_burn_status` per token or `supply_burn`. Sending it adds a `deprecations` entry. */
|
|
4421
|
+
lp_burned?: boolean;
|
|
3687
4422
|
/** Filter by deployer tier. */
|
|
3688
4423
|
deployer_tier?: "elite" | "good" | "moderate" | "rising" | "cold" | "unranked";
|
|
3689
4424
|
}
|
|
@@ -3708,6 +4443,20 @@ export interface TokenSummary {
|
|
|
3708
4443
|
liquidity_to_mc_ratio?: number | null;
|
|
3709
4444
|
/** Deployer Hunter tier for this token's deployer wallet. */
|
|
3710
4445
|
deployer_tier?: string | null;
|
|
4446
|
+
launchpad?: string | null;
|
|
4447
|
+
/** VERIFIED LP evidence only; null = unknown (the honest answer for nearly every token today). */
|
|
4448
|
+
lp_burned?: boolean | null;
|
|
4449
|
+
lp_burn_status?: LpBurnStatus;
|
|
4450
|
+
/** Token-SUPPLY burn observed (not LP evidence); null = unknown. */
|
|
4451
|
+
token_supply_burn_detected?: boolean | null;
|
|
4452
|
+
}
|
|
4453
|
+
/** Disclosure for a deprecated `/tokens` parameter that was sent. */
|
|
4454
|
+
export interface TokensDeprecation {
|
|
4455
|
+
param: string;
|
|
4456
|
+
status: "deprecated";
|
|
4457
|
+
/** Exactly what the parameter matches today. */
|
|
4458
|
+
matches: string;
|
|
4459
|
+
replacement: string;
|
|
3711
4460
|
}
|
|
3712
4461
|
export interface TokenListResponse {
|
|
3713
4462
|
tokens: TokenSummary[];
|
|
@@ -3720,6 +4469,8 @@ export interface TokenListResponse {
|
|
|
3720
4469
|
post_filtered: boolean;
|
|
3721
4470
|
};
|
|
3722
4471
|
filters: Record<string, unknown>;
|
|
4472
|
+
/** Present only when a deprecated parameter (today: `lp_burned`) was sent. */
|
|
4473
|
+
deprecations?: TokensDeprecation[];
|
|
3723
4474
|
_rid?: string;
|
|
3724
4475
|
}
|
|
3725
4476
|
export type AlmostBondedSort = "velocity_desc" | "progress_desc" | "eta_asc";
|
|
@@ -3769,7 +4520,7 @@ export interface AlmostBondedResponse {
|
|
|
3769
4520
|
note: string;
|
|
3770
4521
|
_rid?: string;
|
|
3771
4522
|
}
|
|
3772
|
-
export type ApiTier = "BASIC" | "TRADER" | "PRO" | "ULTRA";
|
|
4523
|
+
export type ApiTier = "BASIC" | "TRADER" | "PRO" | "ULTRA" | "BUSINESS" | "ENTERPRISE";
|
|
3773
4524
|
export interface MeQuotaWindow {
|
|
3774
4525
|
limit: number;
|
|
3775
4526
|
used: number;
|
|
@@ -3844,11 +4595,15 @@ export interface WalletEntry {
|
|
|
3844
4595
|
label: string | null;
|
|
3845
4596
|
added_at: string;
|
|
3846
4597
|
}
|
|
4598
|
+
/** POST /wallet-tracker/watchlist (201) — the inserted row under `wallet`. */
|
|
3847
4599
|
export interface WatchlistAddResponse {
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
4600
|
+
wallet: WalletEntry;
|
|
4601
|
+
_rid?: string;
|
|
4602
|
+
}
|
|
4603
|
+
/** PATCH /wallet-tracker/watchlist/{address} — the updated row under `wallet`. */
|
|
4604
|
+
export interface WatchlistUpdateResponse {
|
|
4605
|
+
wallet: WalletEntry;
|
|
4606
|
+
_rid?: string;
|
|
3852
4607
|
}
|
|
3853
4608
|
export interface WatchlistResponse {
|
|
3854
4609
|
wallets: WalletEntry[];
|
|
@@ -3858,25 +4613,38 @@ export interface WatchlistResponse {
|
|
|
3858
4613
|
_rid?: string;
|
|
3859
4614
|
}
|
|
3860
4615
|
export interface WalletTrackerEvent {
|
|
3861
|
-
id: string;
|
|
3862
4616
|
wallet_address: string;
|
|
3863
4617
|
label: string | null;
|
|
3864
4618
|
event_type: WalletTrackerEventType;
|
|
3865
|
-
|
|
3866
|
-
|
|
4619
|
+
/** `buy` / `sell` on swaps, `null` on transfers. */
|
|
4620
|
+
action: WalletTrackerAction | null;
|
|
4621
|
+
/** Unix seconds on the tracker's INGEST clock, not chain time. Use `slot` for chain order. */
|
|
3867
4622
|
block_time: number;
|
|
3868
|
-
/**
|
|
3869
|
-
|
|
4623
|
+
/** On-chain slot; null on rows written before slot tracking existed. */
|
|
4624
|
+
slot: number | null;
|
|
4625
|
+
/** true when the row arrived through a replay (reconnect/restart recovery), not live delivery. */
|
|
4626
|
+
replayed: boolean;
|
|
4627
|
+
/** ISO 8601 form of `block_time` (ingest time). */
|
|
4628
|
+
ingested_at: string;
|
|
4629
|
+
/** Alias of `ingested_at`, kept for older consumers. It never meant chain time. */
|
|
4630
|
+
timestamp: string;
|
|
3870
4631
|
token_mint: string | null;
|
|
3871
4632
|
token_symbol: string | null;
|
|
3872
4633
|
token_name: string | null;
|
|
3873
|
-
sol_amount: number;
|
|
4634
|
+
sol_amount: number | null;
|
|
3874
4635
|
token_amount: number | null;
|
|
3875
|
-
|
|
3876
|
-
counterparty
|
|
4636
|
+
/** Present only when a counterparty was matched. */
|
|
4637
|
+
counterparty?: string | null;
|
|
3877
4638
|
/** Transaction signature — BASIC tier: null. */
|
|
3878
4639
|
tx_signature: string | null;
|
|
3879
|
-
|
|
4640
|
+
/** @deprecated Never sent by the API. */
|
|
4641
|
+
id?: string;
|
|
4642
|
+
/** @deprecated Never sent by the API — use `ingested_at`. */
|
|
4643
|
+
block_time_iso?: string;
|
|
4644
|
+
/** @deprecated Never sent by the API. */
|
|
4645
|
+
price_per_token_sol?: number | null;
|
|
4646
|
+
/** @deprecated Never sent by the API. */
|
|
4647
|
+
program?: string | null;
|
|
3880
4648
|
}
|
|
3881
4649
|
export interface WalletTrackerTradesParams {
|
|
3882
4650
|
/** Filter by specific wallet address. */
|
|
@@ -3887,12 +4655,23 @@ export interface WalletTrackerTradesParams {
|
|
|
3887
4655
|
event_type?: WalletTrackerEventType;
|
|
3888
4656
|
/** Max results (1–200). Default: 50. */
|
|
3889
4657
|
limit?: number;
|
|
3890
|
-
/** Cursor for pagination: block_time of the last item from the previous page. */
|
|
4658
|
+
/** Cursor for pagination: block_time of the last item from the previous page (`next_cursor`). */
|
|
3891
4659
|
before?: number;
|
|
4660
|
+
/** Slot cursor (`next_cursor_slot`) — used with `order: "slot"`. */
|
|
4661
|
+
before_slot?: number;
|
|
4662
|
+
/** Page ordering column. */
|
|
4663
|
+
order?: "slot" | "block_time";
|
|
3892
4664
|
}
|
|
3893
4665
|
export interface WalletTrackerTradesResponse {
|
|
3894
4666
|
events: WalletTrackerEvent[];
|
|
3895
4667
|
count: number;
|
|
4668
|
+
/** Which column this page was ordered by. */
|
|
4669
|
+
ordered_by: "slot" | "block_time";
|
|
4670
|
+
/** `block_time` cursor for the next page (`before`); null on the last page. */
|
|
4671
|
+
next_cursor: number | null;
|
|
4672
|
+
/** Slot cursor for the next page (`before_slot`); null on the last page or on a page of pre-slot rows. */
|
|
4673
|
+
next_cursor_slot: number | null;
|
|
4674
|
+
_rid?: string;
|
|
3896
4675
|
}
|
|
3897
4676
|
export interface WalletTrackerWalletStats {
|
|
3898
4677
|
wallet_address: string;
|
|
@@ -3914,8 +4693,10 @@ export interface WalletTrackerSummaryResponse {
|
|
|
3914
4693
|
wallets: WalletTrackerWalletStats[];
|
|
3915
4694
|
period: string;
|
|
3916
4695
|
}
|
|
4696
|
+
/** DELETE /wallet-tracker/watchlist/{address} — echoes the removed address. */
|
|
3917
4697
|
export interface WalletTrackerDeleteResponse {
|
|
3918
|
-
|
|
4698
|
+
removed: string;
|
|
4699
|
+
_rid?: string;
|
|
3919
4700
|
}
|
|
3920
4701
|
export interface ToolsSearchParams {
|
|
3921
4702
|
/** Full-text search query. */
|
|
@@ -3957,6 +4738,31 @@ export interface StreamToken {
|
|
|
3957
4738
|
/** DEX trade stream URL — only present for Ultra tier subscribers */
|
|
3958
4739
|
dex_ws_url?: string | null;
|
|
3959
4740
|
usage: string;
|
|
4741
|
+
subscribe_example?: {
|
|
4742
|
+
type: "subscribe";
|
|
4743
|
+
channels: string[];
|
|
4744
|
+
};
|
|
4745
|
+
/** The full registry of subscribable channel names. */
|
|
4746
|
+
channels?: string[];
|
|
4747
|
+
/** token:prices requires filters.mints (1..mint_cap). */
|
|
4748
|
+
token_prices?: {
|
|
4749
|
+
subscribe_example: Record<string, unknown>;
|
|
4750
|
+
mint_cap: number | null;
|
|
4751
|
+
note: string;
|
|
4752
|
+
};
|
|
4753
|
+
/** rhc:token_prices requires filters.addresses (1..address_cap, per connection across named subscriptions). */
|
|
4754
|
+
rhc_token_prices?: {
|
|
4755
|
+
subscribe_example: Record<string, unknown>;
|
|
4756
|
+
address_cap: number | null;
|
|
4757
|
+
coalesce_ms: number;
|
|
4758
|
+
note: string;
|
|
4759
|
+
};
|
|
4760
|
+
/** Named subscriptions: several channel + filter sets on one socket. */
|
|
4761
|
+
named_subscriptions?: {
|
|
4762
|
+
subscribe_example: Record<string, unknown>;
|
|
4763
|
+
max_per_connection: number | null;
|
|
4764
|
+
note: string;
|
|
4765
|
+
};
|
|
3960
4766
|
_rid?: string;
|
|
3961
4767
|
}
|
|
3962
4768
|
/** A live WebSocket session for your API key (as returned by
|
|
@@ -3983,31 +4789,476 @@ export interface StreamSessionEvictResponse {
|
|
|
3983
4789
|
id: string;
|
|
3984
4790
|
_rid?: string;
|
|
3985
4791
|
}
|
|
4792
|
+
/** Event types a webhook can subscribe to (`VALID_EVENTS`). Every event is PRO+. */
|
|
4793
|
+
export type WebhookEvent = "kol:trade" | "kol:coordination" | "deployer:alert" | "deployer:bond" | "wallet_tracker:event" | "sniper:deploy" | "rhc:kol_trade" | "token:surge" | "token:revival";
|
|
4794
|
+
export type WebhookConditionOp = "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "in" | "contains";
|
|
4795
|
+
/** Custom filter condition — ULTRA/BUSINESS only (PRO gets 403). Max 10 per webhook. */
|
|
4796
|
+
export interface WebhookCondition {
|
|
4797
|
+
field: string;
|
|
4798
|
+
op: WebhookConditionOp;
|
|
4799
|
+
value: string | number | boolean | Array<string | number>;
|
|
4800
|
+
}
|
|
4801
|
+
/** Delivery filters. Named filters are validated against the subscribed `events` (400 when one does not apply). */
|
|
4802
|
+
export interface WebhookFilters {
|
|
4803
|
+
min_sol?: number;
|
|
4804
|
+
action?: "buy" | "sell";
|
|
4805
|
+
kol_name?: string;
|
|
4806
|
+
deployer_tier?: string[];
|
|
4807
|
+
min_kols?: number;
|
|
4808
|
+
/** token:surge / token:revival */
|
|
4809
|
+
kinds?: Array<"surge" | "revival">;
|
|
4810
|
+
tiers?: Array<"early" | "strong" | "breakout">;
|
|
4811
|
+
launchpads?: string[];
|
|
4812
|
+
exclude_flags?: string[];
|
|
4813
|
+
min_mc_usd?: number;
|
|
4814
|
+
max_mc_usd?: number;
|
|
4815
|
+
/** ULTRA/BUSINESS only. */
|
|
4816
|
+
conditions?: WebhookCondition[];
|
|
4817
|
+
}
|
|
3986
4818
|
export interface WebhookCreateParams {
|
|
4819
|
+
/** Must be https://. */
|
|
3987
4820
|
url: string;
|
|
3988
|
-
events:
|
|
3989
|
-
filters?:
|
|
4821
|
+
events: WebhookEvent[];
|
|
4822
|
+
filters?: WebhookFilters;
|
|
3990
4823
|
}
|
|
3991
4824
|
export interface WebhookUpdateParams {
|
|
3992
4825
|
url?: string;
|
|
3993
|
-
events?:
|
|
3994
|
-
filters?:
|
|
3995
|
-
|
|
4826
|
+
events?: WebhookEvent[];
|
|
4827
|
+
filters?: WebhookFilters;
|
|
4828
|
+
/** Pause (false) or resume (true). Resuming resets `consecutive_failures`. */
|
|
4829
|
+
is_active?: boolean;
|
|
4830
|
+
}
|
|
4831
|
+
export interface WebhookDeliverySummary {
|
|
4832
|
+
total_24h: number;
|
|
4833
|
+
success_24h: number;
|
|
4834
|
+
failed_24h: number;
|
|
4835
|
+
/** Percent, one decimal; 100 when there were no deliveries. */
|
|
4836
|
+
success_rate: number;
|
|
3996
4837
|
}
|
|
3997
4838
|
export interface Webhook {
|
|
3998
4839
|
id: number;
|
|
3999
4840
|
url: string;
|
|
4000
|
-
events:
|
|
4001
|
-
filters:
|
|
4002
|
-
|
|
4841
|
+
events: WebhookEvent[];
|
|
4842
|
+
filters: WebhookFilters | null;
|
|
4843
|
+
is_active: boolean;
|
|
4003
4844
|
created_at: string;
|
|
4845
|
+
/** On list / get. */
|
|
4846
|
+
last_delivered_at?: string | null;
|
|
4847
|
+
/** On list / get. */
|
|
4848
|
+
consecutive_failures?: number;
|
|
4849
|
+
/** On list only. */
|
|
4850
|
+
delivery_summary?: WebhookDeliverySummary;
|
|
4004
4851
|
}
|
|
4005
4852
|
export interface WebhookListResponse {
|
|
4006
4853
|
webhooks: Webhook[];
|
|
4007
4854
|
_rid?: string;
|
|
4008
4855
|
}
|
|
4856
|
+
/** POST /webhooks (201) — the only response that carries `secret`. */
|
|
4857
|
+
export interface WebhookCreateResponse {
|
|
4858
|
+
webhook: Webhook & {
|
|
4859
|
+
secret: string;
|
|
4860
|
+
};
|
|
4861
|
+
note: string;
|
|
4862
|
+
_rid?: string;
|
|
4863
|
+
}
|
|
4864
|
+
export interface WebhookDelivery {
|
|
4865
|
+
event_type: string;
|
|
4866
|
+
status_code: number | null;
|
|
4867
|
+
response_time_ms: number | null;
|
|
4868
|
+
delivered_at: string;
|
|
4869
|
+
error: string | null;
|
|
4870
|
+
}
|
|
4871
|
+
/** GET /webhooks/{id} */
|
|
4872
|
+
export interface WebhookGetResponse {
|
|
4873
|
+
webhook: Webhook;
|
|
4874
|
+
recent_deliveries: WebhookDelivery[];
|
|
4875
|
+
_rid?: string;
|
|
4876
|
+
}
|
|
4877
|
+
/** PATCH /webhooks/{id} */
|
|
4878
|
+
export interface WebhookUpdateResponse {
|
|
4879
|
+
webhook: Pick<Webhook, "id" | "url" | "events" | "filters" | "is_active"> & {
|
|
4880
|
+
updated_at: string;
|
|
4881
|
+
};
|
|
4882
|
+
_rid?: string;
|
|
4883
|
+
}
|
|
4009
4884
|
export interface WebhookDeleteResponse {
|
|
4885
|
+
deleted: boolean;
|
|
4886
|
+
_rid?: string;
|
|
4887
|
+
}
|
|
4888
|
+
/** POST /webhooks/test */
|
|
4889
|
+
export interface WebhookTestResponse {
|
|
4010
4890
|
success: boolean;
|
|
4891
|
+
status_code?: number | null;
|
|
4892
|
+
response_time_ms: number;
|
|
4893
|
+
/** The event type that was sampled. */
|
|
4894
|
+
event?: string;
|
|
4895
|
+
/** Present when the delivery failed. */
|
|
4896
|
+
error?: string;
|
|
4897
|
+
_rid?: string;
|
|
4898
|
+
}
|
|
4899
|
+
/** `client.kol.wallets()` params — `GET /kol/wallets`. */
|
|
4900
|
+
export interface KolWalletsParams {
|
|
4901
|
+
/** 1–500, default 200. */
|
|
4902
|
+
limit?: number;
|
|
4903
|
+
/** 0–5000, default 0. */
|
|
4904
|
+
offset?: number;
|
|
4905
|
+
/** Default "true". Inactive wallets are kept for history but produce no new trades. */
|
|
4906
|
+
active?: "true" | "false" | "all" | boolean;
|
|
4907
|
+
/** Case-insensitive substring match on the KOL name (≤ 40 chars). */
|
|
4908
|
+
q?: string;
|
|
4909
|
+
/** Exact strategy_tag filter. */
|
|
4910
|
+
strategy?: string;
|
|
4911
|
+
}
|
|
4912
|
+
/** One tracked KOL on `GET /kol/wallets` (roster only — performance lives in `/kol/leaderboard`). */
|
|
4913
|
+
export interface KolRosterWallet {
|
|
4914
|
+
wallet_address: string;
|
|
4915
|
+
name: string | null;
|
|
4916
|
+
twitter_url: string | null;
|
|
4917
|
+
avatar_url: string | null;
|
|
4918
|
+
strategy_tag: string | null;
|
|
4919
|
+
twitter_followers: number | null;
|
|
4920
|
+
/** MadeOnSol users following this KOL. */
|
|
4921
|
+
follow_count: number;
|
|
4922
|
+
is_active: boolean;
|
|
4923
|
+
tracked_since: string | null;
|
|
4924
|
+
}
|
|
4925
|
+
export interface KolWalletsResponse {
|
|
4926
|
+
wallets: KolRosterWallet[];
|
|
4927
|
+
count: number;
|
|
4928
|
+
/** Total matching the filters (for paging). */
|
|
4929
|
+
total: number;
|
|
4930
|
+
limit: number;
|
|
4931
|
+
offset: number;
|
|
4932
|
+
has_more: boolean;
|
|
4933
|
+
/** Echo of the applied filters. */
|
|
4934
|
+
filters?: {
|
|
4935
|
+
active: string;
|
|
4936
|
+
q: string | null;
|
|
4937
|
+
strategy: string | null;
|
|
4938
|
+
};
|
|
4939
|
+
note?: string;
|
|
4940
|
+
_rid?: string;
|
|
4941
|
+
}
|
|
4942
|
+
/** `client.token.search()` params — `GET /tokens/search`. */
|
|
4943
|
+
export interface TokenSearchParams {
|
|
4944
|
+
/** Ticker or name fragment (1–64 chars). 1 char = exact symbol only; 2+ symbol prefix; 3+ name prefix; 4+ fuzzy. */
|
|
4945
|
+
q: string;
|
|
4946
|
+
/** 1–50, default 10. */
|
|
4947
|
+
limit?: number;
|
|
4948
|
+
}
|
|
4949
|
+
export interface TokenSearchResult {
|
|
4950
|
+
mint: string;
|
|
4951
|
+
symbol: string | null;
|
|
4952
|
+
name: string | null;
|
|
4953
|
+
match: "symbol_exact" | "symbol_prefix" | "name_prefix" | "fuzzy";
|
|
4954
|
+
market_cap_usd: number | null;
|
|
4955
|
+
liquidity_usd: number | null;
|
|
4956
|
+
primary_dex: string | null;
|
|
4957
|
+
last_trade_at: string | null;
|
|
4958
|
+
image_url?: string | null;
|
|
4959
|
+
twitter?: string | null;
|
|
4960
|
+
website?: string | null;
|
|
4961
|
+
}
|
|
4962
|
+
export interface TokenSearchResponse {
|
|
4963
|
+
q: string;
|
|
4964
|
+
count: number;
|
|
4965
|
+
results: TokenSearchResult[];
|
|
4966
|
+
/** Present when q is a blue-chip ticker (results are namesakes) or when nothing matched. */
|
|
4967
|
+
note?: string;
|
|
4968
|
+
_rid?: string;
|
|
4969
|
+
}
|
|
4970
|
+
/** `client.manifests()` params — `GET /manifests`. */
|
|
4971
|
+
export interface ManifestsParams {
|
|
4972
|
+
/** One dataset's history (newest first), e.g. "token_trades", "kol_trades". Pattern ^[a-z0-9_]{1,64}$. */
|
|
4973
|
+
dataset?: string;
|
|
4974
|
+
/** History depth when `dataset` is set: 1–365, default 30. */
|
|
4975
|
+
limit?: number;
|
|
4976
|
+
}
|
|
4977
|
+
/** One nightly as-of manifest for a dataset. Cite `fingerprint` to name the exact dataset state. */
|
|
4978
|
+
export interface DatasetManifest {
|
|
4979
|
+
dataset: string;
|
|
4980
|
+
/** Night the manifest was measured on the streaming replica. */
|
|
4981
|
+
data_as_of: string;
|
|
4982
|
+
produced_at: string;
|
|
4983
|
+
producer: string;
|
|
4984
|
+
ts_column: string;
|
|
4985
|
+
rows_24h: number;
|
|
4986
|
+
min_ts: string | null;
|
|
4987
|
+
max_ts: string | null;
|
|
4988
|
+
/** Planner estimate (partitions summed), not an exact count. */
|
|
4989
|
+
row_count_estimate: number;
|
|
4990
|
+
/** md5 of the column:type list — a change means the shape of the data changed. */
|
|
4991
|
+
schema_hash: string;
|
|
4992
|
+
/** md5(dataset|max_ts|rows_24h|estimate). */
|
|
4993
|
+
fingerprint: string;
|
|
4994
|
+
}
|
|
4995
|
+
export interface ManifestsResponse {
|
|
4996
|
+
manifests: DatasetManifest[];
|
|
4997
|
+
count: number;
|
|
4998
|
+
dataset: string | null;
|
|
4999
|
+
methodology_version: string;
|
|
5000
|
+
note: string;
|
|
5001
|
+
_rid?: string;
|
|
5002
|
+
}
|
|
5003
|
+
/** Signal names served by the Signal Scorecard. */
|
|
5004
|
+
export type SignalName = "dump_cluster_count" | "runner_rate" | "recycled_early_buyer_count" | "coordination_count" | "scout_first_touch";
|
|
5005
|
+
/** `GET /signals` — the Signal Scorecard catalog. */
|
|
5006
|
+
export interface SignalsCatalogResponse {
|
|
5007
|
+
name: string;
|
|
5008
|
+
description: string;
|
|
5009
|
+
signals: {
|
|
5010
|
+
name: SignalName | string;
|
|
5011
|
+
methodology: string;
|
|
5012
|
+
performance_endpoint: string;
|
|
5013
|
+
}[];
|
|
5014
|
+
docs: string;
|
|
5015
|
+
_rid?: string;
|
|
5016
|
+
}
|
|
5017
|
+
export interface SignalPerformanceBucket {
|
|
5018
|
+
bucket: string;
|
|
5019
|
+
hit_rate: number | null;
|
|
5020
|
+
base_rate: number | null;
|
|
5021
|
+
lift: number | null;
|
|
5022
|
+
sample_n: number | null;
|
|
5023
|
+
}
|
|
5024
|
+
/** `GET /signals/{name}/performance`. Before the first computation the body is only `{ signal, buckets: [], note }`. */
|
|
5025
|
+
export interface SignalPerformanceResponse {
|
|
5026
|
+
signal: string;
|
|
5027
|
+
buckets: SignalPerformanceBucket[];
|
|
5028
|
+
/** Present (with empty buckets) only when no performance data has been computed yet. */
|
|
5029
|
+
note?: string | null;
|
|
5030
|
+
metric_type?: string;
|
|
5031
|
+
outcome?: string;
|
|
5032
|
+
window_days?: number;
|
|
5033
|
+
base_rate?: number | null;
|
|
5034
|
+
test_from?: string | null;
|
|
5035
|
+
test_to?: string | null;
|
|
5036
|
+
as_of?: string;
|
|
5037
|
+
methodology?: string;
|
|
5038
|
+
/** Only with `history: true` — one entry per snapshot, newest first, ≤ 90. */
|
|
5039
|
+
history?: {
|
|
5040
|
+
as_of: string;
|
|
5041
|
+
buckets: {
|
|
5042
|
+
bucket: string;
|
|
5043
|
+
hit_rate: number | null;
|
|
5044
|
+
lift: number | null;
|
|
5045
|
+
sample_n: number | null;
|
|
5046
|
+
}[];
|
|
5047
|
+
}[] | null;
|
|
5048
|
+
_rid?: string;
|
|
5049
|
+
}
|
|
5050
|
+
/** `client.wallet.flags()` params — `GET /wallet/{address}/flags`. */
|
|
5051
|
+
export interface WalletFlagsParams {
|
|
5052
|
+
/** ISO-8601 with offset. Default: now. */
|
|
5053
|
+
as_of?: string;
|
|
5054
|
+
/** Include the change series (newest first, ≤ 200 rows). */
|
|
5055
|
+
history?: boolean;
|
|
5056
|
+
}
|
|
5057
|
+
export type WalletFlagSource = "deployer" | "alpha" | "dump_cluster" | "kol" | "sniper" | "bundler";
|
|
5058
|
+
/** A source's latest snapshot at or before `as_of`, plus `snapshot_at` / `active` / `carried`. Other keys depend on the source. */
|
|
5059
|
+
export interface WalletFlagSnapshot {
|
|
5060
|
+
snapshot_at: string;
|
|
5061
|
+
/** false = a membership source whose latest row says the wallet dropped out. */
|
|
5062
|
+
active: boolean;
|
|
5063
|
+
/** true = recorded before `as_of` and unchanged by then. */
|
|
5064
|
+
carried: boolean;
|
|
5065
|
+
[key: string]: unknown;
|
|
5066
|
+
}
|
|
5067
|
+
export interface WalletFlagsResponse {
|
|
5068
|
+
wallet: string;
|
|
5069
|
+
as_of: string;
|
|
5070
|
+
/** Sources with a snapshot at or before `as_of` whose latest state is still active. */
|
|
5071
|
+
flagged: WalletFlagSource[];
|
|
5072
|
+
/** One key per source; null = no snapshot at or before `as_of` (we had nothing on the wallet then). */
|
|
5073
|
+
sources: Record<WalletFlagSource, WalletFlagSnapshot | null>;
|
|
5074
|
+
/** Only with `history: true`. */
|
|
5075
|
+
history?: {
|
|
5076
|
+
source: string;
|
|
5077
|
+
flags: Record<string, unknown>;
|
|
5078
|
+
snapshot_at: string;
|
|
5079
|
+
}[];
|
|
5080
|
+
/** Funding evidence block, when that feature is on for your tier. Typed in full by `client.wallet.funding()`. */
|
|
5081
|
+
funding?: Record<string, unknown>;
|
|
5082
|
+
note: string;
|
|
5083
|
+
_rid?: string;
|
|
5084
|
+
}
|
|
5085
|
+
/** `client.wallet.batchTrades()` params — `POST /wallet/batch/trades`. */
|
|
5086
|
+
export interface WalletBatchTradesParams {
|
|
5087
|
+
/** 1–50 base58 wallet addresses. */
|
|
5088
|
+
wallets: string[];
|
|
5089
|
+
/** Unix seconds; only trades strictly after this. Default: 90 days ago (cannot reach further back). */
|
|
5090
|
+
since?: number;
|
|
5091
|
+
/** 1–100, default 20. */
|
|
5092
|
+
limit_per_wallet?: number;
|
|
5093
|
+
action?: "buy" | "sell";
|
|
5094
|
+
}
|
|
5095
|
+
export interface WalletBatchTrade {
|
|
5096
|
+
tx_signature: string;
|
|
5097
|
+
token_mint: string;
|
|
5098
|
+
action: "buy" | "sell";
|
|
5099
|
+
sol_amount: number;
|
|
5100
|
+
token_amount: number;
|
|
5101
|
+
/** This trade's executed price (sol_amount / token_amount). */
|
|
5102
|
+
price_sol: number | null;
|
|
5103
|
+
price_usd: number | null;
|
|
5104
|
+
/** Canonical pool price sampled near this trade's slot. */
|
|
5105
|
+
market_price_sol: number | null;
|
|
5106
|
+
market_price_usd: number | null;
|
|
5107
|
+
block_time: number;
|
|
5108
|
+
traded_at: string;
|
|
5109
|
+
}
|
|
5110
|
+
export interface WalletBatchTradesResponse {
|
|
5111
|
+
wallets: {
|
|
5112
|
+
wallet: string;
|
|
5113
|
+
count: number;
|
|
5114
|
+
trades: WalletBatchTrade[];
|
|
5115
|
+
}[];
|
|
5116
|
+
since: number;
|
|
5117
|
+
/** Newest block_time seen — pass back as `since` on the next poll. */
|
|
5118
|
+
next_since: number;
|
|
5119
|
+
limit_per_wallet: number;
|
|
5120
|
+
coverage: {
|
|
5121
|
+
history_start_days: number;
|
|
5122
|
+
scope: string;
|
|
5123
|
+
note: string;
|
|
5124
|
+
};
|
|
5125
|
+
_rid?: string;
|
|
5126
|
+
}
|
|
5127
|
+
/** One wallet on `POST /wallet-list/score`. */
|
|
5128
|
+
export interface WalletListScoreEntry {
|
|
5129
|
+
address: string;
|
|
5130
|
+
status: "scored" | "no_trades" | "not_computed";
|
|
5131
|
+
/** 0–100; null when there are no closed positions to score. */
|
|
5132
|
+
score: number | null;
|
|
5133
|
+
/** Same shape as `client.wallet.pnl()`'s `summary`; null unless status is "scored". */
|
|
5134
|
+
pnl: WalletPnlSummary | null;
|
|
5135
|
+
reputation?: {
|
|
5136
|
+
is_sniper: boolean;
|
|
5137
|
+
is_bundler: boolean;
|
|
5138
|
+
is_dumper: boolean;
|
|
5139
|
+
is_kol: boolean;
|
|
5140
|
+
kol_name: string | null;
|
|
5141
|
+
bot_confidence: BotConfidence | null;
|
|
5142
|
+
};
|
|
5143
|
+
cache_hit?: boolean | null;
|
|
5144
|
+
computed_at?: string | null;
|
|
5145
|
+
/** Seconds since computed_at. */
|
|
5146
|
+
cache_age_seconds?: number | null;
|
|
5147
|
+
/** Present only when status is "not_computed". */
|
|
5148
|
+
message?: string;
|
|
5149
|
+
}
|
|
5150
|
+
export interface WalletListScoreResponse {
|
|
5151
|
+
wallets: WalletListScoreEntry[];
|
|
5152
|
+
count: number;
|
|
5153
|
+
scored: number;
|
|
5154
|
+
cached: number;
|
|
5155
|
+
computed_now: number;
|
|
5156
|
+
no_trades: number;
|
|
5157
|
+
not_computed: number;
|
|
5158
|
+
max_wallets: number;
|
|
5159
|
+
max_live_compute: number;
|
|
5160
|
+
score_methodology: string;
|
|
5161
|
+
as_of: string;
|
|
5162
|
+
_rid?: string;
|
|
5163
|
+
}
|
|
5164
|
+
/** `client.wallet.funding()` params — `GET /wallet/{address}/funding`. */
|
|
5165
|
+
export interface WalletFundingParams {
|
|
5166
|
+
/** Shared funders per page: 1–20, default 10. */
|
|
5167
|
+
limit?: number;
|
|
5168
|
+
/** 0–100, default 0. */
|
|
5169
|
+
offset?: number;
|
|
5170
|
+
}
|
|
5171
|
+
/** Aggregated transfers of one asset from a funder to a wallet. Amounts are raw base-unit STRINGS (u64/u256-safe). */
|
|
5172
|
+
export interface FundingTransferLink {
|
|
5173
|
+
asset: string;
|
|
5174
|
+
symbol: string | null;
|
|
5175
|
+
decimals: number | null;
|
|
5176
|
+
/** Raw base units, as a decimal string. */
|
|
5177
|
+
amount_raw: string;
|
|
5178
|
+
/** Human amount as a decimal string; null when decimals are unknown. */
|
|
5179
|
+
amount: string | null;
|
|
5180
|
+
transfer_count: number;
|
|
5181
|
+
first_seen: string;
|
|
5182
|
+
last_seen: string;
|
|
5183
|
+
transactions: {
|
|
5184
|
+
tx: string;
|
|
5185
|
+
explorer_url: string;
|
|
5186
|
+
}[];
|
|
5187
|
+
}
|
|
5188
|
+
/** An address that funded this wallet AND other tracked wallets. */
|
|
5189
|
+
export interface SharedFunder {
|
|
5190
|
+
funder: string;
|
|
5191
|
+
funder_explorer_url: string;
|
|
5192
|
+
funder_label: {
|
|
5193
|
+
label: string;
|
|
5194
|
+
category: string;
|
|
5195
|
+
verified: boolean;
|
|
5196
|
+
} | null;
|
|
5197
|
+
/** Known exchange/service: common funding, not a connection signal. */
|
|
5198
|
+
service_funder: boolean;
|
|
5199
|
+
to_this_wallet: FundingTransferLink[];
|
|
5200
|
+
connected_wallets: {
|
|
5201
|
+
address: string;
|
|
5202
|
+
explorer_url: string;
|
|
5203
|
+
tracked_as: string[];
|
|
5204
|
+
transfers: FundingTransferLink[];
|
|
5205
|
+
}[];
|
|
5206
|
+
}
|
|
5207
|
+
export type FundingStatus = "ok" | "partial_coverage" | "not_tracked" | "collection_disabled" | "collection_stale" | "not_started";
|
|
5208
|
+
/**
|
|
5209
|
+
* `GET /wallet/{address}/funding` (PRO+). Evidence of a funding connection — not
|
|
5210
|
+
* proof of common ownership. Forward-looking coverage from monitoring start;
|
|
5211
|
+
* SOL-only on Solana. A 503 `feature_disabled` / `funding_data_unavailable` is
|
|
5212
|
+
* never an empty result.
|
|
5213
|
+
*/
|
|
5214
|
+
export interface WalletFundingResponse {
|
|
5215
|
+
chain: string;
|
|
5216
|
+
/** CAIP-2 chain id, e.g. "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp". */
|
|
5217
|
+
chain_id: string;
|
|
5218
|
+
native_asset: string;
|
|
5219
|
+
address: string;
|
|
5220
|
+
status: FundingStatus;
|
|
5221
|
+
summary: string;
|
|
5222
|
+
shared_funders: SharedFunder[];
|
|
5223
|
+
pagination: {
|
|
5224
|
+
limit: number;
|
|
5225
|
+
offset: number;
|
|
5226
|
+
total: number;
|
|
5227
|
+
has_more: boolean;
|
|
5228
|
+
};
|
|
5229
|
+
/** Collection state needed to read an empty answer (monitoring start, heartbeat, tracked intervals, known gaps…). */
|
|
5230
|
+
coverage: {
|
|
5231
|
+
collection_enabled: boolean;
|
|
5232
|
+
mode: string;
|
|
5233
|
+
heartbeat_at: string | null;
|
|
5234
|
+
collector_current: boolean;
|
|
5235
|
+
monitoring_started_at: string | null;
|
|
5236
|
+
last_committed_position: string | null;
|
|
5237
|
+
last_committed_at: string | null;
|
|
5238
|
+
tracked_intervals: {
|
|
5239
|
+
source: string;
|
|
5240
|
+
tracked_since: string;
|
|
5241
|
+
tracked_until: string | null;
|
|
5242
|
+
}[];
|
|
5243
|
+
known_gaps: Record<string, unknown>[];
|
|
5244
|
+
supported_transfer_types: string[];
|
|
5245
|
+
unsupported_transfer_types: string[];
|
|
5246
|
+
recovery: string | null;
|
|
5247
|
+
history: string;
|
|
5248
|
+
[key: string]: unknown;
|
|
5249
|
+
};
|
|
5250
|
+
/**
|
|
5251
|
+
* "Where was this wallet funded from?" — direct funding facts (PRO). Absent
|
|
5252
|
+
* when that read degraded. Loosely typed: its fact objects carry a
|
|
5253
|
+
* `relationships` block (cross-wallet counts) only for ULTRA+ keys; it is
|
|
5254
|
+
* redacted below ULTRA.
|
|
5255
|
+
*/
|
|
5256
|
+
direct_funding?: {
|
|
5257
|
+
observed: boolean;
|
|
5258
|
+
[key: string]: unknown;
|
|
5259
|
+
};
|
|
5260
|
+
disclaimer: string;
|
|
5261
|
+
_rid?: string;
|
|
4011
5262
|
}
|
|
4012
5263
|
export interface MadeOnSolConfig {
|
|
4013
5264
|
/**
|
|
@@ -4036,6 +5287,12 @@ declare class KolClient {
|
|
|
4036
5287
|
* @param wallet Solana wallet address.
|
|
4037
5288
|
* @param params Optional: include "pnl_by_token" for per-token breakdown.
|
|
4038
5289
|
*/
|
|
5290
|
+
/**
|
|
5291
|
+
* Tracked KOL roster (`GET /kol/wallets`): address, name, X handle, strategy
|
|
5292
|
+
* tag, follower counts, tracked-since. Roster only; performance is in
|
|
5293
|
+
* `leaderboard()` / `wallet()`. Any key.
|
|
5294
|
+
*/
|
|
5295
|
+
wallets(params?: KolWalletsParams): Promise<KolWalletsResponse>;
|
|
4039
5296
|
wallet(wallet: string, params?: KolWalletParams): Promise<KolWalletProfile>;
|
|
4040
5297
|
/**
|
|
4041
5298
|
* Detect coordinated buying activity across KOL wallets.
|
|
@@ -4112,12 +5369,12 @@ declare class KolClient {
|
|
|
4112
5369
|
* v1.9 — Scout leaderboard: top KOLs ranked by scout score, first-touch frequency,
|
|
4113
5370
|
* and swarm attraction rate. ULTRA only.
|
|
4114
5371
|
*/
|
|
4115
|
-
scoutLeaderboard(params?: ScoutLeaderboardParams): Promise<
|
|
5372
|
+
scoutLeaderboard(params?: ScoutLeaderboardParams): Promise<ScoutLeaderboardResponse>;
|
|
4116
5373
|
/**
|
|
4117
5374
|
* v1.9 — Coordination history: past coordination alert fires with token, score, KOL count.
|
|
4118
5375
|
* ULTRA only.
|
|
4119
5376
|
*/
|
|
4120
|
-
coordinationHistory(params?: CoordinationHistoryParams): Promise<
|
|
5377
|
+
coordinationHistory(params?: CoordinationHistoryParams): Promise<CoordinationHistoryResponse>;
|
|
4121
5378
|
}
|
|
4122
5379
|
declare class AlphaClient {
|
|
4123
5380
|
private readonly _fetch;
|
|
@@ -4273,7 +5530,14 @@ declare class TokenClient {
|
|
|
4273
5530
|
* **ULTRA** adds individual KOL wallet addresses in kol_activity.top_buyers[].
|
|
4274
5531
|
* @param mint Token mint address (base58).
|
|
4275
5532
|
*/
|
|
4276
|
-
get(mint: string): Promise<TokenResponse>;
|
|
5533
|
+
get(mint: string, params?: TokenGetParams): Promise<TokenResponse>;
|
|
5534
|
+
/**
|
|
5535
|
+
* Resolve a ticker or name to candidate mints (`GET /tokens/search`), ranked
|
|
5536
|
+
* exact ticker, symbol prefix, name prefix, fuzzy — by liquidity inside each
|
|
5537
|
+
* tier. Memecoin/launchpad universe only: `q: "SOL"` returns tokens NAMED SOL
|
|
5538
|
+
* and `note` says so. Any key, including Free.
|
|
5539
|
+
*/
|
|
5540
|
+
search(params: TokenSearchParams): Promise<TokenSearchResponse>;
|
|
4277
5541
|
/**
|
|
4278
5542
|
* Batch lookup of up to 50 mints. Returns the same per-mint shape as `get()`
|
|
4279
5543
|
* in a single round-trip — DB queries batched with `IN(...)`, dex-stream +
|
|
@@ -4367,6 +5631,15 @@ declare class TokenClient {
|
|
|
4367
5631
|
* and at 1h/6h/24h/7d after bond.
|
|
4368
5632
|
*/
|
|
4369
5633
|
peakHistory(mint: string): Promise<PeakHistoryResponse>;
|
|
5634
|
+
/**
|
|
5635
|
+
* The wallets that made (or lost) the most on a token, ranked by realized
|
|
5636
|
+
* PnL or ROI, each enriched with KOL identity and alpha-wallet reputation
|
|
5637
|
+
* (`bot_confidence`, historical win rate / PnL). `limit` PRO <= 25 /
|
|
5638
|
+
* ULTRA <= 100; `sort` "pnl" (default) | "roi"; `window_days` 1-180
|
|
5639
|
+
* (default 90); `min_bought_sol` default 0.1. PRO+.
|
|
5640
|
+
* `GET /tokens/{mint}/top-traders`
|
|
5641
|
+
*/
|
|
5642
|
+
topTraders(mint: string, params?: TokenTopTradersParams): Promise<TokenTopTradersResponse>;
|
|
4370
5643
|
/**
|
|
4371
5644
|
* v2.25 — Token locks & vesting on a mint (`GET /tokens/{mint}/locks`): every
|
|
4372
5645
|
* on-chain Streamflow stream, Jupiter Lock vesting escrow and Bonfida
|
|
@@ -4545,7 +5818,7 @@ declare class DeployerClient {
|
|
|
4545
5818
|
* Full profile for a single deployer wallet.
|
|
4546
5819
|
* @param wallet Solana wallet address.
|
|
4547
5820
|
*/
|
|
4548
|
-
profile(wallet: string): Promise<
|
|
5821
|
+
profile(wallet: string): Promise<DeployerProfileResponse>;
|
|
4549
5822
|
/**
|
|
4550
5823
|
* Tokens deployed by a specific wallet.
|
|
4551
5824
|
* @param wallet Solana wallet address.
|
|
@@ -4639,7 +5912,7 @@ declare class WalletTrackerClient {
|
|
|
4639
5912
|
* @param address Solana wallet address.
|
|
4640
5913
|
* @param params label (string to set, null to clear).
|
|
4641
5914
|
*/
|
|
4642
|
-
updateLabel(address: string, params: WatchlistUpdateParams): Promise<
|
|
5915
|
+
updateLabel(address: string, params: WatchlistUpdateParams): Promise<WatchlistUpdateResponse>;
|
|
4643
5916
|
/**
|
|
4644
5917
|
* Historical events (swaps + transfers) for all watched wallets.
|
|
4645
5918
|
* BASIC: truncated wallets, no tx_signature, no counterparty.
|
|
@@ -4662,6 +5935,9 @@ export interface SniperDeploy {
|
|
|
4662
5935
|
detected_at: string;
|
|
4663
5936
|
detection_region: string;
|
|
4664
5937
|
detection_confirmed: boolean;
|
|
5938
|
+
/** Deployer attribution cross-checked against the confirmed create tx (every 15 min). Distinct from `detection_confirmed` (transport-level). */
|
|
5939
|
+
attribution_status?: "unverified" | "confirmed" | "corrected" | null;
|
|
5940
|
+
attribution_checked_at?: string | null;
|
|
4665
5941
|
deployer_tier: string | null;
|
|
4666
5942
|
deployer_bond_rate: number | null;
|
|
4667
5943
|
deployer_total_bonded: number | null;
|
|
@@ -4869,6 +6145,34 @@ declare class WalletClient {
|
|
|
4869
6145
|
* ```
|
|
4870
6146
|
*/
|
|
4871
6147
|
trades(address: string, params?: WalletTradesParams): Promise<WalletTradesResponse>;
|
|
6148
|
+
/**
|
|
6149
|
+
* Point-in-time wallet flags (`GET /wallet/{address}/flags`): for every flag
|
|
6150
|
+
* source (deployer, alpha, dump_cluster, kol, sniper, bundler) the latest
|
|
6151
|
+
* write-on-change snapshot at or before `as_of` (default now). A null source
|
|
6152
|
+
* means we had nothing on the wallet then. Snapshots exist from 2026-08-28.
|
|
6153
|
+
* **PRO+**.
|
|
6154
|
+
*/
|
|
6155
|
+
flags(address: string, params?: WalletFlagsParams): Promise<WalletFlagsResponse>;
|
|
6156
|
+
/**
|
|
6157
|
+
* Shared-funder evidence (`GET /wallet/{address}/funding`): addresses that sent
|
|
6158
|
+
* a qualifying SOL transfer to this wallet AND to other tracked wallets, with
|
|
6159
|
+
* the supporting transactions, plus `direct_funding`. Amounts are raw strings.
|
|
6160
|
+
* **PRO+**; `relationships` counts inside `direct_funding` are ULTRA+.
|
|
6161
|
+
*/
|
|
6162
|
+
funding(address: string, params?: WalletFundingParams): Promise<WalletFundingResponse>;
|
|
6163
|
+
/**
|
|
6164
|
+
* Recent trades for up to 50 wallets in one call (`POST /wallet/batch/trades`),
|
|
6165
|
+
* the batch twin of `trades()`: newest first, 90-day window. Feed `next_since`
|
|
6166
|
+
* back as `since` to poll. One quota unit. **PRO+**.
|
|
6167
|
+
*/
|
|
6168
|
+
batchTrades(params: WalletBatchTradesParams): Promise<WalletBatchTradesResponse>;
|
|
6169
|
+
/**
|
|
6170
|
+
* Score a customer-supplied list of up to 200 wallets on FIFO trading
|
|
6171
|
+
* performance (`POST /wallet-list/score`). Only the first 25 UNCACHED wallets
|
|
6172
|
+
* are computed per call; the rest come back `status: "not_computed"`, so call
|
|
6173
|
+
* again. **Enterprise tier only.**
|
|
6174
|
+
*/
|
|
6175
|
+
scoreList(wallets: string[]): Promise<WalletListScoreResponse>;
|
|
4872
6176
|
}
|
|
4873
6177
|
declare class CoordinationAlertsClient {
|
|
4874
6178
|
private readonly _get;
|
|
@@ -4962,9 +6266,27 @@ export interface CopyTradeSubscription {
|
|
|
4962
6266
|
sizing_amount: number;
|
|
4963
6267
|
delivery_mode: CopyTradeDeliveryMode;
|
|
4964
6268
|
webhook_url: string | null;
|
|
6269
|
+
/** Market-cap band (USD) on the source trade; `null` = no bound. */
|
|
6270
|
+
min_mc_usd?: number | null;
|
|
6271
|
+
max_mc_usd?: number | null;
|
|
4965
6272
|
is_active: boolean;
|
|
4966
6273
|
created_at: string;
|
|
4967
6274
|
updated_at?: string;
|
|
6275
|
+
/**
|
|
6276
|
+
* Source wallets that are tracked KOL wallets (can produce signals), read at
|
|
6277
|
+
* response time. `null` when the tracking lookup failed (see `warnings`).
|
|
6278
|
+
* Server 2026-09-25 on; absent on older ones.
|
|
6279
|
+
*/
|
|
6280
|
+
source_wallets_tracked?: string[] | null;
|
|
6281
|
+
/** Source wallets that are NOT tracked KOL wallets: they never produce a signal. */
|
|
6282
|
+
source_wallets_untracked?: string[] | null;
|
|
6283
|
+
/** Present when at least one wallet is untracked, or tracking could not be determined. */
|
|
6284
|
+
warnings?: CopyTradeRuleWarning[];
|
|
6285
|
+
}
|
|
6286
|
+
/** A non-fatal note on a copy-trade rule. The rule is saved unchanged. */
|
|
6287
|
+
export interface CopyTradeRuleWarning {
|
|
6288
|
+
code: "untracked_source_wallets" | "source_wallet_tracking_unavailable" | (string & {});
|
|
6289
|
+
message: string;
|
|
4968
6290
|
}
|
|
4969
6291
|
export interface CopyTradeCreateParams {
|
|
4970
6292
|
name?: string;
|
|
@@ -4975,6 +6297,9 @@ export interface CopyTradeCreateParams {
|
|
|
4975
6297
|
sizing_amount: number;
|
|
4976
6298
|
delivery_mode?: CopyTradeDeliveryMode;
|
|
4977
6299
|
webhook_url?: string;
|
|
6300
|
+
/** Market-cap band (USD, 0 to 1e12, min <= max) on the source trade's MC at trade time. When either bound is set, trades with an unknown MC are dropped. */
|
|
6301
|
+
min_mc_usd?: number | null;
|
|
6302
|
+
max_mc_usd?: number | null;
|
|
4978
6303
|
}
|
|
4979
6304
|
export interface CopyTradeUpdateParams {
|
|
4980
6305
|
name?: string | null;
|
|
@@ -4986,12 +6311,17 @@ export interface CopyTradeUpdateParams {
|
|
|
4986
6311
|
delivery_mode?: CopyTradeDeliveryMode;
|
|
4987
6312
|
webhook_url?: string | null;
|
|
4988
6313
|
is_active?: boolean;
|
|
6314
|
+
/** Pass `null` to clear an MC bound. */
|
|
6315
|
+
min_mc_usd?: number | null;
|
|
6316
|
+
max_mc_usd?: number | null;
|
|
4989
6317
|
}
|
|
4990
6318
|
export interface CopyTradeCreateResponse {
|
|
4991
6319
|
subscription: CopyTradeSubscription;
|
|
4992
6320
|
/** Returned ONCE on creation when `webhook_url` is set — store it to verify HMAC signatures. */
|
|
4993
6321
|
webhook_secret: string | null;
|
|
4994
6322
|
note?: string;
|
|
6323
|
+
/** Same as `subscription.warnings`, repeated at top level when present. */
|
|
6324
|
+
warnings?: CopyTradeRuleWarning[];
|
|
4995
6325
|
}
|
|
4996
6326
|
export interface CopyTradeSignal {
|
|
4997
6327
|
id: number;
|
|
@@ -5124,13 +6454,15 @@ declare class WebhookClient {
|
|
|
5124
6454
|
/** List all webhooks. */
|
|
5125
6455
|
list(): Promise<WebhookListResponse>;
|
|
5126
6456
|
/** Create a new webhook. */
|
|
5127
|
-
create(params: WebhookCreateParams): Promise<
|
|
6457
|
+
create(params: WebhookCreateParams): Promise<WebhookCreateResponse>;
|
|
6458
|
+
/** One webhook plus its most recent deliveries. */
|
|
6459
|
+
get(id: number): Promise<WebhookGetResponse>;
|
|
5128
6460
|
/** Update a webhook. */
|
|
5129
|
-
update(id: number, params: WebhookUpdateParams): Promise<
|
|
6461
|
+
update(id: number, params: WebhookUpdateParams): Promise<WebhookUpdateResponse>;
|
|
5130
6462
|
/** Delete a webhook. */
|
|
5131
6463
|
delete(id: number): Promise<WebhookDeleteResponse>;
|
|
5132
6464
|
/** Send a test payload to a webhook. */
|
|
5133
|
-
test(webhookId: number): Promise<
|
|
6465
|
+
test(webhookId: number, event?: WebhookEvent): Promise<WebhookTestResponse>;
|
|
5134
6466
|
}
|
|
5135
6467
|
/**
|
|
5136
6468
|
* MadeOnSol API client.
|
|
@@ -5199,17 +6531,29 @@ export declare class MadeOnSol {
|
|
|
5199
6531
|
*/
|
|
5200
6532
|
me(): Promise<MeResponse>;
|
|
5201
6533
|
/**
|
|
5202
|
-
*
|
|
5203
|
-
*
|
|
6534
|
+
* Signal Scorecard for one signal (`GET /signals/{name}/performance`):
|
|
6535
|
+
* out-of-sample per-bucket hit rate, base rate and lift. `history: true` adds
|
|
6536
|
+
* the per-snapshot series. Available on all tiers.
|
|
5204
6537
|
*
|
|
5205
|
-
* @param name Signal name (e.g. "
|
|
6538
|
+
* @param name Signal name — see `listSignals()` (e.g. "dump_cluster_count", "scout_first_touch").
|
|
5206
6539
|
* @example
|
|
5207
6540
|
* ```ts
|
|
5208
|
-
* const perf = await client.getSignalPerformance("
|
|
5209
|
-
* console.log(
|
|
6541
|
+
* const perf = await client.getSignalPerformance("dump_cluster_count");
|
|
6542
|
+
* for (const b of perf.buckets) console.log(b.bucket, b.hit_rate, b.lift);
|
|
5210
6543
|
* ```
|
|
5211
6544
|
*/
|
|
5212
|
-
getSignalPerformance(name: string
|
|
6545
|
+
getSignalPerformance(name: SignalName | string, params?: {
|
|
6546
|
+
history?: boolean;
|
|
6547
|
+
}): Promise<SignalPerformanceResponse>;
|
|
6548
|
+
/** Signal Scorecard catalog (`GET /signals`): every signal, its methodology and its performance endpoint. Any key. */
|
|
6549
|
+
listSignals(): Promise<SignalsCatalogResponse>;
|
|
6550
|
+
/**
|
|
6551
|
+
* As-of dataset manifests (`GET /manifests`): one nightly manifest per dataset
|
|
6552
|
+
* (rows in the last 24 h, min/max event time, planner row estimate,
|
|
6553
|
+
* `schema_hash`, `fingerprint`). Cite the fingerprint to name the exact data
|
|
6554
|
+
* state a report used; `dataset` walks one dataset's history. Any key.
|
|
6555
|
+
*/
|
|
6556
|
+
manifests(params?: ManifestsParams): Promise<ManifestsResponse>;
|
|
5213
6557
|
private _request;
|
|
5214
6558
|
private _requestWithBody;
|
|
5215
6559
|
private _handleResponse;
|