madeonsol 4.1.0 → 4.3.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 +5 -1
- package/dist/index.d.ts +187 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/stream.d.ts.map +1 -1
- package/dist/stream.js +3 -1
- package/dist/stream.js.map +1 -1
- package/llms.txt +117 -117
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 MadeOnSol
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 MadeOnSol
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -14,6 +14,10 @@ Official TypeScript/JavaScript SDK for the **[MadeOnSol](https://madeonsol.com)
|
|
|
14
14
|
|
|
15
15
|
> **Migrating to 4.0.0.** Runtime API behaviour is not intentionally changing: the server sends exactly what it sent before. The breaking change is the corrected public **type contract**. Several 3.x response types described field names and shapes the API never returned, so code that compiled against them read `undefined` at runtime. Rewritten or renamed types: `KolWalletProfile` (`kol` / `stats` / `scores` / `peer_ranks` / `recent_trades` / `pnl_by_token`), `KolTokenActivity` (`token_mint` / `summary` / `kols[]`), alpha linked wallets (`linked`, was `linked_wallets`), `DeployerTokenRow` (`token_mint`, was `mint`), wallet-tracker trade events (`slot`, `ingested_at`, `ordered_by`, `next_cursor_slot`; keys the API never sent are now optional and `@deprecated`), `DeployerProfileResponse` (from 3.0.0). Several previously required fields are now optional because the API omits or nulls them. Update the field names your code reads; no request-side change is needed.
|
|
16
16
|
|
|
17
|
+
> **New in 4.3.0 (stream handshake fix + contract parity).** `MadeOnSolStream` no longer opens a second WebSocket (or requests a second stream token) when `connect()` or `subscribe()` is called while the first socket is still connecting; channels requested during the handshake are sent once it opens, and `close()` during the handshake leaves no socket behind. Response types gain the fields the API already serves: copy-trade identity v2 on `CopyTradeSignal` (`economic_action_id`, `source_actor`, `co_actors`, `identity_version`), LP security on `TokenSummary` (`lp_secured_pct`, `lp_secured_basis`, `lp_locked_until`), `AlmostBondedToken.launchpad` / `venue_source`, cap-table `ranks_completeness`, depth `pool_selection` and per-pool `model_detail` / `pool_account` / `fee_basis` / `bins_window` / `ticks_window`, batch-classify `label_coverage` / `rule_version` / `evidence_horizon`, proven-holding fields on wallet PnL and positions (`holding_check`, `position_basis`, `holding_status`, `holding_unverified_reason`, `cost_basis_status`, `holding`) and funding `wallet_coverage`. All additive and optional.
|
|
18
|
+
|
|
19
|
+
> **New in 4.2.0 (any-wallet copy-trade).** Copy-trade rules can now follow any wallet, KOL or not (server 2026-10-04; KOL membership is enrichment only and copy-trade sources do not use Wallet Tracker quota). `CopyTradeSubscription` gains `source_admission` (`CopyTradeSourceAdmission`: `"any_wallet"` | legacy `"kol_only"`), `operational_state` (`CopyTradeOperationalState`: `eligible`, or an infrastructure state `monitoring_pending` / `monitoring_unavailable` / `source_capacity_unavailable`; legacy `no_tracked_sources` / `unknown`) and `monitoring_reasons`; `source_wallets_tracked` / `source_wallets_untracked` are deprecated (kept and still filled). **Token locks:** `TokenLockProgram` adds `smithii_vesting` and `sablier_lockup`; `TokenLock` gains the Sablier stream-NFT holder proof (`holder_status`, `last_proven_holder`, `holder_proven_at_slot`; `recipient` is only the CURRENT proven holder) and `withdrawn_tracked` — `withdrawn_raw` / `claimable_raw` are now `string | null` (null when the program does not expose withdrawals, e.g. Smithii). Additive on the wire; the two nullable changes can surface as compile-time errors under `strictNullChecks`.
|
|
20
|
+
|
|
17
21
|
> **New in 4.1.0 (deployer activity timeline).** `client.deployer.deployerActivity(wallet, { limit?, cursor?, since?, types? })` (typed `DeployerActivityResponse`) binds `GET /deployer-hunter/{wallet}/activity`: one newest-first timeline of launches, the deployer's own dev buys/sells, creator transfers, fee claims, funding in and capital out, windowed on each event's own time (PRO 30 d, ULTRA 365 d, BUSINESS unbounded; page clamped to 100 / 100 / 500 and echoed in `plan`). History is served from the online store only for now: read `coverage.families.<family>.complete`, `archive_required_before` and `plan.history.archive_only` before treating an empty range as "nothing happened". A wallet with no attributed launch reports `dev_trades.skipped_reason: "no_attributed_launch"`. PRO responses never carry an identity block or a fee-payer address; ULTRA/BUSINESS `identity` is `not_available` until identity stitching is released. **PRO+**. New types: `DeployerActivityResponse`, `DeployerActivityParams`, `DeployerActivityEvent`, `DeployerActivityEventType`, `DeployerActivityFamilyCoverage`, `DeployerActivityHistoryPlan`, `DeployerActivityRange`.
|
|
18
22
|
|
|
19
23
|
> **New in 4.0.0 (SDK contract parity, 2026-10-03).** **New methods:** `client.kol.wallets(params?)` → `GET /kol/wallets` (tracked KOL roster, any key); `client.token.search({ q, limit? })` → `GET /tokens/search` (ticker/name → candidate mints, any key); `client.listSignals()` → `GET /signals`; `client.manifests(params?)` → `GET /manifests` (nightly as-of dataset manifests with `fingerprint`, any key); `client.wallet.flags(address, { as_of?, history? })` → `GET /wallet/{address}/flags` (point-in-time flags, PRO+); `client.wallet.batchTrades({ wallets, since?, limit_per_wallet?, action? })` → `POST /wallet/batch/trades` (PRO+); `client.wallet.scoreList(wallets)` → `POST /wallet-list/score` (Enterprise); `client.wallet.funding(address, { limit?, offset? })` → `GET /wallet/{address}/funding` (shared-funder evidence, PRO+; `relationships` ULTRA+). `client.token.get(mint, { include })` accepts `buyer_quality` / `deployer`. **Typed (was `unknown`):** `kol.scoutLeaderboard()`, `kol.coordinationHistory()`, `getSignalPerformance()` (now also takes `{ history }`). **Type corrections (compile-time breaking, matching what the API has always returned):** `KolWalletProfile` (`kol`, `stats`, `scores`, `peer_ranks`, `recent_trades`, `pnl_by_token` with `total_bought`/`total_sold`), `KolTokenActivity` (`token_mint`, `summary`, `kols[]`), `AlphaLinkedResponse.linked` (with `avg_time_diff_secs`/`avg_sol_diff`), `DeployerTokensResponse.tokens` (`DeployerTokenRow`, with `instant_bond`), `WalletTrackerEvent` (`slot`, `replayed`, `ingested_at`, `timestamp`; `action` nullable) — the old never-sent keys stay as optional `@deprecated`. **New fields:** token snapshot (`/token/{mint}`, `/token/batch`) price provenance (`price_source`, `price_observed_at`, `price_is_stale`, `price_age_seconds`), `vwap_price_*`, `primary_pool_address`, `deployer_identity`, `lp_burn_status`, `token_supply_burn_detected`; `/tokens` rows `lp_burn_status` / `lp_burned` / `token_supply_burn_detected` + `deprecations`; risk `dev_status` / `resolved_from` and batch `unavailable` errors with `unavailable_inputs`; buyer-quality `signal_stats`; candles plan-floor fields; wallet PnL/positions `cache_age_seconds` / `cache_validation` / `cache_invalidated`; wallet-tracker `ordered_by` / `next_cursor` / `next_cursor_slot`; deployer stats MC-at-alert maps, alert-stats `sampled_rows`, `instant_bond` on recent bonds, typed `pump_tokens`; sniper `attribution_status`; stream-token channel registry + named-subscription hints; KOL PnL open-position `is_priced`; KOL compare `overlap_meta`.
|
|
@@ -1596,7 +1600,7 @@ Each `dex:trades` message echoes the `sub_id` that matched, so you can route the
|
|
|
1596
1600
|
|
|
1597
1601
|
### Copy-Trade — `client.copytrade` *(new in 2.10)*
|
|
1598
1602
|
|
|
1599
|
-
Mirror N source wallets into actionable signals (delivered via webhook/WebSocket). PRO
|
|
1603
|
+
Mirror N source wallets into actionable signals (delivered via webhook/WebSocket). Copy-trade rules can follow any valid Solana wallet, KOL or not (server 2026-10-04, `source_admission: "any_wallet"`; KOL membership is enrichment only and copy-trade sources do not use Wallet Tracker quota). Every rule reports `operational_state` (`eligible`, or an infrastructure state with `monitoring_reasons`) separately from your `is_active` switch. PRO+ — PRO: 3 rules × 5 wallets each, ULTRA: 20 × 50, BUSINESS: 100 × 250.
|
|
1600
1604
|
|
|
1601
1605
|
```ts
|
|
1602
1606
|
const { subscription, webhook_secret } = await client.copytrade.create({
|
package/dist/index.d.ts
CHANGED
|
@@ -2095,6 +2095,20 @@ export interface AlphaCapTableResponse {
|
|
|
2095
2095
|
summary: AlphaCapTableSummary;
|
|
2096
2096
|
/** v2.22.4 — trade-coverage disclosure (additive; absent on older cached responses). */
|
|
2097
2097
|
coverage?: TradeCoverage;
|
|
2098
|
+
/** 2026-10: whether early-buyer ranks 1..20 can be trusted. `gap_overlap` = a
|
|
2099
|
+
* recorded ingest gap overlaps launch to the last ranked buy, so a true early
|
|
2100
|
+
* buyer may be missing. Absent on older responses. */
|
|
2101
|
+
ranks_completeness?: {
|
|
2102
|
+
ranks_complete: "observed_from_launch" | "gap_overlap" | "not_verified" | "no_ranks";
|
|
2103
|
+
rank_basis: "first_persisted_buys_at_or_above_floor";
|
|
2104
|
+
window: {
|
|
2105
|
+
from: string;
|
|
2106
|
+
to: string;
|
|
2107
|
+
} | null;
|
|
2108
|
+
gaps_overlapping: number;
|
|
2109
|
+
open_slots: number;
|
|
2110
|
+
gaps_in_open_slots: number;
|
|
2111
|
+
};
|
|
2098
2112
|
}
|
|
2099
2113
|
export interface AlphaBuyerQualityBreakdown {
|
|
2100
2114
|
alpha_wallet_count: number;
|
|
@@ -2510,7 +2524,9 @@ export interface TokenHoldersResponse {
|
|
|
2510
2524
|
source: TokenHoldersSource;
|
|
2511
2525
|
}
|
|
2512
2526
|
/** Locker program a contract lives under. LP locks are NOT covered (token / vesting locks only). */
|
|
2513
|
-
export type TokenLockProgram = "streamflow" | "jupiter_lock" | "bonfida_vesting";
|
|
2527
|
+
export type TokenLockProgram = "streamflow" | "jupiter_lock" | "bonfida_vesting" | "smithii_vesting" | "sablier_lockup";
|
|
2528
|
+
/** sablier_lockup stream-NFT holder proof: current = recipient proven by the latest read; lost_proof = recipient unknown, last_proven_holder is evidence; never_proven; burned = stream NFT burned, no recipient; anomaly = fail closed. */
|
|
2529
|
+
export type TokenLockHolderStatus = "current" | "lost_proof" | "never_proven" | "burned" | "anomaly";
|
|
2514
2530
|
/** `lock` = whole amount released at one date; `vesting` = cliff and/or periodic release. */
|
|
2515
2531
|
export type TokenLockKind = "lock" | "vesting";
|
|
2516
2532
|
/** Contract status, derived at request time from the on-chain schedule + withdrawn/cancelled state. */
|
|
@@ -2580,7 +2596,14 @@ export interface TokenLock {
|
|
|
2580
2596
|
mint: string;
|
|
2581
2597
|
/** Creator / locker. Bonfida has none on-chain. */
|
|
2582
2598
|
sender: string | null;
|
|
2599
|
+
/** sablier_lockup: the CURRENT proven stream-NFT holder only, null otherwise (see holder_status). smithii_vesting: null for merkle receivers. */
|
|
2583
2600
|
recipient: string | null;
|
|
2601
|
+
/** Server 2026-10-03 — sablier_lockup only (null for other programs); absent on older servers. */
|
|
2602
|
+
holder_status?: TokenLockHolderStatus | null;
|
|
2603
|
+
/** Server 2026-10-03 — sablier_lockup only: last holder a read proved (provenance, NOT the recipient unless holder_status is current). */
|
|
2604
|
+
last_proven_holder?: string | null;
|
|
2605
|
+
/** Server 2026-10-03 — sablier_lockup only: slot of the read that last proved last_proven_holder. */
|
|
2606
|
+
holder_proven_at_slot?: number | null;
|
|
2584
2607
|
name: string | null;
|
|
2585
2608
|
/** Deposited amount. */
|
|
2586
2609
|
amount_raw: string;
|
|
@@ -2597,11 +2620,13 @@ export interface TokenLock {
|
|
|
2597
2620
|
locked_pct_of_supply: number | null;
|
|
2598
2621
|
unlocked_raw: string;
|
|
2599
2622
|
unlocked: number | null;
|
|
2600
|
-
/** Claimed so far. */
|
|
2601
|
-
withdrawn_raw: string;
|
|
2623
|
+
/** Claimed so far; null when the program does not expose it (withdrawn_tracked false: smithii_vesting). */
|
|
2624
|
+
withdrawn_raw: string | null;
|
|
2602
2625
|
withdrawn: number | null;
|
|
2603
|
-
/**
|
|
2604
|
-
|
|
2626
|
+
/** Server 2026-10-03 — false = withdrawn / claimable are unknown (null), not zero. Absent on older servers (= tracked). */
|
|
2627
|
+
withdrawn_tracked?: boolean;
|
|
2628
|
+
/** Unlocked but not yet withdrawn; null when withdrawn is not tracked. */
|
|
2629
|
+
claimable_raw: string | null;
|
|
2605
2630
|
claimable: number | null;
|
|
2606
2631
|
start_at: string | null;
|
|
2607
2632
|
cliff_at: string | null;
|
|
@@ -3942,8 +3967,29 @@ export interface TokenDepthPool extends TokenDepthPoolBase {
|
|
|
3942
3967
|
depth_available: true;
|
|
3943
3968
|
/** The model the depth math ran on (matches `pool_model`). */
|
|
3944
3969
|
model: string;
|
|
3970
|
+
/** Concentrated pools only: the program-exact model that produced the numbers. */
|
|
3971
|
+
model_detail?: "meteora_dlmm_bins" | "raydium_clmm_ticks" | "meteora_damm_v2_full_range";
|
|
3972
|
+
/** Meteora DAMM v2 only: the proven Pool account (`pool_address` is the vault). */
|
|
3973
|
+
pool_account?: string;
|
|
3945
3974
|
/** Swap fee, % (e.g. 0.25). */
|
|
3946
3975
|
fee_pct: number;
|
|
3976
|
+
/** `observed_event` (PumpSwap virtual-reserve model), `dynamic_fee_at_quote_time`
|
|
3977
|
+
* (Meteora DLMM base + variable fee) or `amm_config_at_quote_time`. Absent =
|
|
3978
|
+
* static venue fee. */
|
|
3979
|
+
fee_basis?: "observed_event" | "dynamic_fee_at_quote_time" | "amm_config_at_quote_time";
|
|
3980
|
+
/** Meteora DLMM only: the loaded bin range and its slot; quotes never walk outside it. */
|
|
3981
|
+
bins_window?: {
|
|
3982
|
+
from_bin: number;
|
|
3983
|
+
to_bin: number;
|
|
3984
|
+
slot: number;
|
|
3985
|
+
};
|
|
3986
|
+
/** Raydium CLMM only: the loaded tick range [from_tick, to_tick) in the buy
|
|
3987
|
+
* direction and its slot. */
|
|
3988
|
+
ticks_window?: {
|
|
3989
|
+
from_tick: number;
|
|
3990
|
+
to_tick: number;
|
|
3991
|
+
slot: number;
|
|
3992
|
+
};
|
|
3947
3993
|
source: TokenDepthSource;
|
|
3948
3994
|
/** Age of the stream reserves in ms (time since the pool's last swap); 0 for
|
|
3949
3995
|
* `live_rpc` reads. */
|
|
@@ -3978,6 +4024,14 @@ export interface TokenDepthResponse {
|
|
|
3978
4024
|
pools: TokenDepthPool[];
|
|
3979
4025
|
unsupported_pools: TokenDepthUnsupportedPool[];
|
|
3980
4026
|
note?: string;
|
|
4027
|
+
/** Only with a concentrated depth model enabled: largest known pool vs the
|
|
4028
|
+
* reported pool; routing is single-pool only. */
|
|
4029
|
+
pool_selection?: {
|
|
4030
|
+
largest_known_pool: string;
|
|
4031
|
+
largest_known_pool_supported: boolean;
|
|
4032
|
+
primary_pool: string | null;
|
|
4033
|
+
routing: "single_pool_only";
|
|
4034
|
+
};
|
|
3981
4035
|
_rid?: string;
|
|
3982
4036
|
}
|
|
3983
4037
|
/** Payload of a `token:graduation` stream event — every pump.fun graduation
|
|
@@ -4073,11 +4127,28 @@ export interface WalletClassification {
|
|
|
4073
4127
|
kol_name: string | null;
|
|
4074
4128
|
bot_confidence: BotConfidence | null;
|
|
4075
4129
|
dump_cluster: DumpClusterStats | null;
|
|
4130
|
+
/** 2026-10: whether each flag's rule actually evaluated this wallet.
|
|
4131
|
+
* `evaluated: false` means the boolean is "no evidence", not "verified clean". */
|
|
4132
|
+
label_coverage?: Record<"sniper" | "bundler" | "dumper" | "kol", LabelCoverageEntry>;
|
|
4133
|
+
}
|
|
4134
|
+
export type LabelCoverageReason = "flagged" | "rule_evaluated" | "insufficient_sample" | "not_checked_budget" | "sample_unavailable" | "population_not_checked" | "no_cohort_stats" | "registry";
|
|
4135
|
+
export interface LabelCoverageEntry {
|
|
4136
|
+
evaluated: boolean;
|
|
4137
|
+
reason: LabelCoverageReason;
|
|
4076
4138
|
}
|
|
4077
4139
|
export interface WalletBatchClassifyResponse {
|
|
4078
4140
|
wallets: WalletClassification[];
|
|
4079
4141
|
count: number;
|
|
4080
4142
|
as_of: string;
|
|
4143
|
+
/** 2026-10: label rule version, e.g. `wallet-labels/368-v1`. */
|
|
4144
|
+
rule_version?: string;
|
|
4145
|
+
/** 2026-10: one sentence per label describing its population and window. */
|
|
4146
|
+
evidence_horizon?: {
|
|
4147
|
+
sniper: string;
|
|
4148
|
+
bundler: string;
|
|
4149
|
+
dumper: string;
|
|
4150
|
+
kol: string;
|
|
4151
|
+
};
|
|
4081
4152
|
_rid?: string;
|
|
4082
4153
|
}
|
|
4083
4154
|
export interface WalletTopToken {
|
|
@@ -4251,6 +4322,42 @@ export interface WalletOpenPosition {
|
|
|
4251
4322
|
unrealized_pct: number | null;
|
|
4252
4323
|
first_buy_at: string | null;
|
|
4253
4324
|
buys_in_position: number;
|
|
4325
|
+
/** 2026-10: positions are FIFO-open DEX buys (a trade position), not a proven holding. */
|
|
4326
|
+
position_basis?: "swap_derived";
|
|
4327
|
+
/** 2026-10: `verified` = an on-chain balance snapshot confirmed this position. */
|
|
4328
|
+
holding_status?: "verified" | "unverified";
|
|
4329
|
+
holding_unverified_reason?: "not_checked" | "no_fresh_snapshot" | "snapshot_unreadable" | "snapshot_older_than_trades" | "decimals_mismatch" | "balance_invalid" | null;
|
|
4330
|
+
/** `partial` = a verified balance exceeds the trade position; the excess
|
|
4331
|
+
* arrived without a swap and has no cost basis. */
|
|
4332
|
+
cost_basis_status?: "known" | "partial";
|
|
4333
|
+
/** Present (non-null) only when `holding_status` is `verified`. */
|
|
4334
|
+
holding?: WalletPositionHolding | null;
|
|
4335
|
+
}
|
|
4336
|
+
/** 2026-10: proven on-chain holding for one swap-derived position. */
|
|
4337
|
+
export interface WalletPositionHolding {
|
|
4338
|
+
status: "HELD" | "PARTIALLY_REDUCED" | "TRANSFERRED_OR_DISPOSED" | "EXTERNAL_INFLOW";
|
|
4339
|
+
onchain_balance: number;
|
|
4340
|
+
held_known_amount: number;
|
|
4341
|
+
external_inflow_amount: number;
|
|
4342
|
+
cost_basis_held_sol: number;
|
|
4343
|
+
unrealized_known_sol: number | null;
|
|
4344
|
+
/** Cost of FIFO lots no longer in the wallet. Outcome unknown: neither realized nor unrealized. */
|
|
4345
|
+
cost_basis_not_held_sol: number;
|
|
4346
|
+
verified_at: string;
|
|
4347
|
+
source: "wallet_holdings_cache";
|
|
4348
|
+
}
|
|
4349
|
+
/** 2026-10: summary of the proven-holding check over the returned open positions. */
|
|
4350
|
+
export interface WalletHoldingCheck {
|
|
4351
|
+
mode: "off" | "cache";
|
|
4352
|
+
source: "wallet_holdings_cache" | null;
|
|
4353
|
+
verified_at: string | null;
|
|
4354
|
+
verified: number;
|
|
4355
|
+
unverified: number;
|
|
4356
|
+
held: number;
|
|
4357
|
+
partially_reduced: number;
|
|
4358
|
+
transferred_or_disposed: number;
|
|
4359
|
+
external_inflow: number;
|
|
4360
|
+
note: string;
|
|
4254
4361
|
}
|
|
4255
4362
|
export interface WalletPnlNotes {
|
|
4256
4363
|
/** Cost basis is observable only from this timestamp onwards (data window cutoff). */
|
|
@@ -4268,6 +4375,8 @@ export interface WalletPnlResponse {
|
|
|
4268
4375
|
closed_positions: WalletClosedPosition[];
|
|
4269
4376
|
open_positions: WalletOpenPosition[];
|
|
4270
4377
|
notes: WalletPnlNotes;
|
|
4378
|
+
/** 2026-10: proven-holding check summary. Absent on older responses. */
|
|
4379
|
+
holding_check?: WalletHoldingCheck;
|
|
4271
4380
|
cache_hit?: boolean;
|
|
4272
4381
|
/** Only present on cache hits. */
|
|
4273
4382
|
computed_at?: string;
|
|
@@ -4287,6 +4396,8 @@ export interface WalletPnlResponse {
|
|
|
4287
4396
|
export interface WalletPositionsResponse {
|
|
4288
4397
|
address: string;
|
|
4289
4398
|
positions: WalletOpenPosition[];
|
|
4399
|
+
/** 2026-10: proven-holding check summary. Absent on older responses. */
|
|
4400
|
+
holding_check?: WalletHoldingCheck;
|
|
4290
4401
|
cache_hit?: boolean;
|
|
4291
4402
|
computed_at?: string | null;
|
|
4292
4403
|
ttl_seconds?: number | null;
|
|
@@ -4583,6 +4694,15 @@ export interface TokenSummary {
|
|
|
4583
4694
|
/** VERIFIED LP evidence only; null = unknown (the honest answer for nearly every token today). */
|
|
4584
4695
|
lp_burned?: boolean | null;
|
|
4585
4696
|
lp_burn_status?: LpBurnStatus;
|
|
4697
|
+
/** Burned + non-cancelable LOCKED share of the LP (0-100), from LP evidence;
|
|
4698
|
+
* null = unknown (never 0 for unknown). `lp_burnt_pct` stays burn-only. */
|
|
4699
|
+
lp_secured_pct?: number | null;
|
|
4700
|
+
/** `permanent` = burn and/or permanent locks only; `temporary` = only
|
|
4701
|
+
* time-limited locks; `mixed` = both; null = nothing secured or unknown. */
|
|
4702
|
+
lp_secured_basis?: "permanent" | "temporary" | "mixed" | null;
|
|
4703
|
+
/** Earliest end of a counted TEMPORARY LP lock (ISO); null when none.
|
|
4704
|
+
* Permanent locks have no date. */
|
|
4705
|
+
lp_locked_until?: string | null;
|
|
4586
4706
|
/** Token-SUPPLY burn observed (not LP evidence); null = unknown. */
|
|
4587
4707
|
token_supply_burn_detected?: boolean | null;
|
|
4588
4708
|
}
|
|
@@ -4634,6 +4754,11 @@ export interface AlmostBondedToken {
|
|
|
4634
4754
|
mint: string;
|
|
4635
4755
|
symbol: string | null;
|
|
4636
4756
|
name: string | null;
|
|
4757
|
+
/** Launch venue: pump.fun curve or bonk/LetsBonk (Raydium LaunchLab). */
|
|
4758
|
+
launchpad?: "pumpfun" | "launchlab";
|
|
4759
|
+
/** 2026-10: where `launchpad` came from: `primary_dex`, or the token's single
|
|
4760
|
+
* curve pool in `token_pools` when primary_dex is unset. */
|
|
4761
|
+
venue_source?: "primary_dex" | "token_pools";
|
|
4637
4762
|
/** Bonding-curve progress %, from on-chain real_token_reserves depletion. */
|
|
4638
4763
|
progress_pct: number | null;
|
|
4639
4764
|
/** Δprogress per minute; null until a 5m-ago snapshot exists. */
|
|
@@ -5393,9 +5518,23 @@ export interface WalletFundingResponse {
|
|
|
5393
5518
|
observed: boolean;
|
|
5394
5519
|
[key: string]: unknown;
|
|
5395
5520
|
};
|
|
5521
|
+
/** 2026-10: what the funding collector can see for THIS address.
|
|
5522
|
+
* `not_tracked` = no evidence is collected for it at all. */
|
|
5523
|
+
wallet_coverage?: WalletFundingCoverage;
|
|
5396
5524
|
disclaimer: string;
|
|
5397
5525
|
_rid?: string;
|
|
5398
5526
|
}
|
|
5527
|
+
/** Per-address funding collector coverage (`wallet_coverage`). */
|
|
5528
|
+
export interface WalletFundingCoverage {
|
|
5529
|
+
/** `internal_transfers_not_visible` only occurs on Robinhood Chain. */
|
|
5530
|
+
state: "tracked" | "not_tracked" | "internal_transfers_not_visible";
|
|
5531
|
+
currently_tracked: boolean;
|
|
5532
|
+
ever_tracked: boolean;
|
|
5533
|
+
/** Robinhood Chain only; always null on Solana. */
|
|
5534
|
+
address_kind: "eoa" | "eoa_7702" | "contract" | "unknown" | null;
|
|
5535
|
+
/** Solana: `spl_token_transfers_not_visible`. */
|
|
5536
|
+
limitations: Array<"spl_token_transfers_not_visible" | "internal_eth_transfers_not_visible" | "erc20_only_eth_weth_usdg_classified_as_funding">;
|
|
5537
|
+
}
|
|
5399
5538
|
export interface MadeOnSolConfig {
|
|
5400
5539
|
/**
|
|
5401
5540
|
* MadeOnSol API key (starts with `msk_`).
|
|
@@ -6423,16 +6562,44 @@ export interface CopyTradeSubscription {
|
|
|
6423
6562
|
created_at: string;
|
|
6424
6563
|
updated_at?: string;
|
|
6425
6564
|
/**
|
|
6426
|
-
* Source wallets that are tracked KOL wallets
|
|
6427
|
-
*
|
|
6428
|
-
*
|
|
6565
|
+
* Source wallets that are tracked KOL wallets, read at response time. Under
|
|
6566
|
+
* `source_admission: "any_wallet"` (production since 2026-10-04) this is KOL
|
|
6567
|
+
* enrichment only; under the legacy `"kol_only"` engine only these produce signals.
|
|
6568
|
+
* `null` when the tracking lookup failed (see `warnings`). Server 2026-09-25 on.
|
|
6569
|
+
* @deprecated 2026-10-04 — kept and still filled; KOL membership is enrichment only.
|
|
6429
6570
|
*/
|
|
6430
6571
|
source_wallets_tracked?: string[] | null;
|
|
6431
|
-
/**
|
|
6572
|
+
/**
|
|
6573
|
+
* Source wallets that are NOT tracked KOL wallets. Under `source_admission: "any_wallet"`
|
|
6574
|
+
* they fire like any other wallet (no Wallet Tracker entry or quota needed); under the
|
|
6575
|
+
* legacy `"kol_only"` engine they never produce a signal.
|
|
6576
|
+
* @deprecated 2026-10-04 — kept and still filled; KOL membership is enrichment only.
|
|
6577
|
+
*/
|
|
6432
6578
|
source_wallets_untracked?: string[] | null;
|
|
6433
|
-
/** Present when
|
|
6579
|
+
/** Present when something needs attention (legacy kol_only: untracked wallets), or tracking could not be determined. */
|
|
6434
6580
|
warnings?: CopyTradeRuleWarning[];
|
|
6581
|
+
/** Server 2026-10-04 — whether the rule can fire right now, separate from `is_active`; see {@link CopyTradeOperationalState}. */
|
|
6582
|
+
operational_state?: CopyTradeOperationalState;
|
|
6583
|
+
/** Server 2026-10-04 — which trades the RUNNING engine admits. Absent = unknown (legacy kol_only semantics). */
|
|
6584
|
+
source_admission?: CopyTradeSourceAdmission;
|
|
6585
|
+
/** Server 2026-10-04 — present only with `operational_state: "monitoring_unavailable"`: e.g. `trade_stream_stale`, `source_producer_stale`, `map_stale`, `engine_state_stale`. */
|
|
6586
|
+
monitoring_reasons?: string[];
|
|
6435
6587
|
}
|
|
6588
|
+
/**
|
|
6589
|
+
* Which trades the running copy-trade engine admits. `any_wallet` (production since
|
|
6590
|
+
* 2026-10-04): copy-trade rules can now follow any valid wallet, KOL or not (KOL
|
|
6591
|
+
* membership is enrichment only). `kol_only`: legacy, only tracked KOL wallets fire.
|
|
6592
|
+
*/
|
|
6593
|
+
export type CopyTradeSourceAdmission = "kol_only" | "any_wallet";
|
|
6594
|
+
/**
|
|
6595
|
+
* Whether a copy-trade rule can fire. Under `any_wallet`: `eligible`, or an
|
|
6596
|
+
* infrastructure state — `monitoring_pending` (rule changed after the engine's last
|
|
6597
|
+
* load, live within seconds), `monitoring_unavailable` (engine / trade stream not
|
|
6598
|
+
* reporting; it fires nothing then, see `monitoring_reasons`),
|
|
6599
|
+
* `source_capacity_unavailable` (engine source-wallet cap reached). Legacy
|
|
6600
|
+
* `kol_only`: `no_tracked_sources` | `unknown`.
|
|
6601
|
+
*/
|
|
6602
|
+
export type CopyTradeOperationalState = "eligible" | "monitoring_pending" | "monitoring_unavailable" | "source_capacity_unavailable" | "no_tracked_sources" | "unknown";
|
|
6436
6603
|
/** A non-fatal note on a copy-trade rule. The rule is saved unchanged. */
|
|
6437
6604
|
export interface CopyTradeRuleWarning {
|
|
6438
6605
|
code: "untracked_source_wallets" | "source_wallet_tracking_unavailable" | (string & {});
|
|
@@ -6495,6 +6662,16 @@ export interface CopyTradeSignal {
|
|
|
6495
6662
|
market_cap_usd?: number | null;
|
|
6496
6663
|
/** Current last-trade price (USD). */
|
|
6497
6664
|
last_price_usd?: number | null;
|
|
6665
|
+
/** Copy-trade identity v2: the independent action this signal copies (null on
|
|
6666
|
+
* `identity_version` 1 rows). Several signals can share one `tx_signature`:
|
|
6667
|
+
* dedupe on `id` or `economic_action_id`, never on `tx_signature`. */
|
|
6668
|
+
economic_action_id?: string | null;
|
|
6669
|
+
/** Copy-trade identity v2: the followed wallet that performed the action. */
|
|
6670
|
+
source_actor?: string | null;
|
|
6671
|
+
/** Copy-trade identity v2: other followed wallets in the same action. */
|
|
6672
|
+
co_actors?: string[];
|
|
6673
|
+
/** 1 = one signal per (rule, tx); 2 = one signal per (rule, economic action). */
|
|
6674
|
+
identity_version?: 1 | 2;
|
|
6498
6675
|
}
|
|
6499
6676
|
export interface CopyTradeSignalsParams {
|
|
6500
6677
|
subscription_id?: number;
|