solana-agent-kit-plugin-madeonsol 1.0.1 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -0
- package/dist/actions/kolCoordination.d.ts +2 -2
- package/dist/actions/kolLeaderboard.d.ts +2 -2
- package/dist/actions/kolPnl.d.ts +1 -1
- package/dist/actions/kolTokenEntryOrder.d.ts +1 -1
- package/dist/actions/kolTrendingTokens.d.ts +2 -2
- package/dist/actions/walletTracker.d.ts +1 -1
- package/dist/index.d.ts +16 -11
- package/dist/index.js +7 -2
- package/dist/tools/index.d.ts +30 -0
- package/dist/tools/index.js +21 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -113,6 +113,32 @@ await agent.methods.copyTradeCreate(agent, {
|
|
|
113
113
|
await agent.methods.copyTradeSignals(agent, { limit: 50 }); // up to 7 days
|
|
114
114
|
```
|
|
115
115
|
|
|
116
|
+
### KOL Coordination Alerts (PRO/ULTRA — v1.1 push signals)
|
|
117
|
+
|
|
118
|
+
Real-time push alerts when a KOL cluster co-buys the same token. Fires within ~1s of the triggering trade (pg_notify push, not polling). Delivered via WebSocket (`kol:coordination` channel, user-scoped) and/or HMAC-signed webhook. PRO=5 rules, ULTRA=20.
|
|
119
|
+
|
|
120
|
+
```ts
|
|
121
|
+
const res = await agent.methods.coordinationAlertsCreate(agent, {
|
|
122
|
+
name: "fresh pump cluster",
|
|
123
|
+
min_kols: 4,
|
|
124
|
+
window_minutes: 15, // peak-density window (1-60)
|
|
125
|
+
min_score: 70, // 0-100 composite score cutoff
|
|
126
|
+
include_majors: false, // filter WIF/BONK/POPCAT
|
|
127
|
+
cooldown_min: 60,
|
|
128
|
+
score_jump_break: 10,
|
|
129
|
+
delivery_mode: "both",
|
|
130
|
+
webhook_url: "https://you.com/hooks/coord",
|
|
131
|
+
});
|
|
132
|
+
// store res.webhook_secret — shown ONCE
|
|
133
|
+
|
|
134
|
+
await agent.methods.coordinationAlertsList(agent);
|
|
135
|
+
await agent.methods.coordinationAlertsGet(agent, { rule_id: "uuid..." });
|
|
136
|
+
await agent.methods.coordinationAlertsUpdate(agent, { rule_id: "uuid...", updates: { is_active: false } });
|
|
137
|
+
await agent.methods.coordinationAlertsDelete(agent, { rule_id: "uuid..." });
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
The v1.1 `kolCoordination()` response also includes `peak_kols`, `peak_buys`, `exited_count`, and `coordination_score` (0-100). Pass `{ min_score, window_minutes, include_majors }` to filter.
|
|
141
|
+
|
|
116
142
|
### Rate-limit headers
|
|
117
143
|
|
|
118
144
|
Every successful request populates a module-level `lastRateLimit` (limit / remaining / reset / requestId):
|
|
@@ -18,13 +18,13 @@ 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
|
-
limit: number;
|
|
22
21
|
period: "24h" | "1h" | "6h" | "7d";
|
|
23
22
|
min_kols: number;
|
|
23
|
+
limit: number;
|
|
24
24
|
}, {
|
|
25
|
-
limit?: number | undefined;
|
|
26
25
|
period?: "24h" | "1h" | "6h" | "7d" | undefined;
|
|
27
26
|
min_kols?: number | undefined;
|
|
27
|
+
limit?: number | undefined;
|
|
28
28
|
}>;
|
|
29
29
|
handler: (agent: unknown, input: {
|
|
30
30
|
period?: string;
|
|
@@ -17,11 +17,11 @@ export declare const kolLeaderboardAction: {
|
|
|
17
17
|
period: z.ZodDefault<z.ZodEnum<["today", "7d", "30d"]>>;
|
|
18
18
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
limit: number;
|
|
21
20
|
period: "7d" | "today" | "30d";
|
|
21
|
+
limit: number;
|
|
22
22
|
}, {
|
|
23
|
-
limit?: number | undefined;
|
|
24
23
|
period?: "7d" | "today" | "30d" | undefined;
|
|
24
|
+
limit?: number | undefined;
|
|
25
25
|
}>;
|
|
26
26
|
handler: (agent: unknown, input: {
|
|
27
27
|
period?: string;
|
package/dist/actions/kolPnl.d.ts
CHANGED
|
@@ -17,8 +17,8 @@ export declare const kolPnlAction: {
|
|
|
17
17
|
wallet: z.ZodString;
|
|
18
18
|
period: z.ZodDefault<z.ZodEnum<["7d", "30d", "90d", "180d"]>>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
wallet: string;
|
|
21
20
|
period: "7d" | "30d" | "90d" | "180d";
|
|
21
|
+
wallet: string;
|
|
22
22
|
}, {
|
|
23
23
|
wallet: string;
|
|
24
24
|
period?: "7d" | "30d" | "90d" | "180d" | undefined;
|
|
@@ -18,13 +18,13 @@ 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
|
-
limit: number;
|
|
22
21
|
period: "1h" | "5m" | "15m" | "30m" | "2h" | "4h" | "12h";
|
|
23
22
|
min_kols: number;
|
|
23
|
+
limit: number;
|
|
24
24
|
}, {
|
|
25
|
-
limit?: number | undefined;
|
|
26
25
|
period?: "1h" | "5m" | "15m" | "30m" | "2h" | "4h" | "12h" | undefined;
|
|
27
26
|
min_kols?: number | undefined;
|
|
27
|
+
limit?: number | undefined;
|
|
28
28
|
}>;
|
|
29
29
|
handler: (agent: unknown, input: {
|
|
30
30
|
period?: string;
|
|
@@ -158,8 +158,8 @@ export declare const walletTrackerSummaryAction: {
|
|
|
158
158
|
period: "24h" | "7d" | "30d";
|
|
159
159
|
wallet?: string | undefined;
|
|
160
160
|
}, {
|
|
161
|
-
wallet?: string | undefined;
|
|
162
161
|
period?: "24h" | "7d" | "30d" | undefined;
|
|
162
|
+
wallet?: string | undefined;
|
|
163
163
|
}>;
|
|
164
164
|
handler: (agent: unknown, input: {
|
|
165
165
|
period?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { walletTrackerWatchlistAction, walletTrackerAddAction, walletTrackerRemo
|
|
|
8
8
|
import { kolTokenEntryOrderAction } from "./actions/kolTokenEntryOrder.js";
|
|
9
9
|
import { kolCompareAction } from "./actions/kolCompare.js";
|
|
10
10
|
import { kolAlertsRecentAction } from "./actions/kolAlertsRecent.js";
|
|
11
|
-
import { kolFeed, kolCoordination, kolLeaderboard, deployerAlerts, kolPnl, kolTrendingTokens, kolTokenEntryOrder, kolCompare, kolAlertsRecent, createWebhook, listWebhooks, deleteWebhook, testWebhook, getStreamToken, walletTrackerWatchlist, walletTrackerAdd, walletTrackerRemove, walletTrackerTrades, walletTrackerSummary, alphaLeaderboard, alphaWallet, alphaLinked, tokenCapTable, tokenBuyerQuality, copyTradeList, copyTradeCreate, copyTradeGet, copyTradeUpdate, copyTradeDelete, copyTradeSignals } from "./tools/index.js";
|
|
11
|
+
import { kolFeed, kolCoordination, kolLeaderboard, deployerAlerts, kolPnl, kolTrendingTokens, kolTokenEntryOrder, kolCompare, kolAlertsRecent, createWebhook, listWebhooks, deleteWebhook, testWebhook, getStreamToken, walletTrackerWatchlist, walletTrackerAdd, walletTrackerRemove, walletTrackerTrades, walletTrackerSummary, alphaLeaderboard, alphaWallet, alphaLinked, tokenCapTable, tokenBuyerQuality, copyTradeList, copyTradeCreate, copyTradeGet, copyTradeUpdate, copyTradeDelete, copyTradeSignals, coordinationAlertsList, coordinationAlertsCreate, coordinationAlertsGet, coordinationAlertsUpdate, coordinationAlertsDelete } from "./tools/index.js";
|
|
12
12
|
declare const MadeOnSolPlugin: {
|
|
13
13
|
name: string;
|
|
14
14
|
methods: {
|
|
@@ -42,6 +42,11 @@ declare const MadeOnSolPlugin: {
|
|
|
42
42
|
copyTradeUpdate: typeof copyTradeUpdate;
|
|
43
43
|
copyTradeDelete: typeof copyTradeDelete;
|
|
44
44
|
copyTradeSignals: typeof copyTradeSignals;
|
|
45
|
+
coordinationAlertsList: typeof coordinationAlertsList;
|
|
46
|
+
coordinationAlertsCreate: typeof coordinationAlertsCreate;
|
|
47
|
+
coordinationAlertsGet: typeof coordinationAlertsGet;
|
|
48
|
+
coordinationAlertsUpdate: typeof coordinationAlertsUpdate;
|
|
49
|
+
coordinationAlertsDelete: typeof coordinationAlertsDelete;
|
|
45
50
|
};
|
|
46
51
|
actions: ({
|
|
47
52
|
name: string;
|
|
@@ -102,13 +107,13 @@ declare const MadeOnSolPlugin: {
|
|
|
102
107
|
min_kols: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
103
108
|
limit: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
104
109
|
}, "strip", import("zod").ZodTypeAny, {
|
|
105
|
-
limit: number;
|
|
106
110
|
period: "24h" | "1h" | "6h" | "7d";
|
|
107
111
|
min_kols: number;
|
|
112
|
+
limit: number;
|
|
108
113
|
}, {
|
|
109
|
-
limit?: number | undefined;
|
|
110
114
|
period?: "24h" | "1h" | "6h" | "7d" | undefined;
|
|
111
115
|
min_kols?: number | undefined;
|
|
116
|
+
limit?: number | undefined;
|
|
112
117
|
}>;
|
|
113
118
|
handler: (agent: unknown, input: {
|
|
114
119
|
period?: string;
|
|
@@ -141,11 +146,11 @@ declare const MadeOnSolPlugin: {
|
|
|
141
146
|
period: import("zod").ZodDefault<import("zod").ZodEnum<["today", "7d", "30d"]>>;
|
|
142
147
|
limit: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
143
148
|
}, "strip", import("zod").ZodTypeAny, {
|
|
144
|
-
limit: number;
|
|
145
149
|
period: "7d" | "today" | "30d";
|
|
150
|
+
limit: number;
|
|
146
151
|
}, {
|
|
147
|
-
limit?: number | undefined;
|
|
148
152
|
period?: "7d" | "today" | "30d" | undefined;
|
|
153
|
+
limit?: number | undefined;
|
|
149
154
|
}>;
|
|
150
155
|
handler: (agent: unknown, input: {
|
|
151
156
|
period?: string;
|
|
@@ -220,8 +225,8 @@ declare const MadeOnSolPlugin: {
|
|
|
220
225
|
wallet: import("zod").ZodString;
|
|
221
226
|
period: import("zod").ZodDefault<import("zod").ZodEnum<["7d", "30d", "90d", "180d"]>>;
|
|
222
227
|
}, "strip", import("zod").ZodTypeAny, {
|
|
223
|
-
wallet: string;
|
|
224
228
|
period: "7d" | "30d" | "90d" | "180d";
|
|
229
|
+
wallet: string;
|
|
225
230
|
}, {
|
|
226
231
|
wallet: string;
|
|
227
232
|
period?: "7d" | "30d" | "90d" | "180d" | undefined;
|
|
@@ -257,13 +262,13 @@ declare const MadeOnSolPlugin: {
|
|
|
257
262
|
min_kols: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
258
263
|
limit: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
259
264
|
}, "strip", import("zod").ZodTypeAny, {
|
|
260
|
-
limit: number;
|
|
261
265
|
period: "1h" | "5m" | "15m" | "30m" | "2h" | "4h" | "12h";
|
|
262
266
|
min_kols: number;
|
|
267
|
+
limit: number;
|
|
263
268
|
}, {
|
|
264
|
-
limit?: number | undefined;
|
|
265
269
|
period?: "1h" | "5m" | "15m" | "30m" | "2h" | "4h" | "12h" | undefined;
|
|
266
270
|
min_kols?: number | undefined;
|
|
271
|
+
limit?: number | undefined;
|
|
267
272
|
}>;
|
|
268
273
|
handler: (agent: unknown, input: {
|
|
269
274
|
period?: string;
|
|
@@ -433,8 +438,8 @@ declare const MadeOnSolPlugin: {
|
|
|
433
438
|
period: "24h" | "7d" | "30d";
|
|
434
439
|
wallet?: string | undefined;
|
|
435
440
|
}, {
|
|
436
|
-
wallet?: string | undefined;
|
|
437
441
|
period?: "24h" | "7d" | "30d" | undefined;
|
|
442
|
+
wallet?: string | undefined;
|
|
438
443
|
}>;
|
|
439
444
|
handler: (agent: unknown, input: {
|
|
440
445
|
period?: string;
|
|
@@ -466,8 +471,8 @@ declare const MadeOnSolPlugin: {
|
|
|
466
471
|
mint: import("zod").ZodString;
|
|
467
472
|
limit: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
468
473
|
}, "strip", import("zod").ZodTypeAny, {
|
|
469
|
-
mint: string;
|
|
470
474
|
limit: number;
|
|
475
|
+
mint: string;
|
|
471
476
|
}, {
|
|
472
477
|
mint: string;
|
|
473
478
|
limit?: number | undefined;
|
|
@@ -563,6 +568,6 @@ declare const MadeOnSolPlugin: {
|
|
|
563
568
|
initialize(_agent: unknown): void;
|
|
564
569
|
};
|
|
565
570
|
export default MadeOnSolPlugin;
|
|
566
|
-
export { kolFeed, kolCoordination, kolLeaderboard, deployerAlerts, kolPnl, kolTrendingTokens, kolTokenEntryOrder, kolCompare, kolAlertsRecent, createWebhook, listWebhooks, deleteWebhook, testWebhook, getStreamToken, walletTrackerWatchlist, walletTrackerAdd, walletTrackerRemove, walletTrackerTrades, walletTrackerSummary, alphaLeaderboard, alphaWallet, alphaLinked, tokenCapTable, tokenBuyerQuality, copyTradeList, copyTradeCreate, copyTradeGet, copyTradeUpdate, copyTradeDelete, copyTradeSignals, };
|
|
571
|
+
export { kolFeed, kolCoordination, kolLeaderboard, deployerAlerts, kolPnl, kolTrendingTokens, kolTokenEntryOrder, kolCompare, kolAlertsRecent, createWebhook, listWebhooks, deleteWebhook, testWebhook, getStreamToken, walletTrackerWatchlist, walletTrackerAdd, walletTrackerRemove, walletTrackerTrades, walletTrackerSummary, alphaLeaderboard, alphaWallet, alphaLinked, tokenCapTable, tokenBuyerQuality, copyTradeList, copyTradeCreate, copyTradeGet, copyTradeUpdate, copyTradeDelete, copyTradeSignals, coordinationAlertsList, coordinationAlertsCreate, coordinationAlertsGet, coordinationAlertsUpdate, coordinationAlertsDelete, };
|
|
567
572
|
export { kolFeedAction, kolCoordinationAction, kolLeaderboardAction, deployerAlertsAction, kolPnlAction, kolTrendingTokensAction, kolTokenEntryOrderAction, kolCompareAction, kolAlertsRecentAction };
|
|
568
573
|
export { walletTrackerWatchlistAction, walletTrackerAddAction, walletTrackerRemoveAction, walletTrackerTradesAction, walletTrackerSummaryAction };
|
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { walletTrackerWatchlistAction, walletTrackerAddAction, walletTrackerRemo
|
|
|
8
8
|
import { kolTokenEntryOrderAction } from "./actions/kolTokenEntryOrder.js";
|
|
9
9
|
import { kolCompareAction } from "./actions/kolCompare.js";
|
|
10
10
|
import { kolAlertsRecentAction } from "./actions/kolAlertsRecent.js";
|
|
11
|
-
import { kolFeed, kolCoordination, kolLeaderboard, deployerAlerts, kolPnl, kolTrendingTokens, kolTokenEntryOrder, kolCompare, kolAlertsRecent, createWebhook, listWebhooks, deleteWebhook, testWebhook, getStreamToken, walletTrackerWatchlist, walletTrackerAdd, walletTrackerRemove, walletTrackerTrades, walletTrackerSummary, alphaLeaderboard, alphaWallet, alphaLinked, tokenCapTable, tokenBuyerQuality, copyTradeList, copyTradeCreate, copyTradeGet, copyTradeUpdate, copyTradeDelete, copyTradeSignals, } from "./tools/index.js";
|
|
11
|
+
import { kolFeed, kolCoordination, kolLeaderboard, deployerAlerts, kolPnl, kolTrendingTokens, kolTokenEntryOrder, kolCompare, kolAlertsRecent, createWebhook, listWebhooks, deleteWebhook, testWebhook, getStreamToken, walletTrackerWatchlist, walletTrackerAdd, walletTrackerRemove, walletTrackerTrades, walletTrackerSummary, alphaLeaderboard, alphaWallet, alphaLinked, tokenCapTable, tokenBuyerQuality, copyTradeList, copyTradeCreate, copyTradeGet, copyTradeUpdate, copyTradeDelete, copyTradeSignals, coordinationAlertsList, coordinationAlertsCreate, coordinationAlertsGet, coordinationAlertsUpdate, coordinationAlertsDelete, } from "./tools/index.js";
|
|
12
12
|
const MadeOnSolPlugin = {
|
|
13
13
|
name: "madeonsol",
|
|
14
14
|
methods: {
|
|
@@ -42,6 +42,11 @@ const MadeOnSolPlugin = {
|
|
|
42
42
|
copyTradeUpdate,
|
|
43
43
|
copyTradeDelete,
|
|
44
44
|
copyTradeSignals,
|
|
45
|
+
coordinationAlertsList,
|
|
46
|
+
coordinationAlertsCreate,
|
|
47
|
+
coordinationAlertsGet,
|
|
48
|
+
coordinationAlertsUpdate,
|
|
49
|
+
coordinationAlertsDelete,
|
|
45
50
|
},
|
|
46
51
|
actions: [
|
|
47
52
|
kolFeedAction,
|
|
@@ -64,6 +69,6 @@ const MadeOnSolPlugin = {
|
|
|
64
69
|
},
|
|
65
70
|
};
|
|
66
71
|
export default MadeOnSolPlugin;
|
|
67
|
-
export { kolFeed, kolCoordination, kolLeaderboard, deployerAlerts, kolPnl, kolTrendingTokens, kolTokenEntryOrder, kolCompare, kolAlertsRecent, createWebhook, listWebhooks, deleteWebhook, testWebhook, getStreamToken, walletTrackerWatchlist, walletTrackerAdd, walletTrackerRemove, walletTrackerTrades, walletTrackerSummary, alphaLeaderboard, alphaWallet, alphaLinked, tokenCapTable, tokenBuyerQuality, copyTradeList, copyTradeCreate, copyTradeGet, copyTradeUpdate, copyTradeDelete, copyTradeSignals, };
|
|
72
|
+
export { kolFeed, kolCoordination, kolLeaderboard, deployerAlerts, kolPnl, kolTrendingTokens, kolTokenEntryOrder, kolCompare, kolAlertsRecent, createWebhook, listWebhooks, deleteWebhook, testWebhook, getStreamToken, walletTrackerWatchlist, walletTrackerAdd, walletTrackerRemove, walletTrackerTrades, walletTrackerSummary, alphaLeaderboard, alphaWallet, alphaLinked, tokenCapTable, tokenBuyerQuality, copyTradeList, copyTradeCreate, copyTradeGet, copyTradeUpdate, copyTradeDelete, copyTradeSignals, coordinationAlertsList, coordinationAlertsCreate, coordinationAlertsGet, coordinationAlertsUpdate, coordinationAlertsDelete, };
|
|
68
73
|
export { kolFeedAction, kolCoordinationAction, kolLeaderboardAction, deployerAlertsAction, kolPnlAction, kolTrendingTokensAction, kolTokenEntryOrderAction, kolCompareAction, kolAlertsRecentAction };
|
|
69
74
|
export { walletTrackerWatchlistAction, walletTrackerAddAction, walletTrackerRemoveAction, walletTrackerTradesAction, walletTrackerSummaryAction };
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -27,6 +27,14 @@ export declare function kolCoordination(agent: Agent, params?: {
|
|
|
27
27
|
period?: string;
|
|
28
28
|
min_kols?: number;
|
|
29
29
|
limit?: number;
|
|
30
|
+
min_avg_winrate?: number;
|
|
31
|
+
unique_strategies?: number;
|
|
32
|
+
/** v1.1 — include WIF/BONK/POPCAT etc. Default false. */
|
|
33
|
+
include_majors?: boolean;
|
|
34
|
+
/** v1.1 — peak-density window in minutes (1-60, default 15). */
|
|
35
|
+
window_minutes?: number;
|
|
36
|
+
/** v1.1 — minimum composite coordination_score (0-100). */
|
|
37
|
+
min_score?: number;
|
|
30
38
|
}): Promise<any>;
|
|
31
39
|
export declare function kolLeaderboard(agent: Agent, params?: {
|
|
32
40
|
period?: string;
|
|
@@ -150,6 +158,28 @@ export declare function copyTradeUpdate(agent: Agent, params: {
|
|
|
150
158
|
export declare function copyTradeDelete(agent: Agent, params: {
|
|
151
159
|
rule_id: string;
|
|
152
160
|
}): Promise<any>;
|
|
161
|
+
export declare function coordinationAlertsList(agent: Agent): Promise<any>;
|
|
162
|
+
export declare function coordinationAlertsCreate(agent: Agent, params: {
|
|
163
|
+
name?: string;
|
|
164
|
+
min_kols?: number;
|
|
165
|
+
window_minutes?: number;
|
|
166
|
+
min_score?: number;
|
|
167
|
+
include_majors?: boolean;
|
|
168
|
+
cooldown_min?: number;
|
|
169
|
+
score_jump_break?: number;
|
|
170
|
+
delivery_mode?: "websocket" | "webhook" | "both";
|
|
171
|
+
webhook_url?: string;
|
|
172
|
+
}): Promise<any>;
|
|
173
|
+
export declare function coordinationAlertsGet(agent: Agent, params: {
|
|
174
|
+
rule_id: string;
|
|
175
|
+
}): Promise<any>;
|
|
176
|
+
export declare function coordinationAlertsUpdate(agent: Agent, params: {
|
|
177
|
+
rule_id: string;
|
|
178
|
+
updates: Record<string, unknown>;
|
|
179
|
+
}): Promise<any>;
|
|
180
|
+
export declare function coordinationAlertsDelete(agent: Agent, params: {
|
|
181
|
+
rule_id: string;
|
|
182
|
+
}): Promise<any>;
|
|
153
183
|
export declare function copyTradeSignals(agent: Agent, params?: {
|
|
154
184
|
rule_id?: string;
|
|
155
185
|
limit?: number;
|
package/dist/tools/index.js
CHANGED
|
@@ -87,7 +87,11 @@ export async function kolFeed(agent, params = {}) {
|
|
|
87
87
|
}
|
|
88
88
|
export async function kolCoordination(agent, params = {}) {
|
|
89
89
|
await initAuth(agent);
|
|
90
|
-
|
|
90
|
+
const { include_majors, ...rest } = params;
|
|
91
|
+
const flat = { ...rest };
|
|
92
|
+
if (include_majors !== undefined)
|
|
93
|
+
flat.include_majors = include_majors ? "true" : "false";
|
|
94
|
+
return query("/api/x402/kol/coordination", flat);
|
|
91
95
|
}
|
|
92
96
|
export async function kolLeaderboard(agent, params = {}) {
|
|
93
97
|
await initAuth(agent);
|
|
@@ -245,6 +249,22 @@ export async function copyTradeUpdate(agent, params) {
|
|
|
245
249
|
export async function copyTradeDelete(agent, params) {
|
|
246
250
|
return restQuery(agent, "DELETE", `/copy-trade/rules/${encodeURIComponent(params.rule_id)}`);
|
|
247
251
|
}
|
|
252
|
+
// ── Coordination Alerts (PRO/ULTRA, v1.1) ──
|
|
253
|
+
export async function coordinationAlertsList(agent) {
|
|
254
|
+
return restQuery(agent, "GET", "/kol/coordination/alerts");
|
|
255
|
+
}
|
|
256
|
+
export async function coordinationAlertsCreate(agent, params) {
|
|
257
|
+
return restQuery(agent, "POST", "/kol/coordination/alerts", params);
|
|
258
|
+
}
|
|
259
|
+
export async function coordinationAlertsGet(agent, params) {
|
|
260
|
+
return restQuery(agent, "GET", `/kol/coordination/alerts/${encodeURIComponent(params.rule_id)}`);
|
|
261
|
+
}
|
|
262
|
+
export async function coordinationAlertsUpdate(agent, params) {
|
|
263
|
+
return restQuery(agent, "PATCH", `/kol/coordination/alerts/${encodeURIComponent(params.rule_id)}`, params.updates);
|
|
264
|
+
}
|
|
265
|
+
export async function coordinationAlertsDelete(agent, params) {
|
|
266
|
+
return restQuery(agent, "DELETE", `/kol/coordination/alerts/${encodeURIComponent(params.rule_id)}`);
|
|
267
|
+
}
|
|
248
268
|
export async function copyTradeSignals(agent, params = {}) {
|
|
249
269
|
const qs = new URLSearchParams();
|
|
250
270
|
for (const [k, v] of Object.entries(params)) {
|
package/package.json
CHANGED