madeonsol 3.0.0 → 4.1.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 +89 -5
- package/dist/index.d.ts +1041 -43
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +93 -9
- package/dist/index.js.map +1 -1
- package/llms.txt +117 -117
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -233,22 +233,110 @@ export interface KolLeaderboardResponse {
|
|
|
233
233
|
min_winrate?: number;
|
|
234
234
|
_rid?: string;
|
|
235
235
|
}
|
|
236
|
+
/** One row of `pnl_by_token` on `GET /kol/{wallet}` (only with `include: "pnl_by_token"`). SOL figures. */
|
|
236
237
|
export interface KolPnlByToken {
|
|
237
|
-
|
|
238
|
+
token_mint: string;
|
|
239
|
+
token_symbol: string | null;
|
|
238
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;
|
|
239
260
|
token_symbol: string | null;
|
|
240
|
-
|
|
261
|
+
token_name: string | null;
|
|
262
|
+
pnl: number;
|
|
263
|
+
roi_pct: number | null;
|
|
241
264
|
buy_count: number;
|
|
242
265
|
sell_count: number;
|
|
266
|
+
first_trade: string;
|
|
267
|
+
last_trade: string;
|
|
243
268
|
}
|
|
269
|
+
/** `GET /kol/{wallet}` — what `client.kol.wallet()` returns. */
|
|
244
270
|
export interface KolWalletProfile {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
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
|
+
}[];
|
|
251
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;
|
|
252
340
|
}
|
|
253
341
|
export interface CoordinationKol {
|
|
254
342
|
name: string;
|
|
@@ -468,6 +556,26 @@ export interface ScoutLeaderboardParams {
|
|
|
468
556
|
scout_tier?: ScoutTier;
|
|
469
557
|
sort?: ScoutLeaderboardSort;
|
|
470
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
|
+
}
|
|
471
579
|
/**
|
|
472
580
|
* GET /tokens/{mint}/kol-consensus. FIX (2026-10-03 parity): the figures are
|
|
473
581
|
* nested under `consensus` — that is what the route has always returned;
|
|
@@ -605,6 +713,24 @@ export interface CoordinationHistoryParams {
|
|
|
605
713
|
since?: string;
|
|
606
714
|
min_score?: number;
|
|
607
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
|
+
}
|
|
608
734
|
export type ScoutTier = "S" | "A" | "B" | "C";
|
|
609
735
|
export interface FirstTouchesParams {
|
|
610
736
|
/** ISO datetime — return events strictly newer than this. Polling cursor. */
|
|
@@ -899,6 +1025,11 @@ export interface KolOpenPosition {
|
|
|
899
1025
|
token_name: string;
|
|
900
1026
|
buy_count: number;
|
|
901
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;
|
|
902
1033
|
first_buy_at: string;
|
|
903
1034
|
}
|
|
904
1035
|
export interface KolPnlResponse {
|
|
@@ -947,16 +1078,51 @@ export interface KolTrendingResponse {
|
|
|
947
1078
|
min_kols: number;
|
|
948
1079
|
_rid?: string;
|
|
949
1080
|
}
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
kol_buyers: string[];
|
|
955
|
-
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;
|
|
956
1085
|
buy_count: number;
|
|
957
1086
|
sell_count: number;
|
|
958
|
-
|
|
959
|
-
|
|
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[];
|
|
960
1126
|
}
|
|
961
1127
|
export interface KolEntryOrderParams {
|
|
962
1128
|
/** Max entries to return (1–100). Default: 50. */
|
|
@@ -1033,6 +1199,15 @@ export interface KolCompareResponse {
|
|
|
1033
1199
|
profiles: KolCompareProfile[];
|
|
1034
1200
|
/** Tokens bought by 2+ of the provided wallets in the last 30d (PRO+ only). */
|
|
1035
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
|
+
};
|
|
1036
1211
|
}
|
|
1037
1212
|
export type KolAlertType = "consensus_cluster" | "fresh_token_kol_buy" | "heating_up";
|
|
1038
1213
|
export type KolAlertWindow = "1h" | "6h" | "24h";
|
|
@@ -1152,6 +1327,22 @@ export interface DeployerStats {
|
|
|
1152
1327
|
bonds_detected: number;
|
|
1153
1328
|
bond_rate: number;
|
|
1154
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;
|
|
1155
1346
|
_rid?: string;
|
|
1156
1347
|
}
|
|
1157
1348
|
export interface DeployerSummary {
|
|
@@ -1226,6 +1417,45 @@ export interface DeployerLaunchpadToken {
|
|
|
1226
1417
|
bonded_at: string | null;
|
|
1227
1418
|
peak_market_cap: number | null;
|
|
1228
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
|
+
}
|
|
1229
1459
|
/** The `deployers` row inside {@link DeployerProfileResponse}. */
|
|
1230
1460
|
export interface DeployerProfileRow {
|
|
1231
1461
|
id: string;
|
|
@@ -1273,7 +1503,7 @@ export interface DeployerProfileResponse {
|
|
|
1273
1503
|
avgAthMc: number;
|
|
1274
1504
|
} | null;
|
|
1275
1505
|
/** Raw pump.fun API token list (pump.fun-launched tokens only). */
|
|
1276
|
-
pump_tokens:
|
|
1506
|
+
pump_tokens: DeployerPumpToken[];
|
|
1277
1507
|
/** true when the pump.fun API read failed (pump_tokens is then empty); null on the not-a-deployer answer. */
|
|
1278
1508
|
pump_error: boolean | null;
|
|
1279
1509
|
/** Our own LaunchLab/bonk + bags tokens for this deployer. */
|
|
@@ -1302,10 +1532,20 @@ export interface DeployerProfile {
|
|
|
1302
1532
|
avg_time_to_bond_minutes?: number | null;
|
|
1303
1533
|
tokens?: DeployerToken[] | null;
|
|
1304
1534
|
}
|
|
1535
|
+
/** `GET /deployer-hunter/{wallet}/tokens` — what `client.deployer.tokens()` returns. */
|
|
1305
1536
|
export interface DeployerTokensResponse {
|
|
1306
|
-
tokens:
|
|
1307
|
-
count: number;
|
|
1537
|
+
tokens: DeployerTokenRow[];
|
|
1308
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;
|
|
1309
1549
|
}
|
|
1310
1550
|
export interface KolBuysSummary {
|
|
1311
1551
|
count: number;
|
|
@@ -1374,6 +1614,10 @@ export interface DeployerAlertStats {
|
|
|
1374
1614
|
multiplier: MultiplierStats;
|
|
1375
1615
|
tiers: Record<string, TierStats>;
|
|
1376
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;
|
|
1377
1621
|
_rid?: string;
|
|
1378
1622
|
}
|
|
1379
1623
|
export interface BestToken {
|
|
@@ -1408,6 +1652,8 @@ export interface RecentBond {
|
|
|
1408
1652
|
time_to_bond_minutes?: number | null;
|
|
1409
1653
|
peak_market_cap?: number | null;
|
|
1410
1654
|
mc_at_bond?: number | null;
|
|
1655
|
+
/** create → migrate within ~90 s (curve filled by a bundle). */
|
|
1656
|
+
instant_bond?: boolean;
|
|
1411
1657
|
deployers: DeployerSummary;
|
|
1412
1658
|
}
|
|
1413
1659
|
export interface RecentBondsResponse {
|
|
@@ -1582,6 +1828,142 @@ export interface DeployerRewardsResponse {
|
|
|
1582
1828
|
note: string;
|
|
1583
1829
|
};
|
|
1584
1830
|
}
|
|
1831
|
+
export type DeployerActivityEventType = "launch" | "dev_buy" | "dev_sell" | "creator_transferred" | "fee_claim" | "funding_in" | "capital_out";
|
|
1832
|
+
/**
|
|
1833
|
+
* One event of a deployer's activity timeline. Fields present depend on
|
|
1834
|
+
* `type`; addresses are raw facts of the concrete event, never identity claims.
|
|
1835
|
+
*/
|
|
1836
|
+
export interface DeployerActivityEvent {
|
|
1837
|
+
id: string;
|
|
1838
|
+
type: DeployerActivityEventType;
|
|
1839
|
+
/** Time of the event itself (the window applies to this). */
|
|
1840
|
+
at: string;
|
|
1841
|
+
time_basis: "chain" | "ingest" | "chain_or_ingest";
|
|
1842
|
+
mint?: string | null;
|
|
1843
|
+
name?: string | null;
|
|
1844
|
+
symbol?: string | null;
|
|
1845
|
+
launchpad?: string | null;
|
|
1846
|
+
bonded_at?: string | null;
|
|
1847
|
+
/** launch: whether the creator paid the create fee (null = unknown). The payer address is never in this response. */
|
|
1848
|
+
fee_payer_is_creator?: boolean | null;
|
|
1849
|
+
external_fee_payer?: boolean | null;
|
|
1850
|
+
dev_buy_sol?: number | null;
|
|
1851
|
+
dev_buy_tokens?: number | null;
|
|
1852
|
+
dev_buy_supply_pct?: number | null;
|
|
1853
|
+
own_token?: boolean;
|
|
1854
|
+
sol?: number | null;
|
|
1855
|
+
tokens?: number | null;
|
|
1856
|
+
price_usd?: number | null;
|
|
1857
|
+
first_at?: string | null;
|
|
1858
|
+
last_at?: string | null;
|
|
1859
|
+
aggregate?: boolean;
|
|
1860
|
+
from?: string | null;
|
|
1861
|
+
to?: string | null;
|
|
1862
|
+
direction?: "in" | "out";
|
|
1863
|
+
initiated_by?: "creator" | "platform_admin" | "other_signer" | "unknown";
|
|
1864
|
+
tx?: string;
|
|
1865
|
+
kind?: "direct" | "social";
|
|
1866
|
+
amount_raw?: string | null;
|
|
1867
|
+
quote_mint?: string | null;
|
|
1868
|
+
source?: string;
|
|
1869
|
+
recipient?: string;
|
|
1870
|
+
asset?: string;
|
|
1871
|
+
decimals?: number | null;
|
|
1872
|
+
transfer_count?: number;
|
|
1873
|
+
sample_tx_ids?: string[];
|
|
1874
|
+
first_tx?: string | null;
|
|
1875
|
+
}
|
|
1876
|
+
export interface DeployerActivityFamilyCoverage {
|
|
1877
|
+
source: string;
|
|
1878
|
+
retention: string;
|
|
1879
|
+
scope?: string;
|
|
1880
|
+
truncated: boolean;
|
|
1881
|
+
loaded: boolean;
|
|
1882
|
+
/** false: part of the window lies outside the online store (trade months only in the archive), or the boundary is unknown. */
|
|
1883
|
+
complete: boolean;
|
|
1884
|
+
/** Earliest instant the online store answers this family completely. */
|
|
1885
|
+
complete_from: string | null;
|
|
1886
|
+
/** Before this instant events exist only in the archive (not served yet); null when the window does not cross it. */
|
|
1887
|
+
archive_required_before: string | null;
|
|
1888
|
+
boundary_known: boolean;
|
|
1889
|
+
/** Set when the family was not queried because it cannot apply (a wallet with no attributed launch has no dev trades). */
|
|
1890
|
+
skipped_reason?: "no_attributed_launch";
|
|
1891
|
+
}
|
|
1892
|
+
export interface DeployerActivityRange {
|
|
1893
|
+
from: string | null;
|
|
1894
|
+
to: string | null;
|
|
1895
|
+
}
|
|
1896
|
+
/** Requested vs online vs archive-only history (archive reads are a planned follow-up). */
|
|
1897
|
+
export interface DeployerActivityHistoryPlan {
|
|
1898
|
+
requested: DeployerActivityRange & {
|
|
1899
|
+
source: "since_param" | "plan_default";
|
|
1900
|
+
};
|
|
1901
|
+
effective: DeployerActivityRange & {
|
|
1902
|
+
clamped: boolean;
|
|
1903
|
+
max_days: number | null;
|
|
1904
|
+
};
|
|
1905
|
+
online: DeployerActivityRange & {
|
|
1906
|
+
served: boolean;
|
|
1907
|
+
};
|
|
1908
|
+
archive_only: (DeployerActivityRange & {
|
|
1909
|
+
served: boolean;
|
|
1910
|
+
reason: "archive_reads_not_enabled";
|
|
1911
|
+
}) | null;
|
|
1912
|
+
}
|
|
1913
|
+
/**
|
|
1914
|
+
* GET /deployer-hunter/{wallet}/activity — PRO+, KEYED (v1) only. Feature-flagged
|
|
1915
|
+
* server-side (503 `feature_disabled` until enabled).
|
|
1916
|
+
*/
|
|
1917
|
+
export interface DeployerActivityResponse {
|
|
1918
|
+
wallet: string;
|
|
1919
|
+
is_deployer: boolean;
|
|
1920
|
+
deployer: {
|
|
1921
|
+
tier: string | null;
|
|
1922
|
+
first_deploy_at: string | null;
|
|
1923
|
+
last_deploy_at: string | null;
|
|
1924
|
+
} | null;
|
|
1925
|
+
plan: {
|
|
1926
|
+
entitlement: "pro" | "ultra" | "business";
|
|
1927
|
+
window_days: number | null;
|
|
1928
|
+
max_limit: number;
|
|
1929
|
+
history: DeployerActivityHistoryPlan;
|
|
1930
|
+
};
|
|
1931
|
+
window: {
|
|
1932
|
+
since: string | null;
|
|
1933
|
+
until: string;
|
|
1934
|
+
max_days: number | null;
|
|
1935
|
+
applies_to: "event_time";
|
|
1936
|
+
};
|
|
1937
|
+
events: DeployerActivityEvent[];
|
|
1938
|
+
pagination: {
|
|
1939
|
+
limit: number;
|
|
1940
|
+
requested_limit: number;
|
|
1941
|
+
limit_capped: boolean;
|
|
1942
|
+
next_cursor: string | null;
|
|
1943
|
+
has_more: boolean;
|
|
1944
|
+
};
|
|
1945
|
+
coverage: {
|
|
1946
|
+
status: "observed" | "partial";
|
|
1947
|
+
families: Record<string, DeployerActivityFamilyCoverage>;
|
|
1948
|
+
future_events_dropped: number;
|
|
1949
|
+
note: string;
|
|
1950
|
+
};
|
|
1951
|
+
/** ULTRA/BUSINESS only, absent on PRO. Currently always not_available. */
|
|
1952
|
+
identity?: {
|
|
1953
|
+
status: "not_available";
|
|
1954
|
+
reason: "identity_stitching_not_released";
|
|
1955
|
+
note: string;
|
|
1956
|
+
};
|
|
1957
|
+
}
|
|
1958
|
+
export interface DeployerActivityParams {
|
|
1959
|
+
/** Clamped server-side to 100 (PRO, ULTRA) or 500 (BUSINESS). */
|
|
1960
|
+
limit?: number;
|
|
1961
|
+
cursor?: string;
|
|
1962
|
+
/** Requested window start (ISO 8601); clamped to the plan window. */
|
|
1963
|
+
since?: string;
|
|
1964
|
+
/** Comma list of event types. */
|
|
1965
|
+
types?: string;
|
|
1966
|
+
}
|
|
1585
1967
|
export type AlphaSort = "win_rate" | "pnl" | "roi";
|
|
1586
1968
|
export type AlphaPeriod = "7d" | "30d" | "all";
|
|
1587
1969
|
export interface AlphaLeaderboardParams {
|
|
@@ -1668,12 +2050,23 @@ export interface AlphaWalletResponse {
|
|
|
1668
2050
|
export interface AlphaLinkedWallet {
|
|
1669
2051
|
wallet_address: string;
|
|
1670
2052
|
shared_tokens: number;
|
|
2053
|
+
/** Average seconds between the two wallets' trades on shared tokens. */
|
|
2054
|
+
avg_time_diff_secs: number;
|
|
2055
|
+
/** Average SOL-size difference between paired trades. */
|
|
2056
|
+
avg_sol_diff: number;
|
|
1671
2057
|
similarity_score: number;
|
|
1672
2058
|
}
|
|
2059
|
+
/** `GET /alpha/{wallet}/linked`. */
|
|
1673
2060
|
export interface AlphaLinkedResponse {
|
|
1674
2061
|
wallet: string;
|
|
1675
|
-
|
|
1676
|
-
|
|
2062
|
+
/** Most similar co-trading wallets. */
|
|
2063
|
+
linked: AlphaLinkedWallet[];
|
|
2064
|
+
coverage?: TradeCoverage;
|
|
2065
|
+
_rid?: string;
|
|
2066
|
+
/** @deprecated Never sent by the API — the list is `linked`. */
|
|
2067
|
+
linked_wallets?: AlphaLinkedWallet[];
|
|
2068
|
+
/** @deprecated Never sent by the API — use `linked.length`. */
|
|
2069
|
+
total?: number;
|
|
1677
2070
|
}
|
|
1678
2071
|
export interface AlphaCapTableBuyer {
|
|
1679
2072
|
rank: number;
|
|
@@ -1732,6 +2125,23 @@ export interface AlphaBuyerQualityResponse {
|
|
|
1732
2125
|
cached_at: string;
|
|
1733
2126
|
/** Returned on all tiers. */
|
|
1734
2127
|
breakdown?: AlphaBuyerQualityBreakdown;
|
|
2128
|
+
/** Present only when breakdown.dump_cluster_count ≥ 1 and the daily signal-performance snapshot has a bucket for it. */
|
|
2129
|
+
signal_stats?: {
|
|
2130
|
+
dump_cluster_count: {
|
|
2131
|
+
value: number;
|
|
2132
|
+
/** "k>=1" | "k>=3" | "k>=5" */
|
|
2133
|
+
bucket: string;
|
|
2134
|
+
/** "dump" | "runner" */
|
|
2135
|
+
outcome: string;
|
|
2136
|
+
hit_rate: number;
|
|
2137
|
+
base_rate: number;
|
|
2138
|
+
lift: number;
|
|
2139
|
+
sample_n: number;
|
|
2140
|
+
window_days: number;
|
|
2141
|
+
as_of: string;
|
|
2142
|
+
summary: string;
|
|
2143
|
+
};
|
|
2144
|
+
};
|
|
1735
2145
|
note?: string;
|
|
1736
2146
|
/** v2.22.4 — trade-coverage disclosure (additive; absent on older cached responses). */
|
|
1737
2147
|
coverage?: TradeCoverage;
|
|
@@ -1843,13 +2253,27 @@ export interface TokenRiskResponse {
|
|
|
1843
2253
|
* names the split: trade-derived sub-fields are launchpad-pipeline scoped,
|
|
1844
2254
|
* on-chain sub-fields are unaffected by trade coverage. */
|
|
1845
2255
|
coverage?: TradeCoverage;
|
|
2256
|
+
/** Deploy-row lookup status behind `dev`: ok | not_found (no deploy row) | unavailable (lookup failed — `dev` is unknown, not absent). */
|
|
2257
|
+
dev_status?: "ok" | "not_found" | "unavailable";
|
|
2258
|
+
/** Single-mint `/risk` only: present when you passed a POOL address and the answer is for its token mint. */
|
|
2259
|
+
resolved_from?: {
|
|
2260
|
+
address: string;
|
|
2261
|
+
kind: "pool";
|
|
2262
|
+
dex: string;
|
|
2263
|
+
source: string;
|
|
2264
|
+
};
|
|
1846
2265
|
}
|
|
1847
2266
|
/** Per-mint error entry in a batch-risk response. Untracked mints come back as
|
|
1848
|
-
* `"not_tracked"`; a per-mint scoring failure comes back as `"error"
|
|
1849
|
-
*
|
|
2267
|
+
* `"not_tracked"`; a per-mint scoring failure comes back as `"error"`;
|
|
2268
|
+
* `"unavailable"` = a score-critical input could not be read (retry — never a
|
|
2269
|
+
* partial score). None of them fails the batch. */
|
|
1850
2270
|
export interface TokenRiskBatchError {
|
|
1851
2271
|
mint: string;
|
|
1852
|
-
error: "not_tracked" | "error";
|
|
2272
|
+
error: "not_tracked" | "error" | "unavailable";
|
|
2273
|
+
code?: "risk_inputs_unavailable";
|
|
2274
|
+
/** Which score-critical inputs could not be read (with `error: "unavailable"`). */
|
|
2275
|
+
unavailable_inputs?: string[];
|
|
2276
|
+
retryable?: boolean;
|
|
1853
2277
|
}
|
|
1854
2278
|
/** One entry in `TokenRiskBatchResponse.tokens` — either a full risk result
|
|
1855
2279
|
* (same shape as `alpha.risk(mint)`, plus `as_of`) or a per-mint error stub.
|
|
@@ -3336,6 +3760,15 @@ export interface CandlesResponse {
|
|
|
3336
3760
|
/** True on ULTRA keys — the net-flow / liquidity fields are populated. */
|
|
3337
3761
|
net_flow_included: boolean;
|
|
3338
3762
|
candles: Candle[];
|
|
3763
|
+
/** true = the page budget ran out before `limit` candles or `from` was reached; `covered_from` is then the oldest instant actually searched. */
|
|
3764
|
+
truncated?: boolean;
|
|
3765
|
+
covered_from?: string;
|
|
3766
|
+
/** Oldest instant your plan may read (PRO: 30 days); null = no plan floor. */
|
|
3767
|
+
history_floor?: string | null;
|
|
3768
|
+
/** true = `from` was moved forward to `history_floor`. */
|
|
3769
|
+
history_clamped?: boolean;
|
|
3770
|
+
/** true = the whole requested window is older than the plan floor (200 with no candles). */
|
|
3771
|
+
history_outside_plan?: boolean;
|
|
3339
3772
|
}
|
|
3340
3773
|
export type TokenFlowWindow = "1h" | "24h";
|
|
3341
3774
|
export interface TokenFlowParams {
|
|
@@ -3840,6 +4273,12 @@ export interface WalletPnlResponse {
|
|
|
3840
4273
|
computed_at?: string;
|
|
3841
4274
|
/** Only present on cache misses — TTL for this row in wallet_analyses. */
|
|
3842
4275
|
ttl_seconds?: number;
|
|
4276
|
+
/** Seconds since `computed_at` (source age survives a cache hit). */
|
|
4277
|
+
cache_age_seconds?: number;
|
|
4278
|
+
/** Cache hits: head_checked (no newer trade) | unverified (the check failed). */
|
|
4279
|
+
cache_validation?: "head_checked" | "unverified";
|
|
4280
|
+
/** A cache row existed but the wallet traded since; this response was recomputed. */
|
|
4281
|
+
cache_invalidated?: "new_activity";
|
|
3843
4282
|
/** v2.22.4 — trade-coverage disclosure; `in_scope: false` means the PnL is
|
|
3844
4283
|
* built from zero covered trades, not that the wallet never traded. */
|
|
3845
4284
|
coverage?: TradeCoverage;
|
|
@@ -3851,6 +4290,12 @@ export interface WalletPositionsResponse {
|
|
|
3851
4290
|
cache_hit?: boolean;
|
|
3852
4291
|
computed_at?: string | null;
|
|
3853
4292
|
ttl_seconds?: number | null;
|
|
4293
|
+
/** Seconds since `computed_at` (source age survives a cache hit). */
|
|
4294
|
+
cache_age_seconds?: number;
|
|
4295
|
+
/** Cache hits: head_checked (no newer trade) | unverified (the check failed). */
|
|
4296
|
+
cache_validation?: "head_checked" | "unverified";
|
|
4297
|
+
/** A cache row existed but the wallet traded since; this response was recomputed. */
|
|
4298
|
+
cache_invalidated?: "new_activity";
|
|
3854
4299
|
/** v2.22.4 — trade-coverage disclosure (additive). */
|
|
3855
4300
|
coverage?: TradeCoverage;
|
|
3856
4301
|
_rid?: string;
|
|
@@ -4018,14 +4463,64 @@ export interface TokenResponseBody {
|
|
|
4018
4463
|
launch_cohort_sol?: number | null;
|
|
4019
4464
|
/** Count of distinct first-20 buyers (0–20). */
|
|
4020
4465
|
launch_cohort_size?: number;
|
|
4466
|
+
/** Volume-weighted price over recent trades; null when there are none. */
|
|
4467
|
+
vwap_price_usd?: number | null;
|
|
4468
|
+
vwap_price_sol?: number | null;
|
|
4469
|
+
/** Address of the pool the headline price comes from; null when unknown. */
|
|
4470
|
+
primary_pool_address?: string | null;
|
|
4471
|
+
/** Which writer produced the selected price; null when there is no price. */
|
|
4472
|
+
price_source?: "mc_tracker" | "dex_stream" | null;
|
|
4473
|
+
/** Observation time of the selected price (the price-age anchor — not `last_trade_at`). */
|
|
4474
|
+
price_observed_at?: string | null;
|
|
4475
|
+
/** null = a price exists but its age is unknown (never a false "fresh"). */
|
|
4476
|
+
price_is_stale?: boolean | null;
|
|
4477
|
+
price_age_seconds?: number | null;
|
|
4478
|
+
/** Why `deployer` is null: unknown creator vs a failed lookup. */
|
|
4479
|
+
deployer_identity?: {
|
|
4480
|
+
identity_status: "resolved" | "unknown" | "lookup_failed";
|
|
4481
|
+
history_status: DeployerHistoryStatus | null;
|
|
4482
|
+
address: string | null;
|
|
4483
|
+
source: "deployer_tokens" | "pending_deploys" | null;
|
|
4484
|
+
};
|
|
4485
|
+
/** A token-SUPPLY burn was observed (mint supply decreased) — not LP evidence. null = unknown. */
|
|
4486
|
+
token_supply_burn_detected?: boolean | null;
|
|
4487
|
+
/** LP-burn evidence. Only "verified" means the LP was proven burnt. */
|
|
4488
|
+
lp_burn_status?: LpBurnStatus;
|
|
4489
|
+
}
|
|
4490
|
+
/** LP-burn evidence: only "verified" means proven; "unknown" is the honest default. */
|
|
4491
|
+
export type LpBurnStatus = "verified" | "not_verified" | "unknown";
|
|
4492
|
+
/** Creator-history label on `deployer_identity`. "unranked" tier is NOT "new". */
|
|
4493
|
+
export type DeployerHistoryStatus = "new_in_our_index" | "limited_history" | "reputation_pending" | "established";
|
|
4494
|
+
/** Includes accepted by `client.token.get(mint, { include })`. */
|
|
4495
|
+
export type TokenInclude = "buyer_quality" | "deployer";
|
|
4496
|
+
export interface TokenGetParams {
|
|
4497
|
+
/** 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. */
|
|
4498
|
+
include?: TokenInclude | TokenInclude[] | string;
|
|
4021
4499
|
}
|
|
4022
4500
|
export interface TokenResponse {
|
|
4023
4501
|
token: TokenResponseBody;
|
|
4502
|
+
/** Response assembly time; NOT the observation time of any field. */
|
|
4503
|
+
as_of?: string;
|
|
4504
|
+
/** Present with `include: "buyer_quality"` — the `/tokens/{mint}/buyer-quality` body. */
|
|
4505
|
+
buyer_quality?: AlphaBuyerQualityResponse;
|
|
4506
|
+
/** Present with `include: "deployer"` — the `/deployer-hunter/{wallet}` body. */
|
|
4507
|
+
deployer_profile?: DeployerProfileResponse;
|
|
4508
|
+
/** Per-include errors (a failing include never fails the request). */
|
|
4509
|
+
include_errors?: Record<string, {
|
|
4510
|
+
status: number;
|
|
4511
|
+
error?: string;
|
|
4512
|
+
[k: string]: unknown;
|
|
4513
|
+
}>;
|
|
4514
|
+
/** Includes that were requested. */
|
|
4515
|
+
included?: string[];
|
|
4024
4516
|
_rid?: string;
|
|
4025
4517
|
}
|
|
4026
4518
|
export interface TokenBatchResponse {
|
|
4027
4519
|
tokens: TokenResponseBody[];
|
|
4028
4520
|
count: number;
|
|
4521
|
+
as_of?: string;
|
|
4522
|
+
/** Fields that could not be read for this batch (null in every row, never defaults). */
|
|
4523
|
+
degraded_fields?: string[];
|
|
4029
4524
|
_rid?: string;
|
|
4030
4525
|
}
|
|
4031
4526
|
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";
|
|
@@ -4056,6 +4551,10 @@ export interface TokenListParams {
|
|
|
4056
4551
|
min_liq_mc_ratio?: number;
|
|
4057
4552
|
/** Filter by maximum liquidity_to_mc_ratio. */
|
|
4058
4553
|
max_liq_mc_ratio?: number;
|
|
4554
|
+
/** Token-SUPPLY burn observed (what `lp_burned` used to filter on). */
|
|
4555
|
+
supply_burn?: boolean;
|
|
4556
|
+
/** @deprecated Matches VERIFIED LP evidence only (nothing today) — use `lp_burn_status` per token or `supply_burn`. Sending it adds a `deprecations` entry. */
|
|
4557
|
+
lp_burned?: boolean;
|
|
4059
4558
|
/** Filter by deployer tier. */
|
|
4060
4559
|
deployer_tier?: "elite" | "good" | "moderate" | "rising" | "cold" | "unranked";
|
|
4061
4560
|
}
|
|
@@ -4080,6 +4579,20 @@ export interface TokenSummary {
|
|
|
4080
4579
|
liquidity_to_mc_ratio?: number | null;
|
|
4081
4580
|
/** Deployer Hunter tier for this token's deployer wallet. */
|
|
4082
4581
|
deployer_tier?: string | null;
|
|
4582
|
+
launchpad?: string | null;
|
|
4583
|
+
/** VERIFIED LP evidence only; null = unknown (the honest answer for nearly every token today). */
|
|
4584
|
+
lp_burned?: boolean | null;
|
|
4585
|
+
lp_burn_status?: LpBurnStatus;
|
|
4586
|
+
/** Token-SUPPLY burn observed (not LP evidence); null = unknown. */
|
|
4587
|
+
token_supply_burn_detected?: boolean | null;
|
|
4588
|
+
}
|
|
4589
|
+
/** Disclosure for a deprecated `/tokens` parameter that was sent. */
|
|
4590
|
+
export interface TokensDeprecation {
|
|
4591
|
+
param: string;
|
|
4592
|
+
status: "deprecated";
|
|
4593
|
+
/** Exactly what the parameter matches today. */
|
|
4594
|
+
matches: string;
|
|
4595
|
+
replacement: string;
|
|
4083
4596
|
}
|
|
4084
4597
|
export interface TokenListResponse {
|
|
4085
4598
|
tokens: TokenSummary[];
|
|
@@ -4092,6 +4605,8 @@ export interface TokenListResponse {
|
|
|
4092
4605
|
post_filtered: boolean;
|
|
4093
4606
|
};
|
|
4094
4607
|
filters: Record<string, unknown>;
|
|
4608
|
+
/** Present only when a deprecated parameter (today: `lp_burned`) was sent. */
|
|
4609
|
+
deprecations?: TokensDeprecation[];
|
|
4095
4610
|
_rid?: string;
|
|
4096
4611
|
}
|
|
4097
4612
|
export type AlmostBondedSort = "velocity_desc" | "progress_desc" | "eta_asc";
|
|
@@ -4234,25 +4749,38 @@ export interface WatchlistResponse {
|
|
|
4234
4749
|
_rid?: string;
|
|
4235
4750
|
}
|
|
4236
4751
|
export interface WalletTrackerEvent {
|
|
4237
|
-
id: string;
|
|
4238
4752
|
wallet_address: string;
|
|
4239
4753
|
label: string | null;
|
|
4240
4754
|
event_type: WalletTrackerEventType;
|
|
4241
|
-
|
|
4242
|
-
|
|
4755
|
+
/** `buy` / `sell` on swaps, `null` on transfers. */
|
|
4756
|
+
action: WalletTrackerAction | null;
|
|
4757
|
+
/** Unix seconds on the tracker's INGEST clock, not chain time. Use `slot` for chain order. */
|
|
4243
4758
|
block_time: number;
|
|
4244
|
-
/**
|
|
4245
|
-
|
|
4759
|
+
/** On-chain slot; null on rows written before slot tracking existed. */
|
|
4760
|
+
slot: number | null;
|
|
4761
|
+
/** true when the row arrived through a replay (reconnect/restart recovery), not live delivery. */
|
|
4762
|
+
replayed: boolean;
|
|
4763
|
+
/** ISO 8601 form of `block_time` (ingest time). */
|
|
4764
|
+
ingested_at: string;
|
|
4765
|
+
/** Alias of `ingested_at`, kept for older consumers. It never meant chain time. */
|
|
4766
|
+
timestamp: string;
|
|
4246
4767
|
token_mint: string | null;
|
|
4247
4768
|
token_symbol: string | null;
|
|
4248
4769
|
token_name: string | null;
|
|
4249
|
-
sol_amount: number;
|
|
4770
|
+
sol_amount: number | null;
|
|
4250
4771
|
token_amount: number | null;
|
|
4251
|
-
|
|
4252
|
-
counterparty
|
|
4772
|
+
/** Present only when a counterparty was matched. */
|
|
4773
|
+
counterparty?: string | null;
|
|
4253
4774
|
/** Transaction signature — BASIC tier: null. */
|
|
4254
4775
|
tx_signature: string | null;
|
|
4255
|
-
|
|
4776
|
+
/** @deprecated Never sent by the API. */
|
|
4777
|
+
id?: string;
|
|
4778
|
+
/** @deprecated Never sent by the API — use `ingested_at`. */
|
|
4779
|
+
block_time_iso?: string;
|
|
4780
|
+
/** @deprecated Never sent by the API. */
|
|
4781
|
+
price_per_token_sol?: number | null;
|
|
4782
|
+
/** @deprecated Never sent by the API. */
|
|
4783
|
+
program?: string | null;
|
|
4256
4784
|
}
|
|
4257
4785
|
export interface WalletTrackerTradesParams {
|
|
4258
4786
|
/** Filter by specific wallet address. */
|
|
@@ -4263,12 +4791,23 @@ export interface WalletTrackerTradesParams {
|
|
|
4263
4791
|
event_type?: WalletTrackerEventType;
|
|
4264
4792
|
/** Max results (1–200). Default: 50. */
|
|
4265
4793
|
limit?: number;
|
|
4266
|
-
/** Cursor for pagination: block_time of the last item from the previous page. */
|
|
4794
|
+
/** Cursor for pagination: block_time of the last item from the previous page (`next_cursor`). */
|
|
4267
4795
|
before?: number;
|
|
4796
|
+
/** Slot cursor (`next_cursor_slot`) — used with `order: "slot"`. */
|
|
4797
|
+
before_slot?: number;
|
|
4798
|
+
/** Page ordering column. */
|
|
4799
|
+
order?: "slot" | "block_time";
|
|
4268
4800
|
}
|
|
4269
4801
|
export interface WalletTrackerTradesResponse {
|
|
4270
4802
|
events: WalletTrackerEvent[];
|
|
4271
4803
|
count: number;
|
|
4804
|
+
/** Which column this page was ordered by. */
|
|
4805
|
+
ordered_by: "slot" | "block_time";
|
|
4806
|
+
/** `block_time` cursor for the next page (`before`); null on the last page. */
|
|
4807
|
+
next_cursor: number | null;
|
|
4808
|
+
/** Slot cursor for the next page (`before_slot`); null on the last page or on a page of pre-slot rows. */
|
|
4809
|
+
next_cursor_slot: number | null;
|
|
4810
|
+
_rid?: string;
|
|
4272
4811
|
}
|
|
4273
4812
|
export interface WalletTrackerWalletStats {
|
|
4274
4813
|
wallet_address: string;
|
|
@@ -4335,6 +4874,31 @@ export interface StreamToken {
|
|
|
4335
4874
|
/** DEX trade stream URL — only present for Ultra tier subscribers */
|
|
4336
4875
|
dex_ws_url?: string | null;
|
|
4337
4876
|
usage: string;
|
|
4877
|
+
subscribe_example?: {
|
|
4878
|
+
type: "subscribe";
|
|
4879
|
+
channels: string[];
|
|
4880
|
+
};
|
|
4881
|
+
/** The full registry of subscribable channel names. */
|
|
4882
|
+
channels?: string[];
|
|
4883
|
+
/** token:prices requires filters.mints (1..mint_cap). */
|
|
4884
|
+
token_prices?: {
|
|
4885
|
+
subscribe_example: Record<string, unknown>;
|
|
4886
|
+
mint_cap: number | null;
|
|
4887
|
+
note: string;
|
|
4888
|
+
};
|
|
4889
|
+
/** rhc:token_prices requires filters.addresses (1..address_cap, per connection across named subscriptions). */
|
|
4890
|
+
rhc_token_prices?: {
|
|
4891
|
+
subscribe_example: Record<string, unknown>;
|
|
4892
|
+
address_cap: number | null;
|
|
4893
|
+
coalesce_ms: number;
|
|
4894
|
+
note: string;
|
|
4895
|
+
};
|
|
4896
|
+
/** Named subscriptions: several channel + filter sets on one socket. */
|
|
4897
|
+
named_subscriptions?: {
|
|
4898
|
+
subscribe_example: Record<string, unknown>;
|
|
4899
|
+
max_per_connection: number | null;
|
|
4900
|
+
note: string;
|
|
4901
|
+
};
|
|
4338
4902
|
_rid?: string;
|
|
4339
4903
|
}
|
|
4340
4904
|
/** A live WebSocket session for your API key (as returned by
|
|
@@ -4468,6 +5032,370 @@ export interface WebhookTestResponse {
|
|
|
4468
5032
|
error?: string;
|
|
4469
5033
|
_rid?: string;
|
|
4470
5034
|
}
|
|
5035
|
+
/** `client.kol.wallets()` params — `GET /kol/wallets`. */
|
|
5036
|
+
export interface KolWalletsParams {
|
|
5037
|
+
/** 1–500, default 200. */
|
|
5038
|
+
limit?: number;
|
|
5039
|
+
/** 0–5000, default 0. */
|
|
5040
|
+
offset?: number;
|
|
5041
|
+
/** Default "true". Inactive wallets are kept for history but produce no new trades. */
|
|
5042
|
+
active?: "true" | "false" | "all" | boolean;
|
|
5043
|
+
/** Case-insensitive substring match on the KOL name (≤ 40 chars). */
|
|
5044
|
+
q?: string;
|
|
5045
|
+
/** Exact strategy_tag filter. */
|
|
5046
|
+
strategy?: string;
|
|
5047
|
+
}
|
|
5048
|
+
/** One tracked KOL on `GET /kol/wallets` (roster only — performance lives in `/kol/leaderboard`). */
|
|
5049
|
+
export interface KolRosterWallet {
|
|
5050
|
+
wallet_address: string;
|
|
5051
|
+
name: string | null;
|
|
5052
|
+
twitter_url: string | null;
|
|
5053
|
+
avatar_url: string | null;
|
|
5054
|
+
strategy_tag: string | null;
|
|
5055
|
+
twitter_followers: number | null;
|
|
5056
|
+
/** MadeOnSol users following this KOL. */
|
|
5057
|
+
follow_count: number;
|
|
5058
|
+
is_active: boolean;
|
|
5059
|
+
tracked_since: string | null;
|
|
5060
|
+
}
|
|
5061
|
+
export interface KolWalletsResponse {
|
|
5062
|
+
wallets: KolRosterWallet[];
|
|
5063
|
+
count: number;
|
|
5064
|
+
/** Total matching the filters (for paging). */
|
|
5065
|
+
total: number;
|
|
5066
|
+
limit: number;
|
|
5067
|
+
offset: number;
|
|
5068
|
+
has_more: boolean;
|
|
5069
|
+
/** Echo of the applied filters. */
|
|
5070
|
+
filters?: {
|
|
5071
|
+
active: string;
|
|
5072
|
+
q: string | null;
|
|
5073
|
+
strategy: string | null;
|
|
5074
|
+
};
|
|
5075
|
+
note?: string;
|
|
5076
|
+
_rid?: string;
|
|
5077
|
+
}
|
|
5078
|
+
/** `client.token.search()` params — `GET /tokens/search`. */
|
|
5079
|
+
export interface TokenSearchParams {
|
|
5080
|
+
/** Ticker or name fragment (1–64 chars). 1 char = exact symbol only; 2+ symbol prefix; 3+ name prefix; 4+ fuzzy. */
|
|
5081
|
+
q: string;
|
|
5082
|
+
/** 1–50, default 10. */
|
|
5083
|
+
limit?: number;
|
|
5084
|
+
}
|
|
5085
|
+
export interface TokenSearchResult {
|
|
5086
|
+
mint: string;
|
|
5087
|
+
symbol: string | null;
|
|
5088
|
+
name: string | null;
|
|
5089
|
+
match: "symbol_exact" | "symbol_prefix" | "name_prefix" | "fuzzy";
|
|
5090
|
+
market_cap_usd: number | null;
|
|
5091
|
+
liquidity_usd: number | null;
|
|
5092
|
+
primary_dex: string | null;
|
|
5093
|
+
last_trade_at: string | null;
|
|
5094
|
+
image_url?: string | null;
|
|
5095
|
+
twitter?: string | null;
|
|
5096
|
+
website?: string | null;
|
|
5097
|
+
}
|
|
5098
|
+
export interface TokenSearchResponse {
|
|
5099
|
+
q: string;
|
|
5100
|
+
count: number;
|
|
5101
|
+
results: TokenSearchResult[];
|
|
5102
|
+
/** Present when q is a blue-chip ticker (results are namesakes) or when nothing matched. */
|
|
5103
|
+
note?: string;
|
|
5104
|
+
_rid?: string;
|
|
5105
|
+
}
|
|
5106
|
+
/** `client.manifests()` params — `GET /manifests`. */
|
|
5107
|
+
export interface ManifestsParams {
|
|
5108
|
+
/** One dataset's history (newest first), e.g. "token_trades", "kol_trades". Pattern ^[a-z0-9_]{1,64}$. */
|
|
5109
|
+
dataset?: string;
|
|
5110
|
+
/** History depth when `dataset` is set: 1–365, default 30. */
|
|
5111
|
+
limit?: number;
|
|
5112
|
+
}
|
|
5113
|
+
/** One nightly as-of manifest for a dataset. Cite `fingerprint` to name the exact dataset state. */
|
|
5114
|
+
export interface DatasetManifest {
|
|
5115
|
+
dataset: string;
|
|
5116
|
+
/** Night the manifest was measured on the streaming replica. */
|
|
5117
|
+
data_as_of: string;
|
|
5118
|
+
produced_at: string;
|
|
5119
|
+
producer: string;
|
|
5120
|
+
ts_column: string;
|
|
5121
|
+
rows_24h: number;
|
|
5122
|
+
min_ts: string | null;
|
|
5123
|
+
max_ts: string | null;
|
|
5124
|
+
/** Planner estimate (partitions summed), not an exact count. */
|
|
5125
|
+
row_count_estimate: number;
|
|
5126
|
+
/** md5 of the column:type list — a change means the shape of the data changed. */
|
|
5127
|
+
schema_hash: string;
|
|
5128
|
+
/** md5(dataset|max_ts|rows_24h|estimate). */
|
|
5129
|
+
fingerprint: string;
|
|
5130
|
+
}
|
|
5131
|
+
export interface ManifestsResponse {
|
|
5132
|
+
manifests: DatasetManifest[];
|
|
5133
|
+
count: number;
|
|
5134
|
+
dataset: string | null;
|
|
5135
|
+
methodology_version: string;
|
|
5136
|
+
note: string;
|
|
5137
|
+
_rid?: string;
|
|
5138
|
+
}
|
|
5139
|
+
/** Signal names served by the Signal Scorecard. */
|
|
5140
|
+
export type SignalName = "dump_cluster_count" | "runner_rate" | "recycled_early_buyer_count" | "coordination_count" | "scout_first_touch";
|
|
5141
|
+
/** `GET /signals` — the Signal Scorecard catalog. */
|
|
5142
|
+
export interface SignalsCatalogResponse {
|
|
5143
|
+
name: string;
|
|
5144
|
+
description: string;
|
|
5145
|
+
signals: {
|
|
5146
|
+
name: SignalName | string;
|
|
5147
|
+
methodology: string;
|
|
5148
|
+
performance_endpoint: string;
|
|
5149
|
+
}[];
|
|
5150
|
+
docs: string;
|
|
5151
|
+
_rid?: string;
|
|
5152
|
+
}
|
|
5153
|
+
export interface SignalPerformanceBucket {
|
|
5154
|
+
bucket: string;
|
|
5155
|
+
hit_rate: number | null;
|
|
5156
|
+
base_rate: number | null;
|
|
5157
|
+
lift: number | null;
|
|
5158
|
+
sample_n: number | null;
|
|
5159
|
+
}
|
|
5160
|
+
/** `GET /signals/{name}/performance`. Before the first computation the body is only `{ signal, buckets: [], note }`. */
|
|
5161
|
+
export interface SignalPerformanceResponse {
|
|
5162
|
+
signal: string;
|
|
5163
|
+
buckets: SignalPerformanceBucket[];
|
|
5164
|
+
/** Present (with empty buckets) only when no performance data has been computed yet. */
|
|
5165
|
+
note?: string | null;
|
|
5166
|
+
metric_type?: string;
|
|
5167
|
+
outcome?: string;
|
|
5168
|
+
window_days?: number;
|
|
5169
|
+
base_rate?: number | null;
|
|
5170
|
+
test_from?: string | null;
|
|
5171
|
+
test_to?: string | null;
|
|
5172
|
+
as_of?: string;
|
|
5173
|
+
methodology?: string;
|
|
5174
|
+
/** Only with `history: true` — one entry per snapshot, newest first, ≤ 90. */
|
|
5175
|
+
history?: {
|
|
5176
|
+
as_of: string;
|
|
5177
|
+
buckets: {
|
|
5178
|
+
bucket: string;
|
|
5179
|
+
hit_rate: number | null;
|
|
5180
|
+
lift: number | null;
|
|
5181
|
+
sample_n: number | null;
|
|
5182
|
+
}[];
|
|
5183
|
+
}[] | null;
|
|
5184
|
+
_rid?: string;
|
|
5185
|
+
}
|
|
5186
|
+
/** `client.wallet.flags()` params — `GET /wallet/{address}/flags`. */
|
|
5187
|
+
export interface WalletFlagsParams {
|
|
5188
|
+
/** ISO-8601 with offset. Default: now. */
|
|
5189
|
+
as_of?: string;
|
|
5190
|
+
/** Include the change series (newest first, ≤ 200 rows). */
|
|
5191
|
+
history?: boolean;
|
|
5192
|
+
}
|
|
5193
|
+
export type WalletFlagSource = "deployer" | "alpha" | "dump_cluster" | "kol" | "sniper" | "bundler";
|
|
5194
|
+
/** A source's latest snapshot at or before `as_of`, plus `snapshot_at` / `active` / `carried`. Other keys depend on the source. */
|
|
5195
|
+
export interface WalletFlagSnapshot {
|
|
5196
|
+
snapshot_at: string;
|
|
5197
|
+
/** false = a membership source whose latest row says the wallet dropped out. */
|
|
5198
|
+
active: boolean;
|
|
5199
|
+
/** true = recorded before `as_of` and unchanged by then. */
|
|
5200
|
+
carried: boolean;
|
|
5201
|
+
[key: string]: unknown;
|
|
5202
|
+
}
|
|
5203
|
+
export interface WalletFlagsResponse {
|
|
5204
|
+
wallet: string;
|
|
5205
|
+
as_of: string;
|
|
5206
|
+
/** Sources with a snapshot at or before `as_of` whose latest state is still active. */
|
|
5207
|
+
flagged: WalletFlagSource[];
|
|
5208
|
+
/** One key per source; null = no snapshot at or before `as_of` (we had nothing on the wallet then). */
|
|
5209
|
+
sources: Record<WalletFlagSource, WalletFlagSnapshot | null>;
|
|
5210
|
+
/** Only with `history: true`. */
|
|
5211
|
+
history?: {
|
|
5212
|
+
source: string;
|
|
5213
|
+
flags: Record<string, unknown>;
|
|
5214
|
+
snapshot_at: string;
|
|
5215
|
+
}[];
|
|
5216
|
+
/** Funding evidence block, when that feature is on for your tier. Typed in full by `client.wallet.funding()`. */
|
|
5217
|
+
funding?: Record<string, unknown>;
|
|
5218
|
+
note: string;
|
|
5219
|
+
_rid?: string;
|
|
5220
|
+
}
|
|
5221
|
+
/** `client.wallet.batchTrades()` params — `POST /wallet/batch/trades`. */
|
|
5222
|
+
export interface WalletBatchTradesParams {
|
|
5223
|
+
/** 1–50 base58 wallet addresses. */
|
|
5224
|
+
wallets: string[];
|
|
5225
|
+
/** Unix seconds; only trades strictly after this. Default: 90 days ago (cannot reach further back). */
|
|
5226
|
+
since?: number;
|
|
5227
|
+
/** 1–100, default 20. */
|
|
5228
|
+
limit_per_wallet?: number;
|
|
5229
|
+
action?: "buy" | "sell";
|
|
5230
|
+
}
|
|
5231
|
+
export interface WalletBatchTrade {
|
|
5232
|
+
tx_signature: string;
|
|
5233
|
+
token_mint: string;
|
|
5234
|
+
action: "buy" | "sell";
|
|
5235
|
+
sol_amount: number;
|
|
5236
|
+
token_amount: number;
|
|
5237
|
+
/** This trade's executed price (sol_amount / token_amount). */
|
|
5238
|
+
price_sol: number | null;
|
|
5239
|
+
price_usd: number | null;
|
|
5240
|
+
/** Canonical pool price sampled near this trade's slot. */
|
|
5241
|
+
market_price_sol: number | null;
|
|
5242
|
+
market_price_usd: number | null;
|
|
5243
|
+
block_time: number;
|
|
5244
|
+
traded_at: string;
|
|
5245
|
+
}
|
|
5246
|
+
export interface WalletBatchTradesResponse {
|
|
5247
|
+
wallets: {
|
|
5248
|
+
wallet: string;
|
|
5249
|
+
count: number;
|
|
5250
|
+
trades: WalletBatchTrade[];
|
|
5251
|
+
}[];
|
|
5252
|
+
since: number;
|
|
5253
|
+
/** Newest block_time seen — pass back as `since` on the next poll. */
|
|
5254
|
+
next_since: number;
|
|
5255
|
+
limit_per_wallet: number;
|
|
5256
|
+
coverage: {
|
|
5257
|
+
history_start_days: number;
|
|
5258
|
+
scope: string;
|
|
5259
|
+
note: string;
|
|
5260
|
+
};
|
|
5261
|
+
_rid?: string;
|
|
5262
|
+
}
|
|
5263
|
+
/** One wallet on `POST /wallet-list/score`. */
|
|
5264
|
+
export interface WalletListScoreEntry {
|
|
5265
|
+
address: string;
|
|
5266
|
+
status: "scored" | "no_trades" | "not_computed";
|
|
5267
|
+
/** 0–100; null when there are no closed positions to score. */
|
|
5268
|
+
score: number | null;
|
|
5269
|
+
/** Same shape as `client.wallet.pnl()`'s `summary`; null unless status is "scored". */
|
|
5270
|
+
pnl: WalletPnlSummary | null;
|
|
5271
|
+
reputation?: {
|
|
5272
|
+
is_sniper: boolean;
|
|
5273
|
+
is_bundler: boolean;
|
|
5274
|
+
is_dumper: boolean;
|
|
5275
|
+
is_kol: boolean;
|
|
5276
|
+
kol_name: string | null;
|
|
5277
|
+
bot_confidence: BotConfidence | null;
|
|
5278
|
+
};
|
|
5279
|
+
cache_hit?: boolean | null;
|
|
5280
|
+
computed_at?: string | null;
|
|
5281
|
+
/** Seconds since computed_at. */
|
|
5282
|
+
cache_age_seconds?: number | null;
|
|
5283
|
+
/** Present only when status is "not_computed". */
|
|
5284
|
+
message?: string;
|
|
5285
|
+
}
|
|
5286
|
+
export interface WalletListScoreResponse {
|
|
5287
|
+
wallets: WalletListScoreEntry[];
|
|
5288
|
+
count: number;
|
|
5289
|
+
scored: number;
|
|
5290
|
+
cached: number;
|
|
5291
|
+
computed_now: number;
|
|
5292
|
+
no_trades: number;
|
|
5293
|
+
not_computed: number;
|
|
5294
|
+
max_wallets: number;
|
|
5295
|
+
max_live_compute: number;
|
|
5296
|
+
score_methodology: string;
|
|
5297
|
+
as_of: string;
|
|
5298
|
+
_rid?: string;
|
|
5299
|
+
}
|
|
5300
|
+
/** `client.wallet.funding()` params — `GET /wallet/{address}/funding`. */
|
|
5301
|
+
export interface WalletFundingParams {
|
|
5302
|
+
/** Shared funders per page: 1–20, default 10. */
|
|
5303
|
+
limit?: number;
|
|
5304
|
+
/** 0–100, default 0. */
|
|
5305
|
+
offset?: number;
|
|
5306
|
+
}
|
|
5307
|
+
/** Aggregated transfers of one asset from a funder to a wallet. Amounts are raw base-unit STRINGS (u64/u256-safe). */
|
|
5308
|
+
export interface FundingTransferLink {
|
|
5309
|
+
asset: string;
|
|
5310
|
+
symbol: string | null;
|
|
5311
|
+
decimals: number | null;
|
|
5312
|
+
/** Raw base units, as a decimal string. */
|
|
5313
|
+
amount_raw: string;
|
|
5314
|
+
/** Human amount as a decimal string; null when decimals are unknown. */
|
|
5315
|
+
amount: string | null;
|
|
5316
|
+
transfer_count: number;
|
|
5317
|
+
first_seen: string;
|
|
5318
|
+
last_seen: string;
|
|
5319
|
+
transactions: {
|
|
5320
|
+
tx: string;
|
|
5321
|
+
explorer_url: string;
|
|
5322
|
+
}[];
|
|
5323
|
+
}
|
|
5324
|
+
/** An address that funded this wallet AND other tracked wallets. */
|
|
5325
|
+
export interface SharedFunder {
|
|
5326
|
+
funder: string;
|
|
5327
|
+
funder_explorer_url: string;
|
|
5328
|
+
funder_label: {
|
|
5329
|
+
label: string;
|
|
5330
|
+
category: string;
|
|
5331
|
+
verified: boolean;
|
|
5332
|
+
} | null;
|
|
5333
|
+
/** Known exchange/service: common funding, not a connection signal. */
|
|
5334
|
+
service_funder: boolean;
|
|
5335
|
+
to_this_wallet: FundingTransferLink[];
|
|
5336
|
+
connected_wallets: {
|
|
5337
|
+
address: string;
|
|
5338
|
+
explorer_url: string;
|
|
5339
|
+
tracked_as: string[];
|
|
5340
|
+
transfers: FundingTransferLink[];
|
|
5341
|
+
}[];
|
|
5342
|
+
}
|
|
5343
|
+
export type FundingStatus = "ok" | "partial_coverage" | "not_tracked" | "collection_disabled" | "collection_stale" | "not_started";
|
|
5344
|
+
/**
|
|
5345
|
+
* `GET /wallet/{address}/funding` (PRO+). Evidence of a funding connection — not
|
|
5346
|
+
* proof of common ownership. Forward-looking coverage from monitoring start;
|
|
5347
|
+
* SOL-only on Solana. A 503 `feature_disabled` / `funding_data_unavailable` is
|
|
5348
|
+
* never an empty result.
|
|
5349
|
+
*/
|
|
5350
|
+
export interface WalletFundingResponse {
|
|
5351
|
+
chain: string;
|
|
5352
|
+
/** CAIP-2 chain id, e.g. "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp". */
|
|
5353
|
+
chain_id: string;
|
|
5354
|
+
native_asset: string;
|
|
5355
|
+
address: string;
|
|
5356
|
+
status: FundingStatus;
|
|
5357
|
+
summary: string;
|
|
5358
|
+
shared_funders: SharedFunder[];
|
|
5359
|
+
pagination: {
|
|
5360
|
+
limit: number;
|
|
5361
|
+
offset: number;
|
|
5362
|
+
total: number;
|
|
5363
|
+
has_more: boolean;
|
|
5364
|
+
};
|
|
5365
|
+
/** Collection state needed to read an empty answer (monitoring start, heartbeat, tracked intervals, known gaps…). */
|
|
5366
|
+
coverage: {
|
|
5367
|
+
collection_enabled: boolean;
|
|
5368
|
+
mode: string;
|
|
5369
|
+
heartbeat_at: string | null;
|
|
5370
|
+
collector_current: boolean;
|
|
5371
|
+
monitoring_started_at: string | null;
|
|
5372
|
+
last_committed_position: string | null;
|
|
5373
|
+
last_committed_at: string | null;
|
|
5374
|
+
tracked_intervals: {
|
|
5375
|
+
source: string;
|
|
5376
|
+
tracked_since: string;
|
|
5377
|
+
tracked_until: string | null;
|
|
5378
|
+
}[];
|
|
5379
|
+
known_gaps: Record<string, unknown>[];
|
|
5380
|
+
supported_transfer_types: string[];
|
|
5381
|
+
unsupported_transfer_types: string[];
|
|
5382
|
+
recovery: string | null;
|
|
5383
|
+
history: string;
|
|
5384
|
+
[key: string]: unknown;
|
|
5385
|
+
};
|
|
5386
|
+
/**
|
|
5387
|
+
* "Where was this wallet funded from?" — direct funding facts (PRO). Absent
|
|
5388
|
+
* when that read degraded. Loosely typed: its fact objects carry a
|
|
5389
|
+
* `relationships` block (cross-wallet counts) only for ULTRA+ keys; it is
|
|
5390
|
+
* redacted below ULTRA.
|
|
5391
|
+
*/
|
|
5392
|
+
direct_funding?: {
|
|
5393
|
+
observed: boolean;
|
|
5394
|
+
[key: string]: unknown;
|
|
5395
|
+
};
|
|
5396
|
+
disclaimer: string;
|
|
5397
|
+
_rid?: string;
|
|
5398
|
+
}
|
|
4471
5399
|
export interface MadeOnSolConfig {
|
|
4472
5400
|
/**
|
|
4473
5401
|
* MadeOnSol API key (starts with `msk_`).
|
|
@@ -4495,6 +5423,12 @@ declare class KolClient {
|
|
|
4495
5423
|
* @param wallet Solana wallet address.
|
|
4496
5424
|
* @param params Optional: include "pnl_by_token" for per-token breakdown.
|
|
4497
5425
|
*/
|
|
5426
|
+
/**
|
|
5427
|
+
* Tracked KOL roster (`GET /kol/wallets`): address, name, X handle, strategy
|
|
5428
|
+
* tag, follower counts, tracked-since. Roster only; performance is in
|
|
5429
|
+
* `leaderboard()` / `wallet()`. Any key.
|
|
5430
|
+
*/
|
|
5431
|
+
wallets(params?: KolWalletsParams): Promise<KolWalletsResponse>;
|
|
4498
5432
|
wallet(wallet: string, params?: KolWalletParams): Promise<KolWalletProfile>;
|
|
4499
5433
|
/**
|
|
4500
5434
|
* Detect coordinated buying activity across KOL wallets.
|
|
@@ -4571,12 +5505,12 @@ declare class KolClient {
|
|
|
4571
5505
|
* v1.9 — Scout leaderboard: top KOLs ranked by scout score, first-touch frequency,
|
|
4572
5506
|
* and swarm attraction rate. ULTRA only.
|
|
4573
5507
|
*/
|
|
4574
|
-
scoutLeaderboard(params?: ScoutLeaderboardParams): Promise<
|
|
5508
|
+
scoutLeaderboard(params?: ScoutLeaderboardParams): Promise<ScoutLeaderboardResponse>;
|
|
4575
5509
|
/**
|
|
4576
5510
|
* v1.9 — Coordination history: past coordination alert fires with token, score, KOL count.
|
|
4577
5511
|
* ULTRA only.
|
|
4578
5512
|
*/
|
|
4579
|
-
coordinationHistory(params?: CoordinationHistoryParams): Promise<
|
|
5513
|
+
coordinationHistory(params?: CoordinationHistoryParams): Promise<CoordinationHistoryResponse>;
|
|
4580
5514
|
}
|
|
4581
5515
|
declare class AlphaClient {
|
|
4582
5516
|
private readonly _fetch;
|
|
@@ -4732,7 +5666,14 @@ declare class TokenClient {
|
|
|
4732
5666
|
* **ULTRA** adds individual KOL wallet addresses in kol_activity.top_buyers[].
|
|
4733
5667
|
* @param mint Token mint address (base58).
|
|
4734
5668
|
*/
|
|
4735
|
-
get(mint: string): Promise<TokenResponse>;
|
|
5669
|
+
get(mint: string, params?: TokenGetParams): Promise<TokenResponse>;
|
|
5670
|
+
/**
|
|
5671
|
+
* Resolve a ticker or name to candidate mints (`GET /tokens/search`), ranked
|
|
5672
|
+
* exact ticker, symbol prefix, name prefix, fuzzy — by liquidity inside each
|
|
5673
|
+
* tier. Memecoin/launchpad universe only: `q: "SOL"` returns tokens NAMED SOL
|
|
5674
|
+
* and `note` says so. Any key, including Free.
|
|
5675
|
+
*/
|
|
5676
|
+
search(params: TokenSearchParams): Promise<TokenSearchResponse>;
|
|
4736
5677
|
/**
|
|
4737
5678
|
* Batch lookup of up to 50 mints. Returns the same per-mint shape as `get()`
|
|
4738
5679
|
* in a single round-trip — DB queries batched with `IN(...)`, dex-stream +
|
|
@@ -5078,6 +6019,20 @@ declare class DeployerClient {
|
|
|
5078
6019
|
* @param wallet Wallet address.
|
|
5079
6020
|
*/
|
|
5080
6021
|
deployerRewards(wallet: string): Promise<DeployerRewardsResponse>;
|
|
6022
|
+
/**
|
|
6023
|
+
* A wallet's deployer activity as ONE newest-first timeline: launches, its own
|
|
6024
|
+
* dev buys/sells, creator transfers, fee claims, funding in and capital out.
|
|
6025
|
+
* The window applies to each EVENT's own time (PRO 30 d, ULTRA 365 d, BUSINESS
|
|
6026
|
+
* unbounded; page clamped to 100 / 100 / 500, echoed in `plan`). History is
|
|
6027
|
+
* online-only for now: check `coverage.families.<f>.complete`,
|
|
6028
|
+
* `archive_required_before` and `plan.history.archive_only` before reading an
|
|
6029
|
+
* empty range as "nothing happened". PRO responses never carry an identity
|
|
6030
|
+
* block or a fee-payer address; ULTRA/BUSINESS `identity` is `not_available`
|
|
6031
|
+
* until identity stitching is released. Paginate with `next_cursor`.
|
|
6032
|
+
* @param wallet Wallet address (deployer or not: `is_deployer` says which).
|
|
6033
|
+
* @param opts Optional: limit, cursor, since (ISO 8601), types (comma list).
|
|
6034
|
+
*/
|
|
6035
|
+
deployerActivity(wallet: string, opts?: DeployerActivityParams): Promise<DeployerActivityResponse>;
|
|
5081
6036
|
}
|
|
5082
6037
|
declare class WalletTrackerClient {
|
|
5083
6038
|
private readonly _get;
|
|
@@ -5130,6 +6085,9 @@ export interface SniperDeploy {
|
|
|
5130
6085
|
detected_at: string;
|
|
5131
6086
|
detection_region: string;
|
|
5132
6087
|
detection_confirmed: boolean;
|
|
6088
|
+
/** Deployer attribution cross-checked against the confirmed create tx (every 15 min). Distinct from `detection_confirmed` (transport-level). */
|
|
6089
|
+
attribution_status?: "unverified" | "confirmed" | "corrected" | null;
|
|
6090
|
+
attribution_checked_at?: string | null;
|
|
5133
6091
|
deployer_tier: string | null;
|
|
5134
6092
|
deployer_bond_rate: number | null;
|
|
5135
6093
|
deployer_total_bonded: number | null;
|
|
@@ -5337,6 +6295,34 @@ declare class WalletClient {
|
|
|
5337
6295
|
* ```
|
|
5338
6296
|
*/
|
|
5339
6297
|
trades(address: string, params?: WalletTradesParams): Promise<WalletTradesResponse>;
|
|
6298
|
+
/**
|
|
6299
|
+
* Point-in-time wallet flags (`GET /wallet/{address}/flags`): for every flag
|
|
6300
|
+
* source (deployer, alpha, dump_cluster, kol, sniper, bundler) the latest
|
|
6301
|
+
* write-on-change snapshot at or before `as_of` (default now). A null source
|
|
6302
|
+
* means we had nothing on the wallet then. Snapshots exist from 2026-08-28.
|
|
6303
|
+
* **PRO+**.
|
|
6304
|
+
*/
|
|
6305
|
+
flags(address: string, params?: WalletFlagsParams): Promise<WalletFlagsResponse>;
|
|
6306
|
+
/**
|
|
6307
|
+
* Shared-funder evidence (`GET /wallet/{address}/funding`): addresses that sent
|
|
6308
|
+
* a qualifying SOL transfer to this wallet AND to other tracked wallets, with
|
|
6309
|
+
* the supporting transactions, plus `direct_funding`. Amounts are raw strings.
|
|
6310
|
+
* **PRO+**; `relationships` counts inside `direct_funding` are ULTRA+.
|
|
6311
|
+
*/
|
|
6312
|
+
funding(address: string, params?: WalletFundingParams): Promise<WalletFundingResponse>;
|
|
6313
|
+
/**
|
|
6314
|
+
* Recent trades for up to 50 wallets in one call (`POST /wallet/batch/trades`),
|
|
6315
|
+
* the batch twin of `trades()`: newest first, 90-day window. Feed `next_since`
|
|
6316
|
+
* back as `since` to poll. One quota unit. **PRO+**.
|
|
6317
|
+
*/
|
|
6318
|
+
batchTrades(params: WalletBatchTradesParams): Promise<WalletBatchTradesResponse>;
|
|
6319
|
+
/**
|
|
6320
|
+
* Score a customer-supplied list of up to 200 wallets on FIFO trading
|
|
6321
|
+
* performance (`POST /wallet-list/score`). Only the first 25 UNCACHED wallets
|
|
6322
|
+
* are computed per call; the rest come back `status: "not_computed"`, so call
|
|
6323
|
+
* again. **Enterprise tier only.**
|
|
6324
|
+
*/
|
|
6325
|
+
scoreList(wallets: string[]): Promise<WalletListScoreResponse>;
|
|
5340
6326
|
}
|
|
5341
6327
|
declare class CoordinationAlertsClient {
|
|
5342
6328
|
private readonly _get;
|
|
@@ -5695,17 +6681,29 @@ export declare class MadeOnSol {
|
|
|
5695
6681
|
*/
|
|
5696
6682
|
me(): Promise<MeResponse>;
|
|
5697
6683
|
/**
|
|
5698
|
-
*
|
|
5699
|
-
*
|
|
6684
|
+
* Signal Scorecard for one signal (`GET /signals/{name}/performance`):
|
|
6685
|
+
* out-of-sample per-bucket hit rate, base rate and lift. `history: true` adds
|
|
6686
|
+
* the per-snapshot series. Available on all tiers.
|
|
5700
6687
|
*
|
|
5701
|
-
* @param name Signal name (e.g. "
|
|
6688
|
+
* @param name Signal name — see `listSignals()` (e.g. "dump_cluster_count", "scout_first_touch").
|
|
5702
6689
|
* @example
|
|
5703
6690
|
* ```ts
|
|
5704
|
-
* const perf = await client.getSignalPerformance("
|
|
5705
|
-
* console.log(
|
|
6691
|
+
* const perf = await client.getSignalPerformance("dump_cluster_count");
|
|
6692
|
+
* for (const b of perf.buckets) console.log(b.bucket, b.hit_rate, b.lift);
|
|
5706
6693
|
* ```
|
|
5707
6694
|
*/
|
|
5708
|
-
getSignalPerformance(name: string
|
|
6695
|
+
getSignalPerformance(name: SignalName | string, params?: {
|
|
6696
|
+
history?: boolean;
|
|
6697
|
+
}): Promise<SignalPerformanceResponse>;
|
|
6698
|
+
/** Signal Scorecard catalog (`GET /signals`): every signal, its methodology and its performance endpoint. Any key. */
|
|
6699
|
+
listSignals(): Promise<SignalsCatalogResponse>;
|
|
6700
|
+
/**
|
|
6701
|
+
* As-of dataset manifests (`GET /manifests`): one nightly manifest per dataset
|
|
6702
|
+
* (rows in the last 24 h, min/max event time, planner row estimate,
|
|
6703
|
+
* `schema_hash`, `fingerprint`). Cite the fingerprint to name the exact data
|
|
6704
|
+
* state a report used; `dataset` walks one dataset's history. Any key.
|
|
6705
|
+
*/
|
|
6706
|
+
manifests(params?: ManifestsParams): Promise<ManifestsResponse>;
|
|
5709
6707
|
private _request;
|
|
5710
6708
|
private _requestWithBody;
|
|
5711
6709
|
private _handleResponse;
|