@madeonsol/plugin-madeonsol 1.12.0 → 1.12.1
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/dist/client.d.ts +11 -5
- package/dist/client.js +7 -7
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -320,12 +320,18 @@ export declare class MadeOnSolClient {
|
|
|
320
320
|
status: number;
|
|
321
321
|
}>;
|
|
322
322
|
copyTradeCreate(params: {
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
323
|
+
/** 1-50 wallets to copy trades from. */
|
|
324
|
+
source_wallets: string[];
|
|
325
|
+
/** Required. Fixed SOL amount, proportional multiplier, or percent of source — per sizing_mode. */
|
|
326
|
+
sizing_amount: number;
|
|
327
|
+
name?: string;
|
|
328
|
+
min_trade_sol?: number;
|
|
329
|
+
only_action?: "buy" | "sell" | "both";
|
|
330
|
+
sizing_mode?: "fixed" | "proportional" | "percent_source";
|
|
331
|
+
delivery_mode?: "webhook" | "websocket" | "both";
|
|
326
332
|
webhook_url?: string;
|
|
327
|
-
|
|
328
|
-
|
|
333
|
+
min_mc_usd?: number | null;
|
|
334
|
+
max_mc_usd?: number | null;
|
|
329
335
|
}): Promise<{
|
|
330
336
|
data?: unknown;
|
|
331
337
|
error?: string;
|
package/dist/client.js
CHANGED
|
@@ -215,7 +215,7 @@ export class MadeOnSolClient {
|
|
|
215
215
|
return this.restRequest("GET", `/alpha/leaderboard${query}`);
|
|
216
216
|
}
|
|
217
217
|
getAlphaWallet(wallet) {
|
|
218
|
-
return this.restRequest("GET", `/alpha
|
|
218
|
+
return this.restRequest("GET", `/alpha/${encodeURIComponent(wallet)}`);
|
|
219
219
|
}
|
|
220
220
|
getAlphaLinked(wallet) {
|
|
221
221
|
return this.restRequest("GET", `/alpha/${encodeURIComponent(wallet)}/linked`);
|
|
@@ -260,19 +260,19 @@ export class MadeOnSolClient {
|
|
|
260
260
|
}
|
|
261
261
|
// ── Copy-Trade Rules (PRO/ULTRA) ──
|
|
262
262
|
copyTradeList() {
|
|
263
|
-
return this.restRequest("GET", "/
|
|
263
|
+
return this.restRequest("GET", "/copytrade/subscriptions");
|
|
264
264
|
}
|
|
265
265
|
copyTradeCreate(params) {
|
|
266
|
-
return this.restRequest("POST", "/
|
|
266
|
+
return this.restRequest("POST", "/copytrade/subscriptions", params);
|
|
267
267
|
}
|
|
268
268
|
copyTradeGet(ruleId) {
|
|
269
|
-
return this.restRequest("GET", `/
|
|
269
|
+
return this.restRequest("GET", `/copytrade/subscriptions/${encodeURIComponent(ruleId)}`);
|
|
270
270
|
}
|
|
271
271
|
copyTradeUpdate(ruleId, updates) {
|
|
272
|
-
return this.restRequest("PATCH", `/
|
|
272
|
+
return this.restRequest("PATCH", `/copytrade/subscriptions/${encodeURIComponent(ruleId)}`, updates);
|
|
273
273
|
}
|
|
274
274
|
copyTradeDelete(ruleId) {
|
|
275
|
-
return this.restRequest("DELETE", `/
|
|
275
|
+
return this.restRequest("DELETE", `/copytrade/subscriptions/${encodeURIComponent(ruleId)}`);
|
|
276
276
|
}
|
|
277
277
|
// ── Coordination alerts (PRO/ULTRA, v1.1) ──
|
|
278
278
|
coordinationAlertsList() {
|
|
@@ -343,7 +343,7 @@ export class MadeOnSolClient {
|
|
|
343
343
|
if (v !== undefined)
|
|
344
344
|
qs.set(k, v);
|
|
345
345
|
const query = qs.toString() ? `?${qs.toString()}` : "";
|
|
346
|
-
return this.restRequest("GET", `/
|
|
346
|
+
return this.restRequest("GET", `/copytrade/signals${query}`);
|
|
347
347
|
}
|
|
348
348
|
// ── Price alerts (PRO/ULTRA, v1.9) ──
|
|
349
349
|
priceAlertsList() {
|
package/package.json
CHANGED