solana-agent-kit-plugin-madeonsol 1.8.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -0
- package/dist/actions/kolAlertsRecent.d.ts +2 -2
- package/dist/actions/kolCoordination.d.ts +2 -2
- package/dist/actions/kolTrendingTokens.d.ts +2 -2
- package/dist/index.d.ts +858 -289
- package/dist/index.js +109 -364
- package/dist/tools/index.d.ts +41 -0
- package/dist/tools/index.js +50 -0
- package/package.json +54 -54
package/README.md
CHANGED
|
@@ -188,6 +188,55 @@ ULTRA only for subscriptions — up to 10 active per user.
|
|
|
188
188
|
|
|
189
189
|
> **Don't poll — push.** Median lead time before the second KOL is 12 seconds. WebSocket channel: `kol:first_touches` (PRO+).
|
|
190
190
|
|
|
191
|
+
### Price Alerts *(new in 1.9)*
|
|
192
|
+
|
|
193
|
+
CRUD for token dip/recovery price alerts. Fires when a token's market cap crosses your threshold. PRO=5 rules, ULTRA=25.
|
|
194
|
+
|
|
195
|
+
```ts
|
|
196
|
+
const { alert, webhook_secret } = await agent.methods.priceAlertsCreate(agent, {
|
|
197
|
+
name: "SOL dip buy",
|
|
198
|
+
token_mint: "So11111111111111111111111111111111111111112",
|
|
199
|
+
condition: "below",
|
|
200
|
+
threshold_mc_usd: 5_000_000_000,
|
|
201
|
+
cooldown_min: 120,
|
|
202
|
+
delivery_mode: "both",
|
|
203
|
+
webhook_url: "https://you.com/hooks/price",
|
|
204
|
+
});
|
|
205
|
+
// store webhook_secret — shown ONCE
|
|
206
|
+
|
|
207
|
+
await agent.methods.priceAlertsList(agent);
|
|
208
|
+
await agent.methods.priceAlertsGet(agent, { alert_id: "uuid..." });
|
|
209
|
+
await agent.methods.priceAlertsUpdate(agent, { alert_id: "uuid...", updates: { is_active: false } });
|
|
210
|
+
await agent.methods.priceAlertsDelete(agent, { alert_id: "uuid..." });
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
Also exposed as `MADEONSOL_PRICE_ALERTS_LIST_ACTION` ("my price alerts") and `MADEONSOL_PRICE_ALERTS_CREATE_ACTION` ("alert me when token dips below").
|
|
214
|
+
|
|
215
|
+
### Scout Leaderboard & KOL Consensus *(new in 1.9)*
|
|
216
|
+
|
|
217
|
+
| Method / Action | Description |
|
|
218
|
+
|---|---|
|
|
219
|
+
| `agent.methods.scoutLeaderboard(agent, params)` | Top scout-tier KOLs ranked by first-touch follow-on rate, win rate, and ROI (PRO+) |
|
|
220
|
+
| `agent.methods.kolConsensus(agent, params)` | Tokens with the strongest KOL agreement signal (PRO+) |
|
|
221
|
+
| `agent.methods.peakHistory(agent, { mint })` | Historical peak-density windows for a token (PRO+) |
|
|
222
|
+
| `agent.methods.coordinationHistory(agent, params)` | Global coordination event log (PRO+) |
|
|
223
|
+
|
|
224
|
+
```ts
|
|
225
|
+
const { leaderboard } = await agent.methods.scoutLeaderboard(agent, { period: "30d", limit: 25 });
|
|
226
|
+
const { tokens } = await agent.methods.kolConsensus(agent, { min_kols: 5, period: "24h" });
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
Also exposed as `MADEONSOL_SCOUT_LEADERBOARD_ACTION` and `MADEONSOL_KOL_CONSENSUS_ACTION`.
|
|
230
|
+
|
|
231
|
+
### Wallet Derived Stats *(new in 1.9)*
|
|
232
|
+
|
|
233
|
+
`walletStats` now returns a `stats` object with derived fields: `win_rate` (0-1), `roi`, `verdict` ("strong" | "profitable" | "neutral" | "losing"), and `biggest_miss` (token with the highest post-exit gain the wallet missed).
|
|
234
|
+
|
|
235
|
+
```ts
|
|
236
|
+
const { stats } = await agent.methods.walletStats(agent, { address: "WALLET_ADDRESS" });
|
|
237
|
+
// stats.win_rate, stats.roi, stats.verdict, stats.biggest_miss
|
|
238
|
+
```
|
|
239
|
+
|
|
191
240
|
### Rate-limit headers
|
|
192
241
|
|
|
193
242
|
Every successful request populates a module-level `lastRateLimit` (limit / remaining / reset / requestId):
|
|
@@ -20,13 +20,13 @@ export declare const kolAlertsRecentAction: {
|
|
|
20
20
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
21
21
|
}, "strip", z.ZodTypeAny, {
|
|
22
22
|
limit: number;
|
|
23
|
-
window: "
|
|
23
|
+
window: "24h" | "1h" | "6h" | "5m" | "15m";
|
|
24
24
|
types?: ("consensus_cluster" | "fresh_token_kol_buy" | "heating_up")[] | undefined;
|
|
25
25
|
min_severity?: "high" | "medium" | "low" | undefined;
|
|
26
26
|
}, {
|
|
27
27
|
limit?: number | undefined;
|
|
28
28
|
types?: ("consensus_cluster" | "fresh_token_kol_buy" | "heating_up")[] | undefined;
|
|
29
|
-
window?: "
|
|
29
|
+
window?: "24h" | "1h" | "6h" | "5m" | "15m" | undefined;
|
|
30
30
|
min_severity?: "high" | "medium" | "low" | undefined;
|
|
31
31
|
}>;
|
|
32
32
|
handler: (agent: unknown, input: {
|
|
@@ -18,11 +18,11 @@ export declare const kolCoordinationAction: {
|
|
|
18
18
|
min_kols: z.ZodDefault<z.ZodNumber>;
|
|
19
19
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
period: "
|
|
21
|
+
period: "24h" | "1h" | "6h" | "7d";
|
|
22
22
|
min_kols: number;
|
|
23
23
|
limit: number;
|
|
24
24
|
}, {
|
|
25
|
-
period?: "
|
|
25
|
+
period?: "24h" | "1h" | "6h" | "7d" | undefined;
|
|
26
26
|
min_kols?: number | undefined;
|
|
27
27
|
limit?: number | undefined;
|
|
28
28
|
}>;
|
|
@@ -18,11 +18,11 @@ export declare const kolTrendingTokensAction: {
|
|
|
18
18
|
min_kols: z.ZodDefault<z.ZodNumber>;
|
|
19
19
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
period: "
|
|
21
|
+
period: "1h" | "5m" | "15m" | "30m" | "2h" | "4h" | "12h";
|
|
22
22
|
min_kols: number;
|
|
23
23
|
limit: number;
|
|
24
24
|
}, {
|
|
25
|
-
period?: "
|
|
25
|
+
period?: "1h" | "5m" | "15m" | "30m" | "2h" | "4h" | "12h" | undefined;
|
|
26
26
|
min_kols?: number | undefined;
|
|
27
27
|
limit?: number | undefined;
|
|
28
28
|
}>;
|