madeonsol 4.4.0 → 4.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +31 -27
- package/dist/index.d.ts +959 -16
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +88 -16
- package/dist/index.js.map +1 -1
- package/dist/stream.d.ts +2 -2
- package/dist/stream.d.ts.map +1 -1
- package/dist/stream.js +1 -0
- package/dist/stream.js.map +1 -1
- package/llms.txt +127 -117
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -171,6 +171,7 @@ export interface KolFeedResponse extends FreeTierDelayMeta {
|
|
|
171
171
|
error: string;
|
|
172
172
|
}>;
|
|
173
173
|
_rid?: string;
|
|
174
|
+
data_contract?: DataContract;
|
|
174
175
|
}
|
|
175
176
|
export interface KolLeaderboardEntry {
|
|
176
177
|
name?: string | null;
|
|
@@ -200,6 +201,23 @@ export interface KolLeaderboardEntry {
|
|
|
200
201
|
entry_mc_samples?: number | null;
|
|
201
202
|
/** Average entry market cap (USD) over the period; null when unknown. */
|
|
202
203
|
avg_entry_mc_usd?: number | null;
|
|
204
|
+
strategy_tag_source?: "classifier_076" | "fifo_auto_v2" | "in_window_auto_512" | null;
|
|
205
|
+
auto_strategy_tag_source?: "fifo_auto_v2" | "in_window_auto_512";
|
|
206
|
+
/** `fifo_full_history` = win_rate is the full-history FIFO win rate. Absent = the in-window leaderboard win rate. */
|
|
207
|
+
win_rate_method?: "fifo_full_history" | "unavailable";
|
|
208
|
+
/** `not_computed_for_period` = the FIFO win rate exists for 7d and 30d only (win_rate null for other periods). */
|
|
209
|
+
win_rate_status?: KolWinrateStatus | "not_computed_for_period";
|
|
210
|
+
win_rate_window?: "7d" | "30d" | null;
|
|
211
|
+
win_rate_rule_version?: string | null;
|
|
212
|
+
win_rate_computed_at?: string | null;
|
|
213
|
+
/** Win-rate denominator for win_rate_window. */
|
|
214
|
+
closed_positions_known?: number | null;
|
|
215
|
+
/** Closed positions with an unproven realization in win_rate_window (not in the denominator). */
|
|
216
|
+
unknown_realizations_winrate?: number | null;
|
|
217
|
+
/** (KOL, token) positions with a sell of unknown proceeds, excluded from realized PnL / win rate / ROI. */
|
|
218
|
+
unknown_realizations?: number;
|
|
219
|
+
unknown_proceeds_sells?: number;
|
|
220
|
+
incomplete_reasons?: Array<"proceeds_unattributed" | (string & {})>;
|
|
203
221
|
}
|
|
204
222
|
export interface KolLeaderboardPagination {
|
|
205
223
|
limit: number;
|
|
@@ -253,6 +271,8 @@ export interface KolPnlByToken {
|
|
|
253
271
|
mint?: string;
|
|
254
272
|
/** @deprecated Never sent by the API — use `pnl` (SOL). */
|
|
255
273
|
realized_pnl_usd?: number;
|
|
274
|
+
/** Sells with unknown proceeds on this token. */
|
|
275
|
+
unknown_proceeds_sells?: number;
|
|
256
276
|
}
|
|
257
277
|
/** `recent_winners` / `recent_losers` row on `GET /kol/{wallet}`. */
|
|
258
278
|
export interface KolWalletClosedToken {
|
|
@@ -666,6 +686,8 @@ export interface TokenTopTradersParams {
|
|
|
666
686
|
window_days?: number;
|
|
667
687
|
/** Minimum SOL bought to qualify (default 0.1). */
|
|
668
688
|
min_bought_sol?: number;
|
|
689
|
+
/** Page offset (default 0). */
|
|
690
|
+
offset?: number;
|
|
669
691
|
}
|
|
670
692
|
/** One wallet in a top-traders response, enriched with KOL identity + alpha-wallet stats. */
|
|
671
693
|
export interface TokenTopTrader {
|
|
@@ -676,12 +698,18 @@ export interface TokenTopTrader {
|
|
|
676
698
|
sells: number;
|
|
677
699
|
bought_sol: number;
|
|
678
700
|
sold_sol: number;
|
|
701
|
+
/** Realized SOL PnL on the matched portion; cost basis per the response's `cost_method`. */
|
|
679
702
|
realized_pnl_sol: number;
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
703
|
+
/** null when still holding a token we cannot price (never valued at 0). */
|
|
704
|
+
unrealized_pnl_sol: number | null;
|
|
705
|
+
total_pnl_sol: number | null;
|
|
706
|
+
held_value_sol: number | null;
|
|
683
707
|
roi: number | null;
|
|
684
708
|
still_holding: boolean;
|
|
709
|
+
/** FIFO only (2026-10-14): tokens sold without an observed earlier buy (proceeds excluded from realized PnL). null under `average_cost`. */
|
|
710
|
+
unmatched_sell_tokens?: number | null;
|
|
711
|
+
/** FIFO only: every sold token matched an observed buy. null under `average_cost`. */
|
|
712
|
+
cost_basis_complete?: boolean | null;
|
|
685
713
|
first_trade_at: string;
|
|
686
714
|
last_trade_at: string;
|
|
687
715
|
is_kol: boolean;
|
|
@@ -691,11 +719,29 @@ export interface TokenTopTrader {
|
|
|
691
719
|
historical_win_rate: number | null;
|
|
692
720
|
historical_pnl_sol: number | null;
|
|
693
721
|
historical_tokens: number | null;
|
|
722
|
+
/** `known` / `partial` (some sells unattributed) / `unknown` (every sell unattributed: unknown, not a loss). */
|
|
723
|
+
realized_status?: "known" | "partial" | "unknown";
|
|
724
|
+
/** Sells whose proceeds went to another wallet. 0 when complete. */
|
|
725
|
+
unattributed_sells?: number;
|
|
726
|
+
/** Cost basis consumed by unattributed sells; not in realized_pnl_sol or ROI. */
|
|
727
|
+
unknown_realized_cost_basis_sol?: number;
|
|
728
|
+
/** FIFO only: trades whose SOL consideration is unknown. Null under average_cost. */
|
|
729
|
+
unknown_consideration_trades?: number | null;
|
|
730
|
+
/** FIFO only: tokens sold out of lots bought with unknown consideration. Null under average_cost. */
|
|
731
|
+
unknown_cost_tokens_sold?: number | null;
|
|
732
|
+
/** FIFO only: open tokens bought with unknown consideration (unrealized/total PnL then null). Null under average_cost. */
|
|
733
|
+
open_unknown_cost_tokens?: number | null;
|
|
734
|
+
cost_basis_evidence?: "verified" | "inferred" | "unknown";
|
|
735
|
+
/** `inferred` = still_holding from the open FIFO position (no balance read); never `verified` here. */
|
|
736
|
+
holding_evidence?: "verified" | "inferred" | "unknown";
|
|
694
737
|
}
|
|
695
738
|
export interface TokenTopTradersResponse {
|
|
696
739
|
mint: string;
|
|
697
740
|
sort: "pnl" | "roi";
|
|
698
741
|
window_days: number;
|
|
742
|
+
/** 2026-10-14: `"fifo"` = same cost basis as `/wallet/{address}/pnl`; `"average_cost"` = legacy fallback (overstates profit on unmatched sells). */
|
|
743
|
+
cost_method?: "fifo" | "average_cost";
|
|
744
|
+
cost_method_note?: string;
|
|
699
745
|
traders: TokenTopTrader[];
|
|
700
746
|
summary: {
|
|
701
747
|
returned: number;
|
|
@@ -707,6 +753,9 @@ export interface TokenTopTradersResponse {
|
|
|
707
753
|
* list means "outside the write-gate", not "nobody traded". */
|
|
708
754
|
coverage?: TradeCoverage;
|
|
709
755
|
_rid?: string;
|
|
756
|
+
data_contract?: DataContract;
|
|
757
|
+
/** Empty when complete. */
|
|
758
|
+
incomplete_reasons?: PnlIncompleteReason[];
|
|
710
759
|
}
|
|
711
760
|
export interface CoordinationHistoryParams {
|
|
712
761
|
limit?: number;
|
|
@@ -970,6 +1019,10 @@ export interface HotToken {
|
|
|
970
1019
|
entry_rank_avg?: number | null;
|
|
971
1020
|
unique_strategies?: number | null;
|
|
972
1021
|
strategies?: string[] | null;
|
|
1022
|
+
/** KOL sells whose SOL proceeds are unknown, left out of total_sell_sol and net flow (never 0 SOL). Null = not measured. */
|
|
1023
|
+
unknown_proceeds_sells?: number | null;
|
|
1024
|
+
/** False when unknown_proceeds_sells > 0 (real sell volume is higher). Null = not measured. */
|
|
1025
|
+
sell_sol_complete?: boolean | null;
|
|
973
1026
|
}
|
|
974
1027
|
export interface KolHotTokensResponse {
|
|
975
1028
|
hot_tokens: HotToken[];
|
|
@@ -1003,6 +1056,8 @@ export interface KolPnlCurvePoint {
|
|
|
1003
1056
|
day_pnl: number;
|
|
1004
1057
|
cumulative_pnl: number;
|
|
1005
1058
|
trades: number;
|
|
1059
|
+
/** Sells with unknown proceeds on this day. */
|
|
1060
|
+
unknown_sells?: number;
|
|
1006
1061
|
}
|
|
1007
1062
|
export interface KolClosedPosition {
|
|
1008
1063
|
token_mint: string;
|
|
@@ -1018,6 +1073,9 @@ export interface KolClosedPosition {
|
|
|
1018
1073
|
result: "win" | "loss";
|
|
1019
1074
|
first_trade: string;
|
|
1020
1075
|
last_trade: string;
|
|
1076
|
+
/** `unknown` = a sell of this position has unknown proceeds. */
|
|
1077
|
+
realization_status?: "known" | "unknown";
|
|
1078
|
+
unknown_proceeds_sells?: number;
|
|
1021
1079
|
}
|
|
1022
1080
|
export interface KolOpenPosition {
|
|
1023
1081
|
token_mint: string;
|
|
@@ -1044,6 +1102,12 @@ export interface KolPnlResponse {
|
|
|
1044
1102
|
closed_positions?: KolClosedPosition[] | null;
|
|
1045
1103
|
open_positions?: KolOpenPosition[] | null;
|
|
1046
1104
|
period: string;
|
|
1105
|
+
/** Sells with unknown proceeds in the window. 0 when complete. */
|
|
1106
|
+
unknown_proceeds_sells?: number;
|
|
1107
|
+
/** Positions with a sell of unknown proceeds, excluded from realized PnL / win rate / ROI. 0 when complete. */
|
|
1108
|
+
unknown_realizations?: number;
|
|
1109
|
+
/** Empty when complete. */
|
|
1110
|
+
incomplete_reasons?: Array<"proceeds_unattributed" | (string & {})>;
|
|
1047
1111
|
}
|
|
1048
1112
|
export interface KolTrendingParams {
|
|
1049
1113
|
/** Time period. Default: "1h". Sub-hour periods (5m/15m/30m) require PRO/ULTRA. */
|
|
@@ -1128,6 +1192,44 @@ export interface KolEntryOrderParams {
|
|
|
1128
1192
|
/** Max entries to return (1–100). Default: 50. */
|
|
1129
1193
|
limit?: number;
|
|
1130
1194
|
}
|
|
1195
|
+
export interface KolTokenTradesParams {
|
|
1196
|
+
/** 1–200, default 100. BASIC is clamped to 20. */
|
|
1197
|
+
limit?: number;
|
|
1198
|
+
action?: "buy" | "sell";
|
|
1199
|
+
/** Only this KOL wallet. */
|
|
1200
|
+
kol?: string;
|
|
1201
|
+
/** ISO time: only trades strictly after it. */
|
|
1202
|
+
since?: string;
|
|
1203
|
+
/** `next_cursor` from the previous page. */
|
|
1204
|
+
cursor?: string;
|
|
1205
|
+
}
|
|
1206
|
+
/** One stored KOL trade on a token. */
|
|
1207
|
+
export interface KolTokenTrade {
|
|
1208
|
+
id: string;
|
|
1209
|
+
kol_name: string | null;
|
|
1210
|
+
kol_twitter: string | null;
|
|
1211
|
+
wallet: string;
|
|
1212
|
+
action: "buy" | "sell";
|
|
1213
|
+
sol_amount: number | null;
|
|
1214
|
+
token_amount: number | null;
|
|
1215
|
+
price_usd_at_trade: number | null;
|
|
1216
|
+
market_cap_usd_at_trade: number | null;
|
|
1217
|
+
tx_signature: string | null;
|
|
1218
|
+
traded_at: string;
|
|
1219
|
+
}
|
|
1220
|
+
/** `GET /kol/tokens/{mint}/trades` — every stored KOL trade on one token, newest first, keyset paged. */
|
|
1221
|
+
export interface KolTokenTradesResponse {
|
|
1222
|
+
token_mint: string;
|
|
1223
|
+
trades: KolTokenTrade[];
|
|
1224
|
+
count: number;
|
|
1225
|
+
/** Distinct KOL addresses on this page. */
|
|
1226
|
+
kols_on_page: number;
|
|
1227
|
+
next_cursor: string | null;
|
|
1228
|
+
/** Exact (limit + 1 probe). */
|
|
1229
|
+
has_more: boolean;
|
|
1230
|
+
note?: string;
|
|
1231
|
+
_rid?: string;
|
|
1232
|
+
}
|
|
1131
1233
|
export interface KolEntryOrderEntry {
|
|
1132
1234
|
rank: number;
|
|
1133
1235
|
kol_name: string | null;
|
|
@@ -1187,6 +1289,41 @@ export interface KolCompareProfile {
|
|
|
1187
1289
|
percentile_pnl_30d?: number | null;
|
|
1188
1290
|
percentile_winrate_30d?: number | null;
|
|
1189
1291
|
percentile_early_entry_30d?: number | null;
|
|
1292
|
+
/** Where strategy_tag comes from: `classifier_076` = the roster classifier; otherwise the auto tag and its method. */
|
|
1293
|
+
strategy_tag_source?: "classifier_076" | "fifo_auto_v2" | "in_window_auto_512" | null;
|
|
1294
|
+
/** `fifo_auto_v2` = median hold of known FIFO lots; `in_window_auto_512` = first buy to first sell per token in 30 days. */
|
|
1295
|
+
auto_strategy_tag_source?: "fifo_auto_v2" | "in_window_auto_512";
|
|
1296
|
+
/** `fifo_full_history` = full-history FIFO; `unavailable` = no FIFO computation within 2 h (winrate_* null, never 0). Absent = the in-window method. */
|
|
1297
|
+
winrate_method?: "fifo_full_history" | "unavailable";
|
|
1298
|
+
winrate_rule_version?: string | null;
|
|
1299
|
+
winrate_definition?: string;
|
|
1300
|
+
/** When the FIFO win rate was computed (at most 2 h before it is served). */
|
|
1301
|
+
winrate_computed_at?: string | null;
|
|
1302
|
+
/** Minimum known closed positions before a win rate is published. */
|
|
1303
|
+
winrate_min_known?: number;
|
|
1304
|
+
/** Status of winrate_30d. */
|
|
1305
|
+
winrate_status?: KolWinrateStatus;
|
|
1306
|
+
winrate_status_7d?: KolWinrateStatus;
|
|
1307
|
+
winrate_status_30d?: KolWinrateStatus;
|
|
1308
|
+
/** Win-rate denominator: completed buy lots whose realization is proven. */
|
|
1309
|
+
closed_positions_known_7d?: number;
|
|
1310
|
+
closed_positions_known_30d?: number;
|
|
1311
|
+
/** All completed buy lots: known + unknown realizations. */
|
|
1312
|
+
closed_positions_all_7d?: number;
|
|
1313
|
+
closed_positions_all_30d?: number;
|
|
1314
|
+
/** Closed positions whose realization is unproven: never a win or loss, not in the denominator. */
|
|
1315
|
+
unknown_realizations_7d?: number;
|
|
1316
|
+
unknown_realizations_30d?: number;
|
|
1317
|
+
/** Per reason: opening_inventory_unproven / consideration_unknown / closure_unproven. */
|
|
1318
|
+
unknown_by_reason_30d?: Record<string, number> | null;
|
|
1319
|
+
/** Positions excluded from pnl_7d for unknown proceeds. */
|
|
1320
|
+
pnl_unknown_realizations_7d?: number;
|
|
1321
|
+
/** (KOL, token) positions with a sell of unknown proceeds, excluded from realized PnL / win rate / ROI. */
|
|
1322
|
+
unknown_realizations?: number;
|
|
1323
|
+
/** KOL sells with unknown proceeds in the window. 0 when complete. */
|
|
1324
|
+
unknown_proceeds_sells?: number;
|
|
1325
|
+
/** Empty when complete. */
|
|
1326
|
+
incomplete_reasons?: Array<"proceeds_unattributed" | (string & {})>;
|
|
1190
1327
|
}
|
|
1191
1328
|
export interface KolCompareOverlapToken {
|
|
1192
1329
|
token_mint: string;
|
|
@@ -1272,6 +1409,28 @@ export interface DeployerLeaderboardParams extends PaginationParams {
|
|
|
1272
1409
|
export interface DeployerTokensParams extends PaginationParams {
|
|
1273
1410
|
/** Max results (1–50). Default: 20. */
|
|
1274
1411
|
limit?: number;
|
|
1412
|
+
/** true = only tokens that graduated (bonded_at set); total / has_more count the bonded set. */
|
|
1413
|
+
only_bonded?: boolean;
|
|
1414
|
+
/** Opt in to `launches_24h` (distinct launches observed in our index over a rolling UTC 24 h window). */
|
|
1415
|
+
include_launches_24h?: boolean;
|
|
1416
|
+
}
|
|
1417
|
+
/**
|
|
1418
|
+
* Launches observed in OUR index over a rolling UTC 24 h window. Indexed
|
|
1419
|
+
* observations only, not a chain-complete count. `count` is null (never 0)
|
|
1420
|
+
* unless `status` is `"observed"`.
|
|
1421
|
+
*/
|
|
1422
|
+
export interface DeployerLaunches24h {
|
|
1423
|
+
window_start: string;
|
|
1424
|
+
window_end: string;
|
|
1425
|
+
count: number | null;
|
|
1426
|
+
status: "observed" | "source_unavailable" | "over_budget" | "source_incomplete" | "untracked_deployer";
|
|
1427
|
+
completeness: "indexed_observations_only";
|
|
1428
|
+
provenance?: string;
|
|
1429
|
+
row_cap_per_source?: number;
|
|
1430
|
+
source_rows?: {
|
|
1431
|
+
bonded?: number;
|
|
1432
|
+
pending?: number;
|
|
1433
|
+
};
|
|
1275
1434
|
}
|
|
1276
1435
|
export interface DeployerAlertsParams extends PaginationParams {
|
|
1277
1436
|
/** ISO 8601 datetime — return alerts since this time. */
|
|
@@ -1514,6 +1673,7 @@ export interface DeployerProfileResponse {
|
|
|
1514
1673
|
/** PRO+ capital intelligence; absent when disabled. */
|
|
1515
1674
|
capital_intelligence?: Record<string, unknown>;
|
|
1516
1675
|
_rid?: string;
|
|
1676
|
+
data_contract?: DataContract;
|
|
1517
1677
|
}
|
|
1518
1678
|
/** @deprecated Not what GET /deployer-hunter/{wallet} returns — use {@link DeployerProfileResponse}. Kept for source compatibility. */
|
|
1519
1679
|
export interface DeployerProfile {
|
|
@@ -1543,6 +1703,8 @@ export interface DeployerTokensResponse {
|
|
|
1543
1703
|
is_deployer?: boolean;
|
|
1544
1704
|
wallet?: string;
|
|
1545
1705
|
coverage?: TradeCoverage;
|
|
1706
|
+
/** Present only with `include_launches_24h: true`. */
|
|
1707
|
+
launches_24h?: DeployerLaunches24h;
|
|
1546
1708
|
_rid?: string;
|
|
1547
1709
|
/** @deprecated Never sent by the API — use `tokens.length`. */
|
|
1548
1710
|
count?: number;
|
|
@@ -1862,6 +2024,18 @@ export interface DeployerActivityEvent {
|
|
|
1862
2024
|
sol?: number | null;
|
|
1863
2025
|
tokens?: number | null;
|
|
1864
2026
|
price_usd?: number | null;
|
|
2027
|
+
/** Realtime dev-event actor. PRO sees only direct developer events; ULTRA+ may also see proven linked-wallet events when identity stitching is released. */
|
|
2028
|
+
actor_wallet?: string | null;
|
|
2029
|
+
actor_role?: "deployer" | "linked_wallet" | null;
|
|
2030
|
+
/** Exact base-unit amount on persisted realtime dev events (decimal string; use BigInt()). */
|
|
2031
|
+
token_amount_raw?: string | null;
|
|
2032
|
+
supply_pct?: number | null;
|
|
2033
|
+
venue?: string | null;
|
|
2034
|
+
/** Raw transfer counterparty; never an identity claim. */
|
|
2035
|
+
counterparty?: string | null;
|
|
2036
|
+
counterparty_class?: string | null;
|
|
2037
|
+
/** Timeline source/projection marker for realtime dev events. */
|
|
2038
|
+
feed?: string | null;
|
|
1865
2039
|
first_at?: string | null;
|
|
1866
2040
|
last_at?: string | null;
|
|
1867
2041
|
aggregate?: boolean;
|
|
@@ -2005,6 +2179,10 @@ export interface AlphaWalletEntry {
|
|
|
2005
2179
|
buy_size_stddev?: number;
|
|
2006
2180
|
active_hours?: number | null;
|
|
2007
2181
|
bot_confidence?: string | null;
|
|
2182
|
+
/** Early-buyer pairs whose realization is unknown (unattributed sell): excluded from win_rate, net_pnl_sol and roi. Null before migration 511. */
|
|
2183
|
+
unknown_realizations?: number | null;
|
|
2184
|
+
/** SOL bought on those unknown-realization pairs, left out of net_pnl_sol and roi (neither a loss nor a gain). */
|
|
2185
|
+
unknown_cost_basis_sol?: number | null;
|
|
2008
2186
|
}
|
|
2009
2187
|
export interface AlphaLeaderboardResponse {
|
|
2010
2188
|
leaderboard: AlphaWalletEntry[];
|
|
@@ -2050,10 +2228,16 @@ export interface AlphaWalletSummary {
|
|
|
2050
2228
|
night_only_activity: boolean;
|
|
2051
2229
|
}
|
|
2052
2230
|
export interface AlphaWalletResponse {
|
|
2053
|
-
|
|
2231
|
+
/** @deprecated Not returned by the API. */
|
|
2232
|
+
wallet?: string;
|
|
2054
2233
|
summary: AlphaWalletSummary;
|
|
2055
|
-
|
|
2056
|
-
|
|
2234
|
+
/** @deprecated Not returned by the API; use `tokens`. */
|
|
2235
|
+
positions?: AlphaWalletPosition[];
|
|
2236
|
+
/** @deprecated Not returned at this level. */
|
|
2237
|
+
bot_signals?: AlphaWalletBotSignal[];
|
|
2238
|
+
/** Early-buyer tokens of this wallet (the array the API returns). */
|
|
2239
|
+
tokens?: AlphaWalletToken[];
|
|
2240
|
+
coverage?: TradeCoverage;
|
|
2057
2241
|
}
|
|
2058
2242
|
export interface AlphaLinkedWallet {
|
|
2059
2243
|
wallet_address: string;
|
|
@@ -2088,6 +2272,57 @@ export interface AlphaCapTableBuyer {
|
|
|
2088
2272
|
historical_win_rate: number | null;
|
|
2089
2273
|
historical_pnl_sol: number | null;
|
|
2090
2274
|
historical_tokens: number | null;
|
|
2275
|
+
/** 2026-10, only with `verify_current_balances: true` (ULTRA+): the current balance of this mint, read from chain. */
|
|
2276
|
+
balance_now?: BalanceNow;
|
|
2277
|
+
/** 2026-10, only with `verify_current_balances: true`: from the balance (not the swap ledger). */
|
|
2278
|
+
holding_status?: "verified_nonzero" | "verified_zero";
|
|
2279
|
+
/** 2026-10, only with `verify_current_balances: true`: zero balance although no sell is on the swap ledger. */
|
|
2280
|
+
exited_without_sell?: boolean;
|
|
2281
|
+
/** 2026-10, only with `include_scout_scores: true`: KOL buyers' scout score as of first_buy_at (no hindsight); null for non-KOLs. */
|
|
2282
|
+
scout_score?: {
|
|
2283
|
+
as_of: string;
|
|
2284
|
+
first_touches_30d: number;
|
|
2285
|
+
avg_followers_4h: number | null;
|
|
2286
|
+
swarm_3plus_pct: number | null;
|
|
2287
|
+
swarm_5plus_pct: number | null;
|
|
2288
|
+
scout_tier: "S" | "A" | "B" | "C" | null;
|
|
2289
|
+
} | null;
|
|
2290
|
+
/** `unknown_consideration` = the first buy settled in a quote we cannot price; first_buy_sol is then null (never 0). */
|
|
2291
|
+
first_buy_sol_status?: "measured" | "unknown_consideration";
|
|
2292
|
+
}
|
|
2293
|
+
/** A wallet's current balance of one mint, read from chain (`getTokenAccountsByOwner`). `amount_raw` is a u64 decimal string. */
|
|
2294
|
+
export interface BalanceNow {
|
|
2295
|
+
amount_raw: string;
|
|
2296
|
+
decimals: number | null;
|
|
2297
|
+
amount: string;
|
|
2298
|
+
holding: boolean;
|
|
2299
|
+
token_accounts: number;
|
|
2300
|
+
slot: number;
|
|
2301
|
+
}
|
|
2302
|
+
/** Balance-based held figures for a wallet cohort (bundle, bundle clusters, bundle share). Totals only when every wallet was read (`complete`). */
|
|
2303
|
+
export interface BundleHeldNow {
|
|
2304
|
+
source: "solana_rpc_getTokenAccountsByOwner";
|
|
2305
|
+
checked_at: string;
|
|
2306
|
+
wallets: number;
|
|
2307
|
+
verified_wallets: number;
|
|
2308
|
+
holding_wallets: number;
|
|
2309
|
+
complete: boolean;
|
|
2310
|
+
incomplete_reason: string | null;
|
|
2311
|
+
slot_min: number | null;
|
|
2312
|
+
slot_max: number | null;
|
|
2313
|
+
tokens_held_raw: string | null;
|
|
2314
|
+
tokens_held: string | null;
|
|
2315
|
+
/** RATIO in [0, 1] of circulating_supply_raw. */
|
|
2316
|
+
held_pct_of_supply: number | null;
|
|
2317
|
+
supply_basis: "circulating_supply_raw" | null;
|
|
2318
|
+
}
|
|
2319
|
+
export interface AlphaCapTableParams {
|
|
2320
|
+
/** Rows to return (tier-capped). */
|
|
2321
|
+
limit?: number;
|
|
2322
|
+
/** ULTRA+: read every scored buyer's current balance from chain (`balance_now`, `exited_without_sell`, `onchain_balance_verification`). */
|
|
2323
|
+
verify_current_balances?: boolean;
|
|
2324
|
+
/** Add `scout_score` per KOL buyer plus `scout_scores_status` / `scout_scores_note`. */
|
|
2325
|
+
include_scout_scores?: boolean;
|
|
2091
2326
|
}
|
|
2092
2327
|
export interface AlphaCapTableSummary {
|
|
2093
2328
|
known_alpha_wallets: number;
|
|
@@ -2103,6 +2338,22 @@ export interface AlphaCapTableResponse {
|
|
|
2103
2338
|
summary: AlphaCapTableSummary;
|
|
2104
2339
|
/** v2.22.4 — trade-coverage disclosure (additive; absent on older cached responses). */
|
|
2105
2340
|
coverage?: TradeCoverage;
|
|
2341
|
+
/** 2026-10, only with `include_scout_scores: true`. */
|
|
2342
|
+
scout_scores_status?: "ok" | "unavailable" | "timeout" | "error";
|
|
2343
|
+
scout_scores_note?: string;
|
|
2344
|
+
/** 2026-10, only with `verify_current_balances: true` (ULTRA+), after every scored buyer was read. */
|
|
2345
|
+
onchain_balance_verification?: {
|
|
2346
|
+
source: string;
|
|
2347
|
+
checked_at: string;
|
|
2348
|
+
slot_min: number;
|
|
2349
|
+
slot_max: number;
|
|
2350
|
+
verified_wallets: number;
|
|
2351
|
+
complete: boolean;
|
|
2352
|
+
verified_still_holding: number;
|
|
2353
|
+
verified_exited: number;
|
|
2354
|
+
exited_without_sell: number;
|
|
2355
|
+
note: string;
|
|
2356
|
+
};
|
|
2106
2357
|
/** 2026-10: whether early-buyer ranks 1..20 can be trusted. `gap_overlap` = a
|
|
2107
2358
|
* recorded ingest gap overlaps launch to the last ranked buy, so a true early
|
|
2108
2359
|
* buyer may be missing. Absent on older responses. */
|
|
@@ -2139,8 +2390,23 @@ export interface AlphaBuyerQualityBreakdown {
|
|
|
2139
2390
|
*/
|
|
2140
2391
|
recycled_early_buyer_count: number;
|
|
2141
2392
|
}
|
|
2393
|
+
export interface AlphaBuyerQualityParams {
|
|
2394
|
+
/** PRO+: add `dump_cluster_held_now` (the dump-cluster early buyers' current holdings, read from chain). */
|
|
2395
|
+
include_balances?: boolean;
|
|
2396
|
+
}
|
|
2142
2397
|
export interface AlphaBuyerQualityResponse {
|
|
2143
2398
|
mint: string;
|
|
2399
|
+
/** 2026-10, only with `include_balances: true` (PRO+): the dump-cluster early buyers' CURRENT holdings; totals only when every member was read. */
|
|
2400
|
+
dump_cluster_held_now?: {
|
|
2401
|
+
cohort_size: number;
|
|
2402
|
+
members: number;
|
|
2403
|
+
held_now: BundleHeldNow | Record<string, unknown>;
|
|
2404
|
+
wallets: Array<{
|
|
2405
|
+
wallet: string;
|
|
2406
|
+
balance_now: BalanceNow | null;
|
|
2407
|
+
}>;
|
|
2408
|
+
note: string;
|
|
2409
|
+
};
|
|
2144
2410
|
score: number;
|
|
2145
2411
|
confidence: "low" | "medium" | "high";
|
|
2146
2412
|
signal: "positive" | "neutral" | "negative";
|
|
@@ -2352,6 +2618,12 @@ export interface BundleWallet {
|
|
|
2352
2618
|
bot_confidence?: string | null;
|
|
2353
2619
|
/** ULTRA-only — tokens this wallet currently holds. */
|
|
2354
2620
|
tokens_held?: number | null;
|
|
2621
|
+
/** 2026-10, only with `include_balances: true`: current balance of the mint; null when the cohort read failed. */
|
|
2622
|
+
balance_now?: BalanceNow | null;
|
|
2623
|
+
}
|
|
2624
|
+
export interface TokenBundleParams {
|
|
2625
|
+
/** PRO+: add `held_now` + per-wallet `balance_now` from current chain balances. */
|
|
2626
|
+
include_balances?: boolean;
|
|
2355
2627
|
}
|
|
2356
2628
|
/** Bundle-cohort holdings for a token — the wallets that bought together (one
|
|
2357
2629
|
* atomic transaction or the same slot) and how much of supply they still hold.
|
|
@@ -2362,10 +2634,199 @@ export interface BundleWallet {
|
|
|
2362
2634
|
export interface TokenBundleResponse {
|
|
2363
2635
|
mint: string;
|
|
2364
2636
|
bundle: BundleSummary;
|
|
2637
|
+
/** 2026-10, only with `include_balances: true` (PRO+): balance-based held figures; totals only when complete. */
|
|
2638
|
+
held_now?: BundleHeldNow;
|
|
2365
2639
|
wallets: BundleWallet[];
|
|
2366
2640
|
/** v2.22.4 — trade-coverage disclosure (additive; absent on older cached responses). */
|
|
2367
2641
|
coverage?: TradeCoverage;
|
|
2368
2642
|
}
|
|
2643
|
+
/** Window shared by `bundles()` / `bundleShare()`. */
|
|
2644
|
+
export type BundleWindow = "1h" | "6h" | "24h";
|
|
2645
|
+
export interface TokenBundlesParams {
|
|
2646
|
+
/** Default `"24h"`. */
|
|
2647
|
+
window?: BundleWindow;
|
|
2648
|
+
/** Minimum distinct buyers in one slot to count as a cluster (3–20, default 3). */
|
|
2649
|
+
min_wallets?: number;
|
|
2650
|
+
/** 1–100, default 50. */
|
|
2651
|
+
limit?: number;
|
|
2652
|
+
/** Add `held_now` (current chain balances) to the 3 most recent clusters. */
|
|
2653
|
+
include_balances?: boolean;
|
|
2654
|
+
}
|
|
2655
|
+
/** What a followed cluster's wallets have SOLD since the cluster (bundle-watch sell ledger). */
|
|
2656
|
+
export interface TokenBundleClusterExit {
|
|
2657
|
+
cluster_id: number;
|
|
2658
|
+
followed_until: string;
|
|
2659
|
+
wallets_tracked: number;
|
|
2660
|
+
wallets_sold: number;
|
|
2661
|
+
/** Sold >= 99 % of their cluster buy. */
|
|
2662
|
+
wallets_exited: number;
|
|
2663
|
+
bought_tokens: number;
|
|
2664
|
+
sold_tokens: number;
|
|
2665
|
+
/** Sum over wallets of min(sold, bought in the cluster) / bought in the cluster, 0..1. */
|
|
2666
|
+
sold_pct: number | null;
|
|
2667
|
+
realized_sol: number;
|
|
2668
|
+
last_sell_at: string | null;
|
|
2669
|
+
}
|
|
2670
|
+
/** One slot where >= `min_wallets` distinct wallets bought the token. Evidence, not a verdict. */
|
|
2671
|
+
export interface TokenBundleCluster {
|
|
2672
|
+
slot: number;
|
|
2673
|
+
at: string;
|
|
2674
|
+
minutes_after_launch: number | null;
|
|
2675
|
+
/** `launch` = within 5 minutes of `launch_at`. */
|
|
2676
|
+
phase: "launch" | "later" | "unknown";
|
|
2677
|
+
wallet_count: number;
|
|
2678
|
+
/** Buyers with no earlier buy of this token. */
|
|
2679
|
+
new_wallets: number;
|
|
2680
|
+
/** Transactions carrying 3+ of the buyers (definitively coordinated). */
|
|
2681
|
+
atomic_txs: number;
|
|
2682
|
+
sol_volume: number | null;
|
|
2683
|
+
token_volume: number | null;
|
|
2684
|
+
/** At most 50. */
|
|
2685
|
+
wallets: string[];
|
|
2686
|
+
/** Only with `include_balances: true`, on the 3 most recent clusters. */
|
|
2687
|
+
held_now?: BundleHeldNow;
|
|
2688
|
+
/** null = not followed (only announced clusters are followed, 7 days, first 50 wallets). */
|
|
2689
|
+
exit?: TokenBundleClusterExit | null;
|
|
2690
|
+
}
|
|
2691
|
+
/** `GET /tokens/{mint}/bundles` — every coordinated buy cluster in the window, launch AND later (PRO+). */
|
|
2692
|
+
export interface TokenBundlesResponse {
|
|
2693
|
+
mint: string;
|
|
2694
|
+
window: string;
|
|
2695
|
+
min_wallets: number;
|
|
2696
|
+
launch_at: string | null;
|
|
2697
|
+
summary: {
|
|
2698
|
+
cluster_count: number;
|
|
2699
|
+
launch_clusters: number;
|
|
2700
|
+
later_clusters: number;
|
|
2701
|
+
latest_cluster_at: string | null;
|
|
2702
|
+
largest_cluster_wallets: number;
|
|
2703
|
+
/** Window baseline (null when no cluster was found). On busy tokens unrelated buyers share slots. */
|
|
2704
|
+
baseline: Record<string, unknown> | null;
|
|
2705
|
+
};
|
|
2706
|
+
clusters: TokenBundleCluster[];
|
|
2707
|
+
/** Only with `include_balances: true`. */
|
|
2708
|
+
held_now_clusters?: number;
|
|
2709
|
+
/** Whether the exit ledger could be read; clusters are served either way (`exit` null when not ok). */
|
|
2710
|
+
exit_tracking?: "ok" | "unavailable" | "error";
|
|
2711
|
+
exit_note?: string;
|
|
2712
|
+
note?: string;
|
|
2713
|
+
_rid?: string;
|
|
2714
|
+
}
|
|
2715
|
+
export interface TokenBundleShareParams {
|
|
2716
|
+
/** Which later clusters to include (the launch bundle is always included). Default `"24h"`. */
|
|
2717
|
+
window?: BundleWindow;
|
|
2718
|
+
/** 3–20, default 3. */
|
|
2719
|
+
min_wallets?: number;
|
|
2720
|
+
}
|
|
2721
|
+
/** `GET /tokens/{mint}/bundle-share` — ONE figure: share of supply held now by every bundle wallet (PRO+, cached 30 s per token). */
|
|
2722
|
+
export interface TokenBundleShareResponse {
|
|
2723
|
+
mint: string;
|
|
2724
|
+
window: string;
|
|
2725
|
+
min_wallets: number;
|
|
2726
|
+
/** RATIO in [0, 1]. Null unless every wallet was read (see `held_now.incomplete_reason`), never a partial sum. */
|
|
2727
|
+
bundled_pct_of_supply_now: number | null;
|
|
2728
|
+
/** `launch_cohort_only` = the cluster function was not available; only the launch bundle is counted. */
|
|
2729
|
+
scope: "launch_and_clusters" | "launch_cohort_only";
|
|
2730
|
+
clusters_status: "ok" | "unavailable" | "timeout" | "error";
|
|
2731
|
+
wallets: {
|
|
2732
|
+
total: number;
|
|
2733
|
+
launch_cohort_wallets: number;
|
|
2734
|
+
cluster_wallets: number;
|
|
2735
|
+
overlap: number;
|
|
2736
|
+
clusters_counted: number;
|
|
2737
|
+
verified: number;
|
|
2738
|
+
holding: number;
|
|
2739
|
+
max: number;
|
|
2740
|
+
};
|
|
2741
|
+
held_now: BundleHeldNow;
|
|
2742
|
+
as_of: string;
|
|
2743
|
+
note?: string;
|
|
2744
|
+
_rid?: string;
|
|
2745
|
+
/** Names what bundled_pct_of_supply_now measures: the broad same-slot / same-block heuristic. */
|
|
2746
|
+
bundled_pct_basis?: "same_slot_heuristic" | "same_block_heuristic";
|
|
2747
|
+
/** RATIO in [0, 1]: the STRICT measure, a proven lower bound (launch bundle + same-transaction buyers). */
|
|
2748
|
+
strict_bundle_pct_of_supply_now?: number | null;
|
|
2749
|
+
strict_bundle?: StrictBundle;
|
|
2750
|
+
/** True only when every cluster in the window was read. */
|
|
2751
|
+
clusters_complete?: boolean;
|
|
2752
|
+
/** Most clusters read per request (200) on the older read; null when wallet_set.source is token_bundle_wallet_set. */
|
|
2753
|
+
clusters_limit?: number | null;
|
|
2754
|
+
wallet_set?: BundleWalletSet;
|
|
2755
|
+
/** `per_wallet`, `census` (one holders census at one slot) or `none` (wallet set incomplete, nothing read). */
|
|
2756
|
+
balance_method?: "per_wallet" | "census" | "none";
|
|
2757
|
+
}
|
|
2758
|
+
/** Filters for the `token:bundles` WS channel (all optional, AND-combined; invalid values reject the channel). */
|
|
2759
|
+
export interface TokenBundlesFilters {
|
|
2760
|
+
/** Only these mints (at most 250). */
|
|
2761
|
+
mints?: string[];
|
|
2762
|
+
/** Minimum distinct buyers in the cluster (3-50, count at detection). */
|
|
2763
|
+
min_wallets?: number;
|
|
2764
|
+
/** Minimum buyers new to the token (3-50). */
|
|
2765
|
+
min_new_wallets?: number;
|
|
2766
|
+
/** `launch` = within 5 minutes of the token's first sighting. */
|
|
2767
|
+
phases?: Array<"launch" | "later" | "unknown">;
|
|
2768
|
+
/** Only clusters where one transaction carried 3+ of the buyers. */
|
|
2769
|
+
atomic_only?: boolean;
|
|
2770
|
+
/** Only these event types (default both). */
|
|
2771
|
+
bundle_events?: Array<"token:bundle_cluster" | "token:bundle_exit">;
|
|
2772
|
+
}
|
|
2773
|
+
/**
|
|
2774
|
+
* `token:bundle_cluster` on WS `token:bundles` (PRO+): one NEW coordinated buy
|
|
2775
|
+
* cluster on a Solana token, launch or later: one slot where >= 3 wallets
|
|
2776
|
+
* bought and >= 3 of them had never bought the token before. Only stored buys
|
|
2777
|
+
* count (0.05 SOL / $3.50 persistence floor). Announced once; evidence, not a
|
|
2778
|
+
* verdict. For the share of supply these wallets hold now call `alpha.bundleShare()`.
|
|
2779
|
+
*/
|
|
2780
|
+
export interface TokenBundleClusterEvent {
|
|
2781
|
+
/** bundle_cluster_events row id (dedupe key). */
|
|
2782
|
+
id: number;
|
|
2783
|
+
chain: "solana";
|
|
2784
|
+
mint: string;
|
|
2785
|
+
slot: number;
|
|
2786
|
+
/** First buy of the cluster (ISO). */
|
|
2787
|
+
at: string;
|
|
2788
|
+
minutes_after_launch: number | null;
|
|
2789
|
+
phase: "launch" | "later" | "unknown";
|
|
2790
|
+
launch_at: string | null;
|
|
2791
|
+
wallet_count: number;
|
|
2792
|
+
new_wallets: number;
|
|
2793
|
+
/** Transactions carrying 3+ of the buyers. */
|
|
2794
|
+
atomic_txs: number;
|
|
2795
|
+
sol_volume: number | null;
|
|
2796
|
+
token_volume: number | null;
|
|
2797
|
+
/** Up to 50 buyer wallets. */
|
|
2798
|
+
wallets: string[];
|
|
2799
|
+
/** When bundle-watch detected it (ISO). */
|
|
2800
|
+
detected_at: string;
|
|
2801
|
+
}
|
|
2802
|
+
/**
|
|
2803
|
+
* `token:bundle_exit` on WS `token:bundles` (PRO+): an announced cluster's
|
|
2804
|
+
* wallets have sold `threshold_pct` (25 / 50 / 90 / 100) % of what they bought
|
|
2805
|
+
* IN the cluster, each threshold once. Only sells by the bundle wallets
|
|
2806
|
+
* themselves, followed for 7 days after detection; first 50 wallets.
|
|
2807
|
+
*/
|
|
2808
|
+
export interface TokenBundleExitEvent extends Omit<TokenBundleClusterEvent, "sol_volume" | "token_volume" | "wallets"> {
|
|
2809
|
+
cluster_id: number;
|
|
2810
|
+
cluster_detected_at: string | null;
|
|
2811
|
+
threshold_pct: 25 | 50 | 90 | 100;
|
|
2812
|
+
wallets_tracked: number;
|
|
2813
|
+
wallets_sold: number;
|
|
2814
|
+
/** Wallets that sold at least 99 % of their cluster buy. */
|
|
2815
|
+
wallets_exited: number;
|
|
2816
|
+
bought_tokens: number;
|
|
2817
|
+
sold_tokens: number;
|
|
2818
|
+
/** sum over wallets of min(sold, bought) / bought, 0..1. */
|
|
2819
|
+
sold_pct: number | null;
|
|
2820
|
+
realized_sol: number;
|
|
2821
|
+
last_sell_at: string | null;
|
|
2822
|
+
recent_sells: Array<{
|
|
2823
|
+
wallet: string;
|
|
2824
|
+
tx_signature: string;
|
|
2825
|
+
tokens: number | null;
|
|
2826
|
+
sol: number | null;
|
|
2827
|
+
at: string;
|
|
2828
|
+
}>;
|
|
2829
|
+
}
|
|
2369
2830
|
/** One DEX pool a token trades in. `is_active` distinguishes live pools from
|
|
2370
2831
|
* parked/drained ones; `liquidity_usd`/`last_price_sol`/`last_swap_at` are null
|
|
2371
2832
|
* when the pool has no recent on-chain activity. */
|
|
@@ -2400,7 +2861,33 @@ export interface TokenPoolsResponse {
|
|
|
2400
2861
|
/** Wallet-intelligence label on a live holder (`GET /tokens/{mint}/holders`).
|
|
2401
2862
|
* Labels come from MadeOnSol's swap-ledger data — an empty `labels[]` means
|
|
2402
2863
|
* "unknown to us", NOT "verified clean". */
|
|
2403
|
-
export type TokenHolderLabel = "deployer" | "kol" | "early_buyer" | "buyer" | "bundle" | "bot" | "dump_cluster";
|
|
2864
|
+
export type TokenHolderLabel = "deployer" | "kol" | "early_buyer" | "buyer" | "bundle" | "bot" | "dump_cluster" | "sniper" | "bundler_wallet" | "dumper" | "alpha_tracked";
|
|
2865
|
+
/** Per label: `evaluated: false` means insufficient evidence, NOT a verified negative. */
|
|
2866
|
+
export type WalletFlagLabelCoverage = Record<string, {
|
|
2867
|
+
evaluated: boolean;
|
|
2868
|
+
reason?: string;
|
|
2869
|
+
}>;
|
|
2870
|
+
/** Per-holder flags, only with `include_wallet_flags: true`. Null when the flag sources were unavailable. */
|
|
2871
|
+
export interface TokenHolderWalletFlags {
|
|
2872
|
+
is_sniper: boolean;
|
|
2873
|
+
is_bundler: boolean;
|
|
2874
|
+
is_dumper: boolean;
|
|
2875
|
+
is_kol: boolean;
|
|
2876
|
+
is_alpha_tracked: boolean;
|
|
2877
|
+
is_bot_high_confidence: boolean;
|
|
2878
|
+
label_coverage: WalletFlagLabelCoverage;
|
|
2879
|
+
}
|
|
2880
|
+
/** Top-level flag status, only with `include_wallet_flags: true`. */
|
|
2881
|
+
export interface WalletFlagsMeta {
|
|
2882
|
+
status: "available" | "partial" | "unavailable";
|
|
2883
|
+
rule_version?: string;
|
|
2884
|
+
note?: string;
|
|
2885
|
+
[key: string]: unknown;
|
|
2886
|
+
}
|
|
2887
|
+
export interface TokenHoldersParams {
|
|
2888
|
+
/** Opt in to per-holder `wallet_flags` + `wallet_flags_meta` (PRO+, tier-disclosed rows only). */
|
|
2889
|
+
include_wallet_flags?: boolean;
|
|
2890
|
+
}
|
|
2404
2891
|
/** Why an owner was excluded from the circulating denominator and listed in
|
|
2405
2892
|
* `excluded[]`: `pool` = vault authority of a known pool (`dex` + `pool_address`
|
|
2406
2893
|
* set); `bonding_curve` = pump.fun / LaunchLab curve; `burn` = incinerator /
|
|
@@ -2436,6 +2923,8 @@ export interface TokenHolder {
|
|
|
2436
2923
|
/** Alpha-wallet classifier enum (`"none"`/`"low"`/`"medium"`/`"high"`), not a number. */
|
|
2437
2924
|
bot_confidence: string | null;
|
|
2438
2925
|
historical_win_rate: number | null;
|
|
2926
|
+
/** Only with `include_wallet_flags: true`; null when the flag sources were unavailable. */
|
|
2927
|
+
wallet_flags?: TokenHolderWalletFlags | null;
|
|
2439
2928
|
}
|
|
2440
2929
|
/** An owner excluded from the circulating denominator (pool / bonding curve /
|
|
2441
2930
|
* burn / unattributed program account), NAMED where possible. */
|
|
@@ -2530,6 +3019,11 @@ export interface TokenHoldersResponse {
|
|
|
2530
3019
|
concentration: TokenHoldersConcentration;
|
|
2531
3020
|
deployer: TokenHoldersDeployer | null;
|
|
2532
3021
|
source: TokenHoldersSource;
|
|
3022
|
+
/** Only with `include_wallet_flags: true`. */
|
|
3023
|
+
wallet_flags_meta?: WalletFlagsMeta;
|
|
3024
|
+
data_contract?: DataContract;
|
|
3025
|
+
/** Present only when your tier withheld rows the next tier would disclose. */
|
|
3026
|
+
upgrade_hint?: UpgradeHint;
|
|
2533
3027
|
}
|
|
2534
3028
|
/** Locker program a contract lives under. LP locks are NOT covered (token / vesting locks only). */
|
|
2535
3029
|
export type TokenLockProgram = "streamflow" | "jupiter_lock" | "bonfida_vesting" | "smithii_vesting" | "sablier_lockup";
|
|
@@ -3802,6 +4296,12 @@ export interface CandlesResponse {
|
|
|
3802
4296
|
history_clamped?: boolean;
|
|
3803
4297
|
/** true = the whole requested window is older than the plan floor (200 with no candles). */
|
|
3804
4298
|
history_outside_plan?: boolean;
|
|
4299
|
+
/** `none`: only stored candles are returned; missing buckets are absent, never synthesized. */
|
|
4300
|
+
gap_fill?: "none";
|
|
4301
|
+
/** Start of the bucket containing as_of: candles at or after it are still open. */
|
|
4302
|
+
open_bucket_start?: string;
|
|
4303
|
+
/** False when the per-candle quality lookup failed (null quality = not checked). */
|
|
4304
|
+
quality_checked?: boolean;
|
|
3805
4305
|
}
|
|
3806
4306
|
export type TokenFlowWindow = "1h" | "24h";
|
|
3807
4307
|
export interface TokenFlowParams {
|
|
@@ -3841,6 +4341,14 @@ export interface TokenTradesParams {
|
|
|
3841
4341
|
since?: number;
|
|
3842
4342
|
/** Unix epoch seconds — default now. */
|
|
3843
4343
|
until?: number;
|
|
4344
|
+
/** `committed` = rows in storage order, resumable with `next_committed_cursor` (default `block_time`). */
|
|
4345
|
+
order?: "block_time" | "committed";
|
|
4346
|
+
/** `order=committed` only: `next_committed_cursor` of the previous page, unchanged. */
|
|
4347
|
+
committed_cursor?: string;
|
|
4348
|
+
/** `order=committed` only: Unix milliseconds start (default now - 1 h, at most 48 h back). */
|
|
4349
|
+
committed_since?: number;
|
|
4350
|
+
/** `order=committed` only: 60-172800 s (default 86400), how much older than its storage time a row may be and still be covered. */
|
|
4351
|
+
lookback_s?: number;
|
|
3844
4352
|
}
|
|
3845
4353
|
export interface TokenTrade {
|
|
3846
4354
|
tx_signature: string;
|
|
@@ -3873,6 +4381,19 @@ export interface TokenTrade {
|
|
|
3873
4381
|
/** Solana block time (Unix seconds). */
|
|
3874
4382
|
block_time: number;
|
|
3875
4383
|
traded_at: string;
|
|
4384
|
+
/** `order=committed` only: when the row was stored (insert time, microseconds). */
|
|
4385
|
+
committed_at?: string;
|
|
4386
|
+
/** `order=committed` only: committed_at - block_time in milliseconds. */
|
|
4387
|
+
late_by_ms?: number | null;
|
|
4388
|
+
/** `order=committed` only: true when late_by_ms > 60000 (never a live frame). */
|
|
4389
|
+
late?: boolean | null;
|
|
4390
|
+
/** When mc-tracker measured market_price_*; null = not recorded for this row. */
|
|
4391
|
+
market_price_observed_at?: string | null;
|
|
4392
|
+
market_price_observed_at_status?: "observed" | "not_recorded" | "not_applicable";
|
|
4393
|
+
/** `mc_tracker` when market_price_observed_at is set; null when we cannot tell. */
|
|
4394
|
+
market_price_source?: "mc_tracker" | null;
|
|
4395
|
+
/** `last_measured_market_price` = the token's last measured price, NOT the price at this trade. */
|
|
4396
|
+
market_price_semantics?: "last_measured_market_price" | null;
|
|
3876
4397
|
}
|
|
3877
4398
|
export interface TokenTradesFilters {
|
|
3878
4399
|
action: "buy" | "sell" | null;
|
|
@@ -3929,6 +4450,11 @@ export interface TokenTradesResponse {
|
|
|
3929
4450
|
filters: TokenTradesFilters;
|
|
3930
4451
|
coverage: TokenTradesCoverage;
|
|
3931
4452
|
_rid?: string;
|
|
4453
|
+
data_contract?: DataContract;
|
|
4454
|
+
/** `order=committed` only: the bounds of this page. */
|
|
4455
|
+
committed?: TokenTradesCommitted;
|
|
4456
|
+
/** `order=committed` only: always present; pass it back as `committed_cursor`. */
|
|
4457
|
+
next_committed_cursor?: string;
|
|
3932
4458
|
}
|
|
3933
4459
|
export interface TokenDepthParams {
|
|
3934
4460
|
/** SOL buy sizes to quote — CSV string (`"0.5,1,5,10"`) or an array of
|
|
@@ -4014,6 +4540,8 @@ export interface TokenDepthPool extends TokenDepthPoolBase {
|
|
|
4014
4540
|
* `"reserves_unavailable"`) rather than a wrong number. */
|
|
4015
4541
|
export interface TokenDepthUnsupportedPool extends TokenDepthPoolBase {
|
|
4016
4542
|
reason: string;
|
|
4543
|
+
/** With reason `"dlmm_insufficient_liquidity_in_loaded_bins"`: the largest SOL input (incl. fees) the loaded bins can absorb (0 = no buy-side liquidity in the window). */
|
|
4544
|
+
fillable_up_to_sol?: number;
|
|
4017
4545
|
}
|
|
4018
4546
|
/** Per-pool price-impact / slippage depth. Impact is per-pool, not
|
|
4019
4547
|
* router-optimal. **PRO/ULTRA only.** */
|
|
@@ -4170,6 +4698,11 @@ export interface WalletTopToken {
|
|
|
4170
4698
|
current_mc_usd: number | null;
|
|
4171
4699
|
peak_mc_usd: number | null;
|
|
4172
4700
|
last_traded_at: string;
|
|
4701
|
+
realized_status?: "known" | "partial" | "unknown";
|
|
4702
|
+
/** Sells whose proceeds went to another wallet. 0 when complete. */
|
|
4703
|
+
unattributed_sells?: number;
|
|
4704
|
+
/** Cost basis consumed by unattributed sells; not in realized_pnl_sol. */
|
|
4705
|
+
unknown_realized_cost_basis_sol?: number;
|
|
4173
4706
|
}
|
|
4174
4707
|
export interface WalletTradingStyle {
|
|
4175
4708
|
total_trades: number;
|
|
@@ -4266,6 +4799,14 @@ export interface WalletStatsResponse {
|
|
|
4266
4799
|
*/
|
|
4267
4800
|
degraded_fields?: Array<"top_tokens" | "trading_style" | "deployer_breakdown" | "recent_trades" | "biggest_miss" | (string & {})>;
|
|
4268
4801
|
_rid?: string;
|
|
4802
|
+
/** `fresh` / `stale` (last complete result, at most 5 min old) / `unavailable`. */
|
|
4803
|
+
stats_status?: "fresh" | "stale" | "unavailable";
|
|
4804
|
+
/** When the served stats were computed. Null when stats_status is unavailable. */
|
|
4805
|
+
stats_computed_at?: string | null;
|
|
4806
|
+
/** Fixed sentence on the known-basis PnL rule. */
|
|
4807
|
+
pnl_basis_note?: string;
|
|
4808
|
+
/** Empty when complete. */
|
|
4809
|
+
incomplete_reasons?: PnlIncompleteReason[];
|
|
4269
4810
|
}
|
|
4270
4811
|
export interface WalletPnlSummary {
|
|
4271
4812
|
realized_sol: number;
|
|
@@ -4317,6 +4858,10 @@ export interface WalletClosedPosition {
|
|
|
4317
4858
|
result: "win" | "loss" | "breakeven";
|
|
4318
4859
|
first_trade: string | null;
|
|
4319
4860
|
last_trade: string | null;
|
|
4861
|
+
/** `partial` = some disposals unknown (pnl_sol is the known part); `unknown` = only unknown disposals. */
|
|
4862
|
+
realized_status?: "known" | "partial" | "unknown";
|
|
4863
|
+
/** Cost basis of lots consumed by unknown disposals; not in pnl_sol. */
|
|
4864
|
+
unknown_realized_cost_basis_sol?: number;
|
|
4320
4865
|
}
|
|
4321
4866
|
export interface WalletOpenPosition {
|
|
4322
4867
|
token_mint: string;
|
|
@@ -4340,6 +4885,8 @@ export interface WalletOpenPosition {
|
|
|
4340
4885
|
cost_basis_status?: "known" | "partial";
|
|
4341
4886
|
/** Present (non-null) only when `holding_status` is `verified`. */
|
|
4342
4887
|
holding?: WalletPositionHolding | null;
|
|
4888
|
+
/** `scope=recent` answers that do not cover the full window: the pre-scope cost basis is unknown, never 0. */
|
|
4889
|
+
pre_scope_cost_basis?: "unknown";
|
|
4343
4890
|
}
|
|
4344
4891
|
/** 2026-10: proven on-chain holding for one swap-derived position. */
|
|
4345
4892
|
export interface WalletPositionHolding {
|
|
@@ -4400,6 +4947,17 @@ export interface WalletPnlResponse {
|
|
|
4400
4947
|
* built from zero covered trades, not that the wallet never traded. */
|
|
4401
4948
|
coverage?: TradeCoverage;
|
|
4402
4949
|
_rid?: string;
|
|
4950
|
+
data_contract?: DataContract;
|
|
4951
|
+
/** Empty when complete. */
|
|
4952
|
+
incomplete_reasons?: PnlIncompleteReason[];
|
|
4953
|
+
/** `scope=recent` only: true when no older trade exists in the window. */
|
|
4954
|
+
covers_full_window?: boolean;
|
|
4955
|
+
/** `scope=recent` only. */
|
|
4956
|
+
trade_cap?: number;
|
|
4957
|
+
/** `scope=recent` only: trades this PnL was computed from (at most trade_cap). */
|
|
4958
|
+
trades_used?: number;
|
|
4959
|
+
/** `scope=recent` only: why older trades were not read. */
|
|
4960
|
+
truncated_by?: "trade_cap" | "time_budget" | null;
|
|
4403
4961
|
}
|
|
4404
4962
|
export interface WalletPositionsResponse {
|
|
4405
4963
|
address: string;
|
|
@@ -4418,6 +4976,8 @@ export interface WalletPositionsResponse {
|
|
|
4418
4976
|
/** v2.22.4 — trade-coverage disclosure (additive). */
|
|
4419
4977
|
coverage?: TradeCoverage;
|
|
4420
4978
|
_rid?: string;
|
|
4979
|
+
/** Empty when complete. */
|
|
4980
|
+
incomplete_reasons?: PnlIncompleteReason[];
|
|
4421
4981
|
}
|
|
4422
4982
|
export interface WalletHoldingsParams {
|
|
4423
4983
|
/** 1–500, default 200. */
|
|
@@ -4497,6 +5057,13 @@ export interface WalletTrade {
|
|
|
4497
5057
|
market_price_usd: number | null;
|
|
4498
5058
|
block_time: number;
|
|
4499
5059
|
traded_at: string;
|
|
5060
|
+
/** When mc-tracker measured market_price_*; null = not recorded for this row. */
|
|
5061
|
+
market_price_observed_at?: string | null;
|
|
5062
|
+
market_price_observed_at_status?: "observed" | "not_recorded" | "not_applicable";
|
|
5063
|
+
/** `mc_tracker` when market_price_observed_at is set; null when we cannot tell. */
|
|
5064
|
+
market_price_source?: "mc_tracker" | null;
|
|
5065
|
+
/** `last_measured_market_price` = the token's last measured price, NOT the price at this trade. */
|
|
5066
|
+
market_price_semantics?: "last_measured_market_price" | null;
|
|
4500
5067
|
}
|
|
4501
5068
|
export interface WalletTradesFilters {
|
|
4502
5069
|
action: "buy" | "sell" | null;
|
|
@@ -4605,6 +5172,10 @@ export interface TokenResponseBody {
|
|
|
4605
5172
|
token_supply_burn_detected?: boolean | null;
|
|
4606
5173
|
/** LP-burn evidence. Only "verified" means the LP was proven burnt. */
|
|
4607
5174
|
lp_burn_status?: LpBurnStatus;
|
|
5175
|
+
/** Why vwap_price_usd / vwap_price_sol are null, or `ok`. A VWAP more than 1000x from the price is withheld. */
|
|
5176
|
+
vwap_status?: "ok" | "unavailable" | "no_price_reference" | "implausible_vs_price";
|
|
5177
|
+
/** Per-token data contract (on `token.batch()` items). */
|
|
5178
|
+
data_contract?: DataContract;
|
|
4608
5179
|
}
|
|
4609
5180
|
/** LP-burn evidence: only "verified" means proven; "unknown" is the honest default. */
|
|
4610
5181
|
export type LpBurnStatus = "verified" | "not_verified" | "unknown";
|
|
@@ -4633,6 +5204,9 @@ export interface TokenResponse {
|
|
|
4633
5204
|
/** Includes that were requested. */
|
|
4634
5205
|
included?: string[];
|
|
4635
5206
|
_rid?: string;
|
|
5207
|
+
data_contract?: DataContract;
|
|
5208
|
+
/** Only with `include=flow_24h` on ULTRA+. */
|
|
5209
|
+
flow_24h?: TokenFlow24h;
|
|
4636
5210
|
}
|
|
4637
5211
|
export interface TokenBatchResponse {
|
|
4638
5212
|
tokens: TokenResponseBody[];
|
|
@@ -5561,6 +6135,313 @@ export interface MadeOnSolConfig {
|
|
|
5561
6135
|
*/
|
|
5562
6136
|
apiKey: string;
|
|
5563
6137
|
}
|
|
6138
|
+
/**
|
|
6139
|
+
* `data_contract`: which data state an answer reflects. `source_as_of` is the
|
|
6140
|
+
* newest source observation behind the answer, `ingest_watermark` how far our
|
|
6141
|
+
* writer has committed; each comes with an evidence class (never guessed).
|
|
6142
|
+
*/
|
|
6143
|
+
export interface DataContract {
|
|
6144
|
+
version?: "sol-token-trades.v1" | "rhc-trades.v1" | "sol-holders.v1" | "rhc-holders.v1" | "sol-wallet-pnl.v1" | "rhc-wallet-pnl.v1" | "sol-kol-feed.v1" | "sol-token.v1" | "sol-deployer.v1" | (string & {});
|
|
6145
|
+
/** When this block was assembled (ISO 8601). */
|
|
6146
|
+
assembled_at?: string;
|
|
6147
|
+
source_as_of?: string | null;
|
|
6148
|
+
source_as_of_evidence?: "verified" | "inferred" | "unknown";
|
|
6149
|
+
source_as_of_basis?: string;
|
|
6150
|
+
source_cursor?: {
|
|
6151
|
+
position?: number;
|
|
6152
|
+
unit?: "slot" | "block";
|
|
6153
|
+
} | null;
|
|
6154
|
+
ingest_watermark?: DataContractIngestWatermark | null;
|
|
6155
|
+
ingest_watermark_status?: "measured" | "stale" | "unmeasured" | "not_applicable";
|
|
6156
|
+
ingest_watermark_evidence?: "verified" | "inferred" | "unknown";
|
|
6157
|
+
ingest_note?: string;
|
|
6158
|
+
method?: {
|
|
6159
|
+
name?: string;
|
|
6160
|
+
version?: string | null;
|
|
6161
|
+
};
|
|
6162
|
+
coverage?: {
|
|
6163
|
+
price_source?: string | null;
|
|
6164
|
+
price_age_seconds?: number | null;
|
|
6165
|
+
price_is_stale?: boolean | null;
|
|
6166
|
+
last_trade_at?: string | null;
|
|
6167
|
+
data_status?: Record<string, unknown> | null;
|
|
6168
|
+
see?: string[];
|
|
6169
|
+
};
|
|
6170
|
+
evidence?: {
|
|
6171
|
+
price?: "verified" | "inferred" | "unknown";
|
|
6172
|
+
};
|
|
6173
|
+
}
|
|
6174
|
+
/** Writer checkpoint behind `DataContract.ingest_watermark`. */
|
|
6175
|
+
export interface DataContractIngestWatermark {
|
|
6176
|
+
source?: "signal_recovery_checkpoints" | "rhc_holder_fold" | "holder_index" | (string & {});
|
|
6177
|
+
collector?: string;
|
|
6178
|
+
stream?: string;
|
|
6179
|
+
position?: number;
|
|
6180
|
+
position_unit?: "slot" | "block";
|
|
6181
|
+
position_time?: string | null;
|
|
6182
|
+
recorded_at?: string | null;
|
|
6183
|
+
recorded_age_seconds?: number | null;
|
|
6184
|
+
semantics?: string;
|
|
6185
|
+
fresh_within_seconds?: number;
|
|
6186
|
+
writer_state?: {
|
|
6187
|
+
head_block?: number | null;
|
|
6188
|
+
lag_blocks?: number | null;
|
|
6189
|
+
binding?: string | null;
|
|
6190
|
+
open_loss_owed_ranges?: number | null;
|
|
6191
|
+
lowest_open_loss_owed_block?: number | null;
|
|
6192
|
+
} | null;
|
|
6193
|
+
}
|
|
6194
|
+
/** Why a figure is missing from a PnL answer. Empty array = complete. */
|
|
6195
|
+
export type PnlIncompleteReason = "proceeds_unattributed" | "unknown_consideration" | "missing_cost_basis" | "time_budget" | "scope_recent" | (string & {});
|
|
6196
|
+
/** Win-rate status (KOL compare / leaderboard). Null win rate unless `available` or `partial`. */
|
|
6197
|
+
export type KolWinrateStatus = "available" | "partial" | "insufficient_sample" | "no_known_positions" | "no_closed_positions" | "unavailable" | (string & {});
|
|
6198
|
+
/** `flow_24h` on `GET /token/{mint}?include=flow_24h` (ULTRA+): 24 h organic buy/sell split from the 1-minute candle tape. */
|
|
6199
|
+
export interface TokenFlow24h {
|
|
6200
|
+
status?: "ok" | "no_candles" | "incomplete" | "unavailable";
|
|
6201
|
+
source?: "candle_tape_1m";
|
|
6202
|
+
window_from?: string;
|
|
6203
|
+
window_to?: string;
|
|
6204
|
+
buy_volume_usd?: number | null;
|
|
6205
|
+
sell_volume_usd?: number | null;
|
|
6206
|
+
net_flow_usd?: number | null;
|
|
6207
|
+
/** MEV volume, separate and not side-split. */
|
|
6208
|
+
mev_volume_usd?: number | null;
|
|
6209
|
+
buys?: number | null;
|
|
6210
|
+
sells?: number | null;
|
|
6211
|
+
candle_hours?: number;
|
|
6212
|
+
}
|
|
6213
|
+
/** `upgrade_hint`: present only when your tier withheld rows the next tier would disclose. */
|
|
6214
|
+
export interface UpgradeHint {
|
|
6215
|
+
feature: string;
|
|
6216
|
+
tier: "ULTRA" | "BUSINESS";
|
|
6217
|
+
note: string;
|
|
6218
|
+
checkout: string;
|
|
6219
|
+
}
|
|
6220
|
+
/** `strict_bundle` on `GET /tokens/{mint}/bundle-share`: how the strict, proven-lower-bound measure was computed. */
|
|
6221
|
+
export interface StrictBundle {
|
|
6222
|
+
definition?: "launch_bundle_plus_same_transaction_buyers";
|
|
6223
|
+
basis?: "proven_lower_bound";
|
|
6224
|
+
funding_evidence_since?: string;
|
|
6225
|
+
status?: "ok" | "unavailable" | "timeout" | "error" | "not_supported";
|
|
6226
|
+
complete?: boolean;
|
|
6227
|
+
incomplete_reason?: string | null;
|
|
6228
|
+
wallets?: {
|
|
6229
|
+
total?: number | null;
|
|
6230
|
+
launch_cohort_wallets?: number | null;
|
|
6231
|
+
linked_cluster_wallets?: number | null;
|
|
6232
|
+
verified?: number | null;
|
|
6233
|
+
holding?: number | null;
|
|
6234
|
+
};
|
|
6235
|
+
evidence?: {
|
|
6236
|
+
same_transaction_wallets?: number;
|
|
6237
|
+
identical_amount_wallets?: number | null;
|
|
6238
|
+
funding_link_wallets?: number | null;
|
|
6239
|
+
} | null;
|
|
6240
|
+
funding_context?: {
|
|
6241
|
+
strict_wallets_with_funding_link_to_strict?: number;
|
|
6242
|
+
funding_evidence_since?: string;
|
|
6243
|
+
} | null;
|
|
6244
|
+
/** Raw token units as a decimal string. */
|
|
6245
|
+
tokens_held_raw?: string | null;
|
|
6246
|
+
/** RATIO in [0, 1]. */
|
|
6247
|
+
held_pct_of_supply?: number | null;
|
|
6248
|
+
note?: string;
|
|
6249
|
+
}
|
|
6250
|
+
/** `wallet_set` on `GET /tokens/{mint}/bundle-share`: where the bundle wallet set came from. */
|
|
6251
|
+
export interface BundleWalletSet {
|
|
6252
|
+
source?: "token_bundle_wallet_set" | "token_bundle_clusters";
|
|
6253
|
+
wallet_cap?: number | null;
|
|
6254
|
+
incomplete_reason?: "clusters_truncated" | "cluster_wallets_truncated" | "wallet_set_truncated" | null;
|
|
6255
|
+
active_slots?: number | null;
|
|
6256
|
+
}
|
|
6257
|
+
/** `committed` on `GET /tokens/{mint}/trades?order=committed`: the bounds of this page. */
|
|
6258
|
+
export interface TokenTradesCommitted {
|
|
6259
|
+
horizon_at?: string | null;
|
|
6260
|
+
horizon_lag_ms?: number | null;
|
|
6261
|
+
horizon_reason?: "settle" | "open_writer" | "coverage_unknown";
|
|
6262
|
+
horizon_detail?: string | null;
|
|
6263
|
+
status?: "ok" | "stalled" | "horizon_unavailable";
|
|
6264
|
+
settle_s?: number;
|
|
6265
|
+
lookback_s?: number;
|
|
6266
|
+
max_catchup_s?: number;
|
|
6267
|
+
block_time_from?: number;
|
|
6268
|
+
late_threshold_ms?: number;
|
|
6269
|
+
dedupe_key?: string;
|
|
6270
|
+
note?: string;
|
|
6271
|
+
}
|
|
6272
|
+
/** Signal products in the signal inbox. */
|
|
6273
|
+
export type SignalInboxProduct = "coordination" | "copytrade" | "rhc_coordination" | "rhc_copytrade";
|
|
6274
|
+
/** Query for `signalInbox()`. */
|
|
6275
|
+
export interface SignalInboxParams {
|
|
6276
|
+
/** Comma list (or array) of products (default all four). The ack scope is this set. */
|
|
6277
|
+
products?: SignalInboxProduct[] | string;
|
|
6278
|
+
/** `next_cursor` of a previous page (bound to its product set), or the literal `"acked"` to resume from your acknowledged position. */
|
|
6279
|
+
cursor?: string;
|
|
6280
|
+
/** ISO 8601 start without a cursor (default 7 days ago). Not combinable with `cursor`. */
|
|
6281
|
+
since?: string;
|
|
6282
|
+
/** 1-500 (default 100). */
|
|
6283
|
+
limit?: number;
|
|
6284
|
+
}
|
|
6285
|
+
/** One signal in the inbox. Deduplicate on `delivery_id` (delivery is at least once). */
|
|
6286
|
+
export interface SignalInboxItem {
|
|
6287
|
+
/** `<product>:<id>`; the same key as on the WS frame and the webhook (body + X-MadeOnSol-Delivery-Id). */
|
|
6288
|
+
delivery_id: string;
|
|
6289
|
+
/** Numeric signal row id, as on the WS frame. */
|
|
6290
|
+
signal_id: number;
|
|
6291
|
+
product: SignalInboxProduct;
|
|
6292
|
+
/** UTC, microsecond precision. */
|
|
6293
|
+
fired_at: string;
|
|
6294
|
+
/** Coordination products: the rule id. */
|
|
6295
|
+
rule_id?: string;
|
|
6296
|
+
/** Copy-trade products: the subscription id. */
|
|
6297
|
+
subscription_id?: string;
|
|
6298
|
+
/** Server-side push result (WS write or webhook 2xx), never proof that your client received it. */
|
|
6299
|
+
delivery?: {
|
|
6300
|
+
pushed?: boolean;
|
|
6301
|
+
push_error?: "ws_not_connected" | "ws_not_subscribed" | "ws_replay_dropped" | "ws_failed" | "webhook_no_secret" | "webhook_failed" | null;
|
|
6302
|
+
};
|
|
6303
|
+
/** The signal row's own fields (same as the WS frame / webhook payload). */
|
|
6304
|
+
data?: Record<string, unknown>;
|
|
6305
|
+
}
|
|
6306
|
+
/** `GET /signals/inbox` (PRO+). */
|
|
6307
|
+
export interface SignalInboxResponse {
|
|
6308
|
+
products: SignalInboxProduct[];
|
|
6309
|
+
scope: string;
|
|
6310
|
+
signals: SignalInboxItem[];
|
|
6311
|
+
next_cursor: string | null;
|
|
6312
|
+
/** Exact: true only when another row exists after this page. */
|
|
6313
|
+
has_more: boolean;
|
|
6314
|
+
acked_cursor: string | null;
|
|
6315
|
+
/** Per product (coordination 30, copytrade 7, rhc_coordination 30, rhc_copytrade 7 days). */
|
|
6316
|
+
retention_days?: Record<string, number | null>;
|
|
6317
|
+
retained_from?: string | null;
|
|
6318
|
+
/** The window starts before what a selected product still keeps: older signals may have been pruned. */
|
|
6319
|
+
start_before_retention?: boolean;
|
|
6320
|
+
}
|
|
6321
|
+
/** Body for `ackSignalInbox()`. */
|
|
6322
|
+
export interface SignalInboxAckParams {
|
|
6323
|
+
/** A `next_cursor` from `signalInbox()`. */
|
|
6324
|
+
cursor: string;
|
|
6325
|
+
/** Optional. The scope is the cursor's own product set; a different set is refused. */
|
|
6326
|
+
products?: SignalInboxProduct[];
|
|
6327
|
+
}
|
|
6328
|
+
/** `POST /signals/inbox/ack` (PRO+). Monotonic: an older or equal cursor changes nothing (`advanced: false`). */
|
|
6329
|
+
export interface SignalInboxAckResponse {
|
|
6330
|
+
scope: string;
|
|
6331
|
+
advanced: boolean;
|
|
6332
|
+
/** Signals newly covered by this call. */
|
|
6333
|
+
acked_now: number;
|
|
6334
|
+
acked_cursor: string | null;
|
|
6335
|
+
}
|
|
6336
|
+
/** Why an insider-flow figure is null (never 0). */
|
|
6337
|
+
export type InsiderFlowNullReason = "unpriced_trades" | "firehose_gap" | "gap_state_unverified" | "not_captured" | "capture_unverified" | "no_buy_volume" | "buy_volume_incomplete" | "liquidity_unknown" | "liquidity_stale" | "sol_price_unavailable" | (string & {});
|
|
6338
|
+
/** One cohort (or the deduplicated `insiders` union) inside one insider-flow window. */
|
|
6339
|
+
export interface InsiderFlowCohortFlow {
|
|
6340
|
+
wallets_trading: number | null;
|
|
6341
|
+
wallets_selling: number | null;
|
|
6342
|
+
buy_trades: number | null;
|
|
6343
|
+
sell_trades: number | null;
|
|
6344
|
+
/** Proven SOL spent on buys (unpriced trades excluded, counted in `unpriced_trades`). */
|
|
6345
|
+
buy_sol: number | null;
|
|
6346
|
+
/** Proven SOL received from sells. */
|
|
6347
|
+
sell_sol: number | null;
|
|
6348
|
+
/** Tokens sold (UI units). */
|
|
6349
|
+
sell_tokens: number | null;
|
|
6350
|
+
unpriced_trades: number | null;
|
|
6351
|
+
amounts: "complete" | "partial" | null;
|
|
6352
|
+
/** sell_sol - buy_sol. Positive = net selling. Null when amounts are partial or the window overlaps a capture gap. */
|
|
6353
|
+
net_sell_sol: number | null;
|
|
6354
|
+
net_sell_usd: number | null;
|
|
6355
|
+
/** PERCENT of every proven buy in the window. */
|
|
6356
|
+
net_sell_pct_of_buy_volume: number | null;
|
|
6357
|
+
/** PERCENT of the token's liquidity_usd. */
|
|
6358
|
+
net_sell_pct_of_liquidity: number | null;
|
|
6359
|
+
null_reasons?: Record<string, InsiderFlowNullReason>;
|
|
6360
|
+
}
|
|
6361
|
+
/** One insider-flow window (`5m` or `15m`), ending at `as_of`. */
|
|
6362
|
+
export interface InsiderFlowWindow {
|
|
6363
|
+
from: string;
|
|
6364
|
+
to: string;
|
|
6365
|
+
seconds: number;
|
|
6366
|
+
status: "ok" | "no_trades" | "gap_overlap" | "gap_unverified" | "not_captured" | "capture_unverified";
|
|
6367
|
+
/** Every stored trade of the token in the window. */
|
|
6368
|
+
market: {
|
|
6369
|
+
buy_trades: number | null;
|
|
6370
|
+
sell_trades: number | null;
|
|
6371
|
+
buy_sol: number | null;
|
|
6372
|
+
sell_sol: number | null;
|
|
6373
|
+
unpriced_trades: number | null;
|
|
6374
|
+
};
|
|
6375
|
+
/** Each wallet counted once, even when it sits in several cohorts. */
|
|
6376
|
+
insiders: InsiderFlowCohortFlow;
|
|
6377
|
+
/** Per cohort; a wallet can appear in several, so these can add up to more than `insiders`. */
|
|
6378
|
+
by_cohort: {
|
|
6379
|
+
creator?: InsiderFlowCohortFlow;
|
|
6380
|
+
early_buyers?: InsiderFlowCohortFlow;
|
|
6381
|
+
bundlers?: InsiderFlowCohortFlow;
|
|
6382
|
+
kols?: InsiderFlowCohortFlow;
|
|
6383
|
+
};
|
|
6384
|
+
}
|
|
6385
|
+
/** `GET /tokens/{mint}/insider-flow` (PRO+, cached 15 s): net SOL selling by creator, early buyers, bundlers and KOLs. */
|
|
6386
|
+
export interface TokenInsiderFlowResponse {
|
|
6387
|
+
mint: string;
|
|
6388
|
+
as_of: string;
|
|
6389
|
+
rule_version: string;
|
|
6390
|
+
/** Windows are measured on our ingest clock. */
|
|
6391
|
+
time_basis: "ingest_clock";
|
|
6392
|
+
/** Keys `5m` and `15m`. */
|
|
6393
|
+
windows: Record<string, InsiderFlowWindow>;
|
|
6394
|
+
cohorts: {
|
|
6395
|
+
creator?: {
|
|
6396
|
+
status: "known" | "platform_signer" | "not_recorded";
|
|
6397
|
+
wallet: string | null;
|
|
6398
|
+
};
|
|
6399
|
+
early_buyers?: {
|
|
6400
|
+
status: "recorded" | "not_recorded";
|
|
6401
|
+
wallets: number;
|
|
6402
|
+
};
|
|
6403
|
+
/** `not_measured` = launched before bundle detection started (2026-10-15 14:46 UTC). */
|
|
6404
|
+
bundlers?: {
|
|
6405
|
+
status: "detected" | "none_detected" | "not_measured";
|
|
6406
|
+
wallets: number;
|
|
6407
|
+
};
|
|
6408
|
+
kols?: {
|
|
6409
|
+
status: "matched_on_trades";
|
|
6410
|
+
note?: string;
|
|
6411
|
+
};
|
|
6412
|
+
};
|
|
6413
|
+
/** Per window `{ status: no_known_gap | gap_overlap | not_verified, overlapping }` plus `capture`. */
|
|
6414
|
+
completeness: Record<string, unknown>;
|
|
6415
|
+
liquidity: {
|
|
6416
|
+
liquidity_usd: number | null;
|
|
6417
|
+
updated_at: string | null;
|
|
6418
|
+
status: "ok" | "unknown" | "stale" | "no_primary_pool";
|
|
6419
|
+
};
|
|
6420
|
+
sol_usd: {
|
|
6421
|
+
price: number | null;
|
|
6422
|
+
source?: string;
|
|
6423
|
+
status: "ok" | "unavailable";
|
|
6424
|
+
};
|
|
6425
|
+
coverage?: TradeCoverage;
|
|
6426
|
+
note?: string;
|
|
6427
|
+
}
|
|
6428
|
+
/** One early-buyer token on `GET /alpha/{wallet}`. */
|
|
6429
|
+
export interface AlphaWalletToken {
|
|
6430
|
+
token_mint: string;
|
|
6431
|
+
rank: number | null;
|
|
6432
|
+
/** Null = unknown (see `first_buy_sol_status`), never 0. */
|
|
6433
|
+
first_buy_sol: number | null;
|
|
6434
|
+
first_buy_sol_status?: "measured" | "unknown_consideration";
|
|
6435
|
+
first_buy_at: string | null;
|
|
6436
|
+
/** Null = unknown, never 0. */
|
|
6437
|
+
total_sol_bought: number | null;
|
|
6438
|
+
total_sol_sold: number;
|
|
6439
|
+
/** Null = realization unknown (an unattributed sell), never 0. */
|
|
6440
|
+
realized_pnl_sol: number | null;
|
|
6441
|
+
buy_count: number;
|
|
6442
|
+
sell_count: number;
|
|
6443
|
+
result: "win" | "loss" | "open" | "unknown" | (string & {});
|
|
6444
|
+
}
|
|
5564
6445
|
declare class KolClient {
|
|
5565
6446
|
private readonly _fetch;
|
|
5566
6447
|
private readonly _baseUrl;
|
|
@@ -5635,6 +6516,17 @@ declare class KolClient {
|
|
|
5635
6516
|
* @param params Optional: limit (1–100).
|
|
5636
6517
|
*/
|
|
5637
6518
|
tokenEntryOrder(mint: string, params?: KolEntryOrderParams): Promise<KolEntryOrderResponse>;
|
|
6519
|
+
/**
|
|
6520
|
+
* Every stored KOL trade on one token, newest first, keyset paged with
|
|
6521
|
+
* `next_cursor` / exact `has_more` (`token(mint)` is the per-KOL aggregate;
|
|
6522
|
+
* this is the per-trade list behind it). Same tier depth as `feed()`: BASIC
|
|
6523
|
+
* gets the 5-minute delayed tape and 20 rows per page. KOL trades below the
|
|
6524
|
+
* persistence floor (0.05 SOL, or $3.50 on a stable-quoted leg) are not stored.
|
|
6525
|
+
* `GET /kol/tokens/{mint}/trades`
|
|
6526
|
+
* @param mint Token mint address.
|
|
6527
|
+
* @param params Optional: limit (1–200), action, kol, since, cursor.
|
|
6528
|
+
*/
|
|
6529
|
+
tokenTrades(mint: string, params?: KolTokenTradesParams): Promise<KolTokenTradesResponse>;
|
|
5638
6530
|
/**
|
|
5639
6531
|
* Side-by-side comparison of 2–5 KOL wallets.
|
|
5640
6532
|
* Returns full scores (winrate/ROI/profit factor/early entry/consistency) and, on PRO+, a 30d overlap array.
|
|
@@ -5701,14 +6593,14 @@ declare class AlphaClient {
|
|
|
5701
6593
|
* **BASIC**: HTTP 403. **PRO**: top 10, truncated wallets. **ULTRA**: top 20, full wallets.
|
|
5702
6594
|
* @param mint Token mint address.
|
|
5703
6595
|
*/
|
|
5704
|
-
capTable(mint: string): Promise<AlphaCapTableResponse>;
|
|
6596
|
+
capTable(mint: string, params?: AlphaCapTableParams): Promise<AlphaCapTableResponse>;
|
|
5705
6597
|
/**
|
|
5706
6598
|
* 0–100 buyer quality score for a token's early-buyer cohort.
|
|
5707
6599
|
* Signal: "positive" (>60), "neutral" (40–60), "negative" (<40). 5-minute cache.
|
|
5708
6600
|
* BASIC: score + confidence + signal. PRO/ULTRA: + breakdown.
|
|
5709
6601
|
* @param mint Token mint address.
|
|
5710
6602
|
*/
|
|
5711
|
-
buyerQuality(mint: string): Promise<AlphaBuyerQualityResponse>;
|
|
6603
|
+
buyerQuality(mint: string, params?: AlphaBuyerQualityParams): Promise<AlphaBuyerQualityResponse>;
|
|
5712
6604
|
/**
|
|
5713
6605
|
* v2.13 — Transparent 0–100 token rug-risk/safety score (higher = riskier).
|
|
5714
6606
|
* Returns a `band` (safe/caution/danger), an explainable `factors` array that
|
|
@@ -5731,7 +6623,30 @@ declare class AlphaClient {
|
|
|
5731
6623
|
* (`kol_name`, `win_rate`, `bot_confidence`) and per-wallet `tokens_held`.
|
|
5732
6624
|
* @param mint Token mint address.
|
|
5733
6625
|
*/
|
|
5734
|
-
bundle(mint: string): Promise<TokenBundleResponse>;
|
|
6626
|
+
bundle(mint: string, params?: TokenBundleParams): Promise<TokenBundleResponse>;
|
|
6627
|
+
/**
|
|
6628
|
+
* Every coordinated buy cluster on a token in a window, the launch bundle AND
|
|
6629
|
+
* clusters that enter later: one slot where at least `min_wallets` distinct
|
|
6630
|
+
* wallets bought. `bundle()` stays the launch-cohort view. Per cluster: slot,
|
|
6631
|
+
* time, `phase`, `wallet_count`, `new_wallets`, `atomic_txs`, volumes,
|
|
6632
|
+
* wallets and (for followed clusters) `exit`. `summary.baseline` gives the
|
|
6633
|
+
* window's buys per active slot: a cluster is evidence, not a verdict. Only
|
|
6634
|
+
* stored buys count. `include_balances: true` adds `held_now` to the 3 most
|
|
6635
|
+
* recent clusters. **PRO+.** `GET /tokens/{mint}/bundles`
|
|
6636
|
+
* @param mint Token mint address.
|
|
6637
|
+
* @param params Optional: window, min_wallets (3–20), limit (1–100), include_balances.
|
|
6638
|
+
*/
|
|
6639
|
+
bundles(mint: string, params?: TokenBundlesParams): Promise<TokenBundlesResponse>;
|
|
6640
|
+
/**
|
|
6641
|
+
* ONE figure: `bundled_pct_of_supply_now`, the share of supply held RIGHT NOW
|
|
6642
|
+
* by every bundle wallet (launch bundle plus every cluster wallet in the
|
|
6643
|
+
* window, each counted once), read from chain balances. Null when not every
|
|
6644
|
+
* wallet could be read, never a partial sum. Cached 30 s per token (`as_of`),
|
|
6645
|
+
* so polling is cheap. **PRO+.** `GET /tokens/{mint}/bundle-share`
|
|
6646
|
+
* @param mint Token mint address.
|
|
6647
|
+
* @param params Optional: window, min_wallets (3–20).
|
|
6648
|
+
*/
|
|
6649
|
+
bundleShare(mint: string, params?: TokenBundleShareParams): Promise<TokenBundleShareResponse>;
|
|
5735
6650
|
/**
|
|
5736
6651
|
* Per-venue liquidity map: every DEX pool a token trades in, each flagged
|
|
5737
6652
|
* live (`is_active`) or parked, with `liquidity_usd`, `last_price_sol`, and
|
|
@@ -5810,7 +6725,7 @@ declare class AlphaClient {
|
|
|
5810
6725
|
* 404 `error_kind: "not_a_mint"`. **PRO+** — BASIC receives HTTP 403.
|
|
5811
6726
|
* @param mint Token mint address.
|
|
5812
6727
|
*/
|
|
5813
|
-
holders(mint: string): Promise<TokenHoldersResponse>;
|
|
6728
|
+
holders(mint: string, params?: TokenHoldersParams): Promise<TokenHoldersResponse>;
|
|
5814
6729
|
}
|
|
5815
6730
|
declare class TokenClient {
|
|
5816
6731
|
private readonly _fetch;
|
|
@@ -5824,6 +6739,14 @@ declare class TokenClient {
|
|
|
5824
6739
|
* **ULTRA** adds individual KOL wallet addresses in kol_activity.top_buyers[].
|
|
5825
6740
|
* @param mint Token mint address (base58).
|
|
5826
6741
|
*/
|
|
6742
|
+
/**
|
|
6743
|
+
* Insider sell pressure (`GET /tokens/{mint}/insider-flow`): net SOL selling by
|
|
6744
|
+
* the creator, early buyers, bundlers and KOLs over the last 5 and 15 minutes,
|
|
6745
|
+
* against the window's buy volume and the token's liquidity. Unproven amounts
|
|
6746
|
+
* are null with `null_reasons`, never 0. Cached 15 s per token. **PRO+.**
|
|
6747
|
+
* @param mint Token mint address.
|
|
6748
|
+
*/
|
|
6749
|
+
insiderFlow(mint: string): Promise<TokenInsiderFlowResponse>;
|
|
5827
6750
|
get(mint: string, params?: TokenGetParams): Promise<TokenResponse>;
|
|
5828
6751
|
/**
|
|
5829
6752
|
* Resolve a ticker or name to candidate mints (`GET /tokens/search`), ranked
|
|
@@ -6206,7 +7129,7 @@ declare class WalletTrackerClient {
|
|
|
6206
7129
|
/**
|
|
6207
7130
|
* Add a wallet to your watchlist.
|
|
6208
7131
|
* Returns HTTP 409 if already tracked or tier limit is reached.
|
|
6209
|
-
* Limits:
|
|
7132
|
+
* Limits per chain: PRO 50, ULTRA 250, BUSINESS 1,000 (the Free tier has no wallet tracker).
|
|
6210
7133
|
* @param params wallet_address (required), label (optional).
|
|
6211
7134
|
*/
|
|
6212
7135
|
addToWatchlist(params: WatchlistAddParams): Promise<WatchlistAddResponse>;
|
|
@@ -6274,6 +7197,8 @@ export interface SniperDeploy {
|
|
|
6274
7197
|
/** Null until separate chain evidence is available; observation is not execution. */
|
|
6275
7198
|
confirmed_on_chain: boolean | null;
|
|
6276
7199
|
confirmed_at: string | null;
|
|
7200
|
+
/** ShredPrism: first observed successful finalized outcome (observation time); null for legacy deshred rows. */
|
|
7201
|
+
finalized_at?: string | null;
|
|
6277
7202
|
/** v2.20 — slot-window snipe rollup for this deploy (slots [-1..+3]). `null`
|
|
6278
7203
|
* until the ~10-min settle window has passed or when the mint is outside the
|
|
6279
7204
|
* pump.fun-pipeline write-gate — absent, not zero. */
|
|
@@ -6410,6 +7335,8 @@ declare class WalletClient {
|
|
|
6410
7335
|
* makes the cutoff visible.
|
|
6411
7336
|
*
|
|
6412
7337
|
* **PRO+**.
|
|
7338
|
+
* `scope: "recent"` = PnL over the most recent trades that fit the 3-second budget (at most 10,000; never refused for size;
|
|
7339
|
+
* labelled with `trades_used`, `covers_full_window`, `truncated_by`). Default `full` = the whole 90-day window.
|
|
6413
7340
|
* @param address Solana wallet address.
|
|
6414
7341
|
* @example
|
|
6415
7342
|
* ```ts
|
|
@@ -6421,7 +7348,9 @@ declare class WalletClient {
|
|
|
6421
7348
|
* }
|
|
6422
7349
|
* ```
|
|
6423
7350
|
*/
|
|
6424
|
-
pnl(address: string
|
|
7351
|
+
pnl(address: string, params?: {
|
|
7352
|
+
scope?: "full" | "recent";
|
|
7353
|
+
}): Promise<WalletPnlResponse>;
|
|
6425
7354
|
/**
|
|
6426
7355
|
* Open positions only — lighter slice of `pnl()` for UIs that don't need the
|
|
6427
7356
|
* summary or curve. Shares the `wallet_analyses` cache: calling this right
|
|
@@ -6514,7 +7443,7 @@ declare class CoordinationAlertsClient {
|
|
|
6514
7443
|
/**
|
|
6515
7444
|
* Create a coordination alert rule. Returns the rule plus a one-time
|
|
6516
7445
|
* `webhook_secret` (save it — used for HMAC-SHA256 signature verification).
|
|
6517
|
-
* Tier quotas: PRO 5
|
|
7446
|
+
* Tier quotas: PRO 5, ULTRA 20, BUSINESS 100 rules.
|
|
6518
7447
|
*/
|
|
6519
7448
|
create(params: CoordinationAlertCreateParams): Promise<CoordinationAlertCreateResponse>;
|
|
6520
7449
|
/** Fetch a single rule by id. */
|
|
@@ -6564,7 +7493,7 @@ declare class PriceAlertsClient {
|
|
|
6564
7493
|
/**
|
|
6565
7494
|
* Create a price alert. Captures baseline MC from current token_prices.
|
|
6566
7495
|
* Returns the alert plus a one-time `webhook_secret`.
|
|
6567
|
-
* Tier quotas: PRO 5
|
|
7496
|
+
* Tier quotas: PRO 5, ULTRA 50, BUSINESS 150 active alerts per chain.
|
|
6568
7497
|
*/
|
|
6569
7498
|
create(params: PriceAlertCreateParams): Promise<PriceAlertCreateResponse>;
|
|
6570
7499
|
/** Fetch a single alert by id. */
|
|
@@ -6730,7 +7659,7 @@ declare class CopyTradeClient {
|
|
|
6730
7659
|
/**
|
|
6731
7660
|
* Create a copy-trade rule (mirror N source wallets). Returns a one-time
|
|
6732
7661
|
* `webhook_secret` when `webhook_url` is set — save it. Tier quotas: PRO 3
|
|
6733
|
-
* rules × 5 wallets, ULTRA 20 × 50.
|
|
7662
|
+
* rules × 5 wallets, ULTRA 20 × 50, BUSINESS 100 × 250.
|
|
6734
7663
|
*/
|
|
6735
7664
|
create(params: CopyTradeCreateParams): Promise<CopyTradeCreateResponse>;
|
|
6736
7665
|
/** Fetch a single rule by id. */
|
|
@@ -6908,6 +7837,20 @@ export declare class MadeOnSol {
|
|
|
6908
7837
|
getSignalPerformance(name: SignalName | string, params?: {
|
|
6909
7838
|
history?: boolean;
|
|
6910
7839
|
}): Promise<SignalPerformanceResponse>;
|
|
7840
|
+
/**
|
|
7841
|
+
* Signal inbox (`GET /signals/inbox`): your coordination, copy-trade, RHC
|
|
7842
|
+
* coordination and RHC copy-trade signals in ONE resumable order, including
|
|
7843
|
+
* signals fired while you were offline. Deduplicate on `delivery_id`.
|
|
7844
|
+
* Fetching does not acknowledge: call `ackSignalInbox()`. Pass
|
|
7845
|
+
* `cursor: "acked"` to resume from your acknowledged position. **PRO+.**
|
|
7846
|
+
* Answers 503 `feature_disabled` until the inbox is enabled server-side.
|
|
7847
|
+
*/
|
|
7848
|
+
signalInbox(params?: SignalInboxParams): Promise<SignalInboxResponse>;
|
|
7849
|
+
/**
|
|
7850
|
+
* Acknowledge inbox signals up to and including `cursor` (`POST /signals/inbox/ack`).
|
|
7851
|
+
* Monotonic read marker: nothing is deleted. **PRO+.**
|
|
7852
|
+
*/
|
|
7853
|
+
ackSignalInbox(params: SignalInboxAckParams): Promise<SignalInboxAckResponse>;
|
|
6911
7854
|
/** Signal Scorecard catalog (`GET /signals`): every signal, its methodology and its performance endpoint. Any key. */
|
|
6912
7855
|
listSignals(): Promise<SignalsCatalogResponse>;
|
|
6913
7856
|
/**
|