solana-agent-kit-plugin-madeonsol 1.10.1 → 1.12.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 +6 -0
- package/dist/actions/tokenCandles.d.ts +50 -0
- package/dist/actions/tokenCandles.js +26 -0
- package/dist/actions/tokenRisk.d.ts +33 -0
- package/dist/actions/tokenRisk.js +22 -0
- package/dist/index.d.ts +86 -3
- package/dist/index.js +9 -3
- package/dist/tools/index.d.ts +12 -0
- package/dist/tools/index.js +19 -1
- package/package.json +54 -54
package/README.md
CHANGED
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
|
|
12
12
|
> Real-time Solana trading intelligence: track 1,069 KOL wallets with <3s latency, score 23,000+ Pump.fun deployers, surface deshred deploy signals ~500ms before on-chain confirmation, detect multi-KOL coordination, and stream every DEX trade. Free tier: 200 requests/day at [madeonsol.com/pricing](https://madeonsol.com/pricing) — no credit card required.
|
|
13
13
|
|
|
14
|
+
> **New in 1.12.0** — **Token OHLCV candles.** New tool `tokenCandles()` + action `MADEONSOL_TOKEN_CANDLES_ACTION` — historical price candles (1m/5m/15m/1h/4h/1d) aggregated from the on-chain trade firehose. Each candle has `t/open/high/low/close/volume_usd/trades/market_cap_usd`. PRO returns OHLCV for the last 30 days; ULTRA adds buy/sell volume + count splits, net flow, MEV volume, open/close liquidity, high/low MC, and full history. PRO/ULTRA only.
|
|
15
|
+
>
|
|
16
|
+
> **New in 1.11.0** — **Token risk score.** New tool `tokenRisk()` + action `MADEONSOL_TOKEN_RISK_ACTION` — a transparent 0–100 rug-risk/safety score (higher = riskier) with a `band` (safe/caution/danger), an explainable `factors[]` array, and the raw `inputs` (mint/freeze authority, liquidity, liq-to-MC ratio, transfer fee, launch cohort, deployer bond rate, KOL signal, blacklist). PRO/ULTRA only.
|
|
17
|
+
|
|
14
18
|
> **New in 1.10.0** — `tokensList()` gains three new filter params: `min_liq_mc_ratio`, `max_liq_mc_ratio`, and `deployer_tier`. Response items now include `liquidity_to_mc_ratio` and `deployer_tier`. KOL leaderboard entries now include `median_hold_minutes_30d` and `percentile_early_entry_30d`. Token endpoints now return `liquidity_to_mc_ratio`, `launch_cohort_sol`, and `launch_cohort_size`.
|
|
15
19
|
|
|
16
20
|
> **New in 1.9.3** — Deployer alerts now surface `runner_rate` + `labeled_tokens` (fraction of a deployer's labeled tokens that ran vs dumped, gate on `labeled_tokens` ≥3) and `avg_time_to_bond_minutes`.
|
|
@@ -122,6 +126,8 @@ await agent.methods.alphaLinked(agent, { wallet: "WALLET" }); // ULTRA
|
|
|
122
126
|
```ts
|
|
123
127
|
await agent.methods.tokenCapTable(agent, { mint: "MINT" }); // PRO=10, ULTRA=20 first non-deployer buyers
|
|
124
128
|
await agent.methods.tokenBuyerQuality(agent, { mint: "MINT" }); // 0–100 buyer-quality score (5-min cached)
|
|
129
|
+
await agent.methods.tokenRisk(agent, { mint: "MINT" }); // PRO+ 0–100 rug-risk/safety score + band + factors
|
|
130
|
+
await agent.methods.tokenCandles(agent, { mint: "MINT", tf: "1h" }); // PRO+ OHLCV candles (1m–1d); ULTRA=+net flow, liquidity, full history
|
|
125
131
|
```
|
|
126
132
|
|
|
127
133
|
### Copy-Trade Rules (PRO/ULTRA)
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const tokenCandlesAction: {
|
|
3
|
+
name: string;
|
|
4
|
+
similes: string[];
|
|
5
|
+
description: string;
|
|
6
|
+
examples: {
|
|
7
|
+
input: {
|
|
8
|
+
mint: string;
|
|
9
|
+
tf: string;
|
|
10
|
+
};
|
|
11
|
+
output: {
|
|
12
|
+
status: string;
|
|
13
|
+
};
|
|
14
|
+
explanation: string;
|
|
15
|
+
}[][];
|
|
16
|
+
schema: z.ZodObject<{
|
|
17
|
+
mint: z.ZodString;
|
|
18
|
+
tf: z.ZodOptional<z.ZodEnum<["1m", "5m", "15m", "1h", "4h", "1d"]>>;
|
|
19
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
from: z.ZodOptional<z.ZodString>;
|
|
21
|
+
to: z.ZodOptional<z.ZodString>;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
mint: string;
|
|
24
|
+
limit?: number | undefined;
|
|
25
|
+
tf?: "1h" | "5m" | "15m" | "4h" | "1m" | "1d" | undefined;
|
|
26
|
+
from?: string | undefined;
|
|
27
|
+
to?: string | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
mint: string;
|
|
30
|
+
limit?: number | undefined;
|
|
31
|
+
tf?: "1h" | "5m" | "15m" | "4h" | "1m" | "1d" | undefined;
|
|
32
|
+
from?: string | undefined;
|
|
33
|
+
to?: string | undefined;
|
|
34
|
+
}>;
|
|
35
|
+
handler: (agent: unknown, input: {
|
|
36
|
+
mint: string;
|
|
37
|
+
tf?: string;
|
|
38
|
+
limit?: number;
|
|
39
|
+
from?: string;
|
|
40
|
+
to?: string;
|
|
41
|
+
}) => Promise<{
|
|
42
|
+
status: string;
|
|
43
|
+
result: any;
|
|
44
|
+
message?: undefined;
|
|
45
|
+
} | {
|
|
46
|
+
status: string;
|
|
47
|
+
message: string;
|
|
48
|
+
result?: undefined;
|
|
49
|
+
}>;
|
|
50
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { tokenCandles } from "../tools/index.js";
|
|
3
|
+
export const tokenCandlesAction = {
|
|
4
|
+
name: "MADEONSOL_TOKEN_CANDLES_ACTION",
|
|
5
|
+
similes: ["token candles", "ohlc", "ohlcv", "price chart", "candlestick", "price history"],
|
|
6
|
+
description: "Get historical OHLCV price candles for a Solana token (1m/5m/15m/1h/4h/1d). Each candle has t/open/high/low/close/volume_usd/trades/market_cap_usd. PRO returns OHLCV for the last 30 days; ULTRA adds buy/sell volume + count splits, net flow, MEV volume, open/close liquidity, and full history. PRO/ULTRA only — BASIC receives HTTP 403.",
|
|
7
|
+
examples: [
|
|
8
|
+
[{ input: { mint: "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU", tf: "1h" }, output: { status: "success" }, explanation: "Get the 1h OHLCV candle history for this token." }],
|
|
9
|
+
],
|
|
10
|
+
schema: z.object({
|
|
11
|
+
mint: z.string().describe("Token mint address (base58)"),
|
|
12
|
+
tf: z.enum(["1m", "5m", "15m", "1h", "4h", "1d"]).optional().describe("Candle timeframe (default 1h)"),
|
|
13
|
+
limit: z.number().min(1).max(1000).optional().describe("Number of candles to return, 1–1000 (default 200)"),
|
|
14
|
+
from: z.string().optional().describe("Start of range, ISO8601 timestamp"),
|
|
15
|
+
to: z.string().optional().describe("End of range, ISO8601 timestamp"),
|
|
16
|
+
}),
|
|
17
|
+
handler: async (agent, input) => {
|
|
18
|
+
try {
|
|
19
|
+
const data = await tokenCandles(agent, input);
|
|
20
|
+
return { status: "success", result: data };
|
|
21
|
+
}
|
|
22
|
+
catch (err) {
|
|
23
|
+
return { status: "error", message: err.message };
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const tokenRiskAction: {
|
|
3
|
+
name: string;
|
|
4
|
+
similes: string[];
|
|
5
|
+
description: string;
|
|
6
|
+
examples: {
|
|
7
|
+
input: {
|
|
8
|
+
mint: string;
|
|
9
|
+
};
|
|
10
|
+
output: {
|
|
11
|
+
status: string;
|
|
12
|
+
};
|
|
13
|
+
explanation: string;
|
|
14
|
+
}[][];
|
|
15
|
+
schema: z.ZodObject<{
|
|
16
|
+
mint: z.ZodString;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
mint: string;
|
|
19
|
+
}, {
|
|
20
|
+
mint: string;
|
|
21
|
+
}>;
|
|
22
|
+
handler: (agent: unknown, input: {
|
|
23
|
+
mint: string;
|
|
24
|
+
}) => Promise<{
|
|
25
|
+
status: string;
|
|
26
|
+
result: any;
|
|
27
|
+
message?: undefined;
|
|
28
|
+
} | {
|
|
29
|
+
status: string;
|
|
30
|
+
message: string;
|
|
31
|
+
result?: undefined;
|
|
32
|
+
}>;
|
|
33
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { tokenRisk } from "../tools/index.js";
|
|
3
|
+
export const tokenRiskAction = {
|
|
4
|
+
name: "MADEONSOL_TOKEN_RISK_ACTION",
|
|
5
|
+
similes: ["token risk score", "is this a rug", "rug risk", "token safety score", "how safe is this token"],
|
|
6
|
+
description: "Get a transparent 0–100 rug-risk/safety score for a Solana token (higher = riskier). Returns a band (safe/caution/danger), an explainable factors[] array (mint authority, freeze authority, liquidity, transfer fee, token-2022, burn, launch cohort, deployer bond rate, KOL signal, blacklist), and the raw inputs that produced the score. PRO/ULTRA only — BASIC receives HTTP 403.",
|
|
7
|
+
examples: [
|
|
8
|
+
[{ input: { mint: "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU" }, output: { status: "success" }, explanation: "Is this token a rug? Score its risk." }],
|
|
9
|
+
],
|
|
10
|
+
schema: z.object({
|
|
11
|
+
mint: z.string().describe("Token mint address (base58)"),
|
|
12
|
+
}),
|
|
13
|
+
handler: async (agent, input) => {
|
|
14
|
+
try {
|
|
15
|
+
const data = await tokenRisk(agent, input);
|
|
16
|
+
return { status: "success", result: data };
|
|
17
|
+
}
|
|
18
|
+
catch (err) {
|
|
19
|
+
return { status: "error", message: err.message };
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,9 @@ import { kolAlertsRecentAction } from "./actions/kolAlertsRecent.js";
|
|
|
11
11
|
import { kolFirstTouchesAction } from "./actions/kolFirstTouches.js";
|
|
12
12
|
import { meAction } from "./actions/me.js";
|
|
13
13
|
import { tokensListAction } from "./actions/tokensList.js";
|
|
14
|
-
import {
|
|
14
|
+
import { tokenRiskAction } from "./actions/tokenRisk.js";
|
|
15
|
+
import { tokenCandlesAction } from "./actions/tokenCandles.js";
|
|
16
|
+
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, tokenRisk, tokenCandles, copyTradeList, copyTradeCreate, copyTradeGet, copyTradeUpdate, copyTradeDelete, copyTradeSignals, coordinationAlertsList, coordinationAlertsCreate, coordinationAlertsGet, coordinationAlertsUpdate, coordinationAlertsDelete, kolFirstTouches, firstTouchSubscriptionsList, firstTouchSubscriptionsCreate, firstTouchSubscriptionsGet, firstTouchSubscriptionsUpdate, firstTouchSubscriptionsDelete, priceAlertsList, priceAlertsCreate, priceAlertsGet, priceAlertsUpdate, priceAlertsDelete, priceAlertsEvents, scoutLeaderboard, coordinationHistory, kolConsensus, peakHistory, walletStats, walletPnl, walletPositions, walletTrades, me, tokensList } from "./tools/index.js";
|
|
15
17
|
import { walletStatsAction, walletPnlAction, walletPositionsAction, walletTradesAction } from "./actions/wallet.js";
|
|
16
18
|
declare const MadeOnSolPlugin: {
|
|
17
19
|
name: string;
|
|
@@ -40,6 +42,8 @@ declare const MadeOnSolPlugin: {
|
|
|
40
42
|
alphaLinked: typeof alphaLinked;
|
|
41
43
|
tokenCapTable: typeof tokenCapTable;
|
|
42
44
|
tokenBuyerQuality: typeof tokenBuyerQuality;
|
|
45
|
+
tokenRisk: typeof tokenRisk;
|
|
46
|
+
tokenCandles: typeof tokenCandles;
|
|
43
47
|
copyTradeList: typeof copyTradeList;
|
|
44
48
|
copyTradeCreate: typeof copyTradeCreate;
|
|
45
49
|
copyTradeGet: typeof copyTradeGet;
|
|
@@ -773,6 +777,85 @@ declare const MadeOnSolPlugin: {
|
|
|
773
777
|
message: string;
|
|
774
778
|
result?: undefined;
|
|
775
779
|
}>;
|
|
780
|
+
} | {
|
|
781
|
+
name: string;
|
|
782
|
+
similes: string[];
|
|
783
|
+
description: string;
|
|
784
|
+
examples: {
|
|
785
|
+
input: {
|
|
786
|
+
mint: string;
|
|
787
|
+
};
|
|
788
|
+
output: {
|
|
789
|
+
status: string;
|
|
790
|
+
};
|
|
791
|
+
explanation: string;
|
|
792
|
+
}[][];
|
|
793
|
+
schema: import("zod").ZodObject<{
|
|
794
|
+
mint: import("zod").ZodString;
|
|
795
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
796
|
+
mint: string;
|
|
797
|
+
}, {
|
|
798
|
+
mint: string;
|
|
799
|
+
}>;
|
|
800
|
+
handler: (agent: unknown, input: {
|
|
801
|
+
mint: string;
|
|
802
|
+
}) => Promise<{
|
|
803
|
+
status: string;
|
|
804
|
+
result: any;
|
|
805
|
+
message?: undefined;
|
|
806
|
+
} | {
|
|
807
|
+
status: string;
|
|
808
|
+
message: string;
|
|
809
|
+
result?: undefined;
|
|
810
|
+
}>;
|
|
811
|
+
} | {
|
|
812
|
+
name: string;
|
|
813
|
+
similes: string[];
|
|
814
|
+
description: string;
|
|
815
|
+
examples: {
|
|
816
|
+
input: {
|
|
817
|
+
mint: string;
|
|
818
|
+
tf: string;
|
|
819
|
+
};
|
|
820
|
+
output: {
|
|
821
|
+
status: string;
|
|
822
|
+
};
|
|
823
|
+
explanation: string;
|
|
824
|
+
}[][];
|
|
825
|
+
schema: import("zod").ZodObject<{
|
|
826
|
+
mint: import("zod").ZodString;
|
|
827
|
+
tf: import("zod").ZodOptional<import("zod").ZodEnum<["1m", "5m", "15m", "1h", "4h", "1d"]>>;
|
|
828
|
+
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
829
|
+
from: import("zod").ZodOptional<import("zod").ZodString>;
|
|
830
|
+
to: import("zod").ZodOptional<import("zod").ZodString>;
|
|
831
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
832
|
+
mint: string;
|
|
833
|
+
limit?: number | undefined;
|
|
834
|
+
tf?: "1h" | "5m" | "15m" | "4h" | "1m" | "1d" | undefined;
|
|
835
|
+
from?: string | undefined;
|
|
836
|
+
to?: string | undefined;
|
|
837
|
+
}, {
|
|
838
|
+
mint: string;
|
|
839
|
+
limit?: number | undefined;
|
|
840
|
+
tf?: "1h" | "5m" | "15m" | "4h" | "1m" | "1d" | undefined;
|
|
841
|
+
from?: string | undefined;
|
|
842
|
+
to?: string | undefined;
|
|
843
|
+
}>;
|
|
844
|
+
handler: (agent: unknown, input: {
|
|
845
|
+
mint: string;
|
|
846
|
+
tf?: string;
|
|
847
|
+
limit?: number;
|
|
848
|
+
from?: string;
|
|
849
|
+
to?: string;
|
|
850
|
+
}) => Promise<{
|
|
851
|
+
status: string;
|
|
852
|
+
result: any;
|
|
853
|
+
message?: undefined;
|
|
854
|
+
} | {
|
|
855
|
+
status: string;
|
|
856
|
+
message: string;
|
|
857
|
+
result?: undefined;
|
|
858
|
+
}>;
|
|
776
859
|
} | {
|
|
777
860
|
name: string;
|
|
778
861
|
similes: string[];
|
|
@@ -865,8 +948,8 @@ declare const MadeOnSolPlugin: {
|
|
|
865
948
|
initialize(_agent: unknown): void;
|
|
866
949
|
};
|
|
867
950
|
export default MadeOnSolPlugin;
|
|
868
|
-
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, kolFirstTouches, firstTouchSubscriptionsList, firstTouchSubscriptionsCreate, firstTouchSubscriptionsGet, firstTouchSubscriptionsUpdate, firstTouchSubscriptionsDelete, priceAlertsList, priceAlertsCreate, priceAlertsGet, priceAlertsUpdate, priceAlertsDelete, priceAlertsEvents, scoutLeaderboard, coordinationHistory, kolConsensus, peakHistory, walletStats, walletPnl, walletPositions, walletTrades, me, tokensList, };
|
|
951
|
+
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, tokenRisk, tokenCandles, copyTradeList, copyTradeCreate, copyTradeGet, copyTradeUpdate, copyTradeDelete, copyTradeSignals, coordinationAlertsList, coordinationAlertsCreate, coordinationAlertsGet, coordinationAlertsUpdate, coordinationAlertsDelete, kolFirstTouches, firstTouchSubscriptionsList, firstTouchSubscriptionsCreate, firstTouchSubscriptionsGet, firstTouchSubscriptionsUpdate, firstTouchSubscriptionsDelete, priceAlertsList, priceAlertsCreate, priceAlertsGet, priceAlertsUpdate, priceAlertsDelete, priceAlertsEvents, scoutLeaderboard, coordinationHistory, kolConsensus, peakHistory, walletStats, walletPnl, walletPositions, walletTrades, me, tokensList, };
|
|
869
952
|
export { kolFeedAction, kolCoordinationAction, kolLeaderboardAction, deployerAlertsAction, kolPnlAction, kolTrendingTokensAction, kolTokenEntryOrderAction, kolCompareAction, kolAlertsRecentAction, kolFirstTouchesAction };
|
|
870
953
|
export { walletTrackerWatchlistAction, walletTrackerAddAction, walletTrackerRemoveAction, walletTrackerTradesAction, walletTrackerSummaryAction };
|
|
871
954
|
export { walletStatsAction, walletPnlAction, walletPositionsAction, walletTradesAction };
|
|
872
|
-
export { meAction, tokensListAction };
|
|
955
|
+
export { meAction, tokensListAction, tokenRiskAction, tokenCandlesAction };
|
package/dist/index.js
CHANGED
|
@@ -11,7 +11,9 @@ import { kolAlertsRecentAction } from "./actions/kolAlertsRecent.js";
|
|
|
11
11
|
import { kolFirstTouchesAction } from "./actions/kolFirstTouches.js";
|
|
12
12
|
import { meAction } from "./actions/me.js";
|
|
13
13
|
import { tokensListAction } from "./actions/tokensList.js";
|
|
14
|
-
import {
|
|
14
|
+
import { tokenRiskAction } from "./actions/tokenRisk.js";
|
|
15
|
+
import { tokenCandlesAction } from "./actions/tokenCandles.js";
|
|
16
|
+
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, tokenRisk, tokenCandles, copyTradeList, copyTradeCreate, copyTradeGet, copyTradeUpdate, copyTradeDelete, copyTradeSignals, coordinationAlertsList, coordinationAlertsCreate, coordinationAlertsGet, coordinationAlertsUpdate, coordinationAlertsDelete, kolFirstTouches, firstTouchSubscriptionsList, firstTouchSubscriptionsCreate, firstTouchSubscriptionsGet, firstTouchSubscriptionsUpdate, firstTouchSubscriptionsDelete, priceAlertsList, priceAlertsCreate, priceAlertsGet, priceAlertsUpdate, priceAlertsDelete, priceAlertsEvents, scoutLeaderboard, coordinationHistory, kolConsensus, peakHistory, walletStats, walletPnl, walletPositions, walletTrades, me, tokensList, } from "./tools/index.js";
|
|
15
17
|
import { walletStatsAction, walletPnlAction, walletPositionsAction, walletTradesAction } from "./actions/wallet.js";
|
|
16
18
|
const MadeOnSolPlugin = {
|
|
17
19
|
name: "madeonsol",
|
|
@@ -40,6 +42,8 @@ const MadeOnSolPlugin = {
|
|
|
40
42
|
alphaLinked,
|
|
41
43
|
tokenCapTable,
|
|
42
44
|
tokenBuyerQuality,
|
|
45
|
+
tokenRisk,
|
|
46
|
+
tokenCandles,
|
|
43
47
|
copyTradeList,
|
|
44
48
|
copyTradeCreate,
|
|
45
49
|
copyTradeGet,
|
|
@@ -92,6 +96,8 @@ const MadeOnSolPlugin = {
|
|
|
92
96
|
walletTrackerSummaryAction,
|
|
93
97
|
meAction,
|
|
94
98
|
tokensListAction,
|
|
99
|
+
tokenRiskAction,
|
|
100
|
+
tokenCandlesAction,
|
|
95
101
|
walletStatsAction,
|
|
96
102
|
walletPnlAction,
|
|
97
103
|
walletPositionsAction,
|
|
@@ -102,8 +108,8 @@ const MadeOnSolPlugin = {
|
|
|
102
108
|
},
|
|
103
109
|
};
|
|
104
110
|
export default MadeOnSolPlugin;
|
|
105
|
-
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, kolFirstTouches, firstTouchSubscriptionsList, firstTouchSubscriptionsCreate, firstTouchSubscriptionsGet, firstTouchSubscriptionsUpdate, firstTouchSubscriptionsDelete, priceAlertsList, priceAlertsCreate, priceAlertsGet, priceAlertsUpdate, priceAlertsDelete, priceAlertsEvents, scoutLeaderboard, coordinationHistory, kolConsensus, peakHistory, walletStats, walletPnl, walletPositions, walletTrades, me, tokensList, };
|
|
111
|
+
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, tokenRisk, tokenCandles, copyTradeList, copyTradeCreate, copyTradeGet, copyTradeUpdate, copyTradeDelete, copyTradeSignals, coordinationAlertsList, coordinationAlertsCreate, coordinationAlertsGet, coordinationAlertsUpdate, coordinationAlertsDelete, kolFirstTouches, firstTouchSubscriptionsList, firstTouchSubscriptionsCreate, firstTouchSubscriptionsGet, firstTouchSubscriptionsUpdate, firstTouchSubscriptionsDelete, priceAlertsList, priceAlertsCreate, priceAlertsGet, priceAlertsUpdate, priceAlertsDelete, priceAlertsEvents, scoutLeaderboard, coordinationHistory, kolConsensus, peakHistory, walletStats, walletPnl, walletPositions, walletTrades, me, tokensList, };
|
|
106
112
|
export { kolFeedAction, kolCoordinationAction, kolLeaderboardAction, deployerAlertsAction, kolPnlAction, kolTrendingTokensAction, kolTokenEntryOrderAction, kolCompareAction, kolAlertsRecentAction, kolFirstTouchesAction };
|
|
107
113
|
export { walletTrackerWatchlistAction, walletTrackerAddAction, walletTrackerRemoveAction, walletTrackerTradesAction, walletTrackerSummaryAction };
|
|
108
114
|
export { walletStatsAction, walletPnlAction, walletPositionsAction, walletTradesAction };
|
|
109
|
-
export { meAction, tokensListAction };
|
|
115
|
+
export { meAction, tokensListAction, tokenRiskAction, tokenCandlesAction };
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -167,6 +167,18 @@ export declare function tokenCapTable(agent: Agent, params: {
|
|
|
167
167
|
export declare function tokenBuyerQuality(agent: Agent, params: {
|
|
168
168
|
mint: string;
|
|
169
169
|
}): Promise<any>;
|
|
170
|
+
/** Transparent 0–100 rug-risk/safety score (higher = riskier) with band, explainable factors, and raw inputs. PRO/ULTRA only. */
|
|
171
|
+
export declare function tokenRisk(agent: Agent, params: {
|
|
172
|
+
mint: string;
|
|
173
|
+
}): Promise<any>;
|
|
174
|
+
/** Historical OHLCV candles (1m/5m/15m/1h/4h/1d) aggregated from the trade firehose. PRO=OHLCV 30d; ULTRA=+net flow, liquidity delta, full history. PRO/ULTRA only. */
|
|
175
|
+
export declare function tokenCandles(agent: Agent, params: {
|
|
176
|
+
mint: string;
|
|
177
|
+
tf?: string;
|
|
178
|
+
limit?: number;
|
|
179
|
+
from?: string;
|
|
180
|
+
to?: string;
|
|
181
|
+
}): Promise<any>;
|
|
170
182
|
/** Bulk buyer-quality scoring for up to 50 mints. Shares the 5-min LRU cache with the single-mint endpoint. */
|
|
171
183
|
export declare function tokenBuyerQualityBatch(agent: Agent, params: {
|
|
172
184
|
mints: string[];
|
package/dist/tools/index.js
CHANGED
|
@@ -30,7 +30,7 @@ export async function initAuth(agent) {
|
|
|
30
30
|
const privateKey = getConfig(agent, "SVM_PRIVATE_KEY");
|
|
31
31
|
if (apiKey) {
|
|
32
32
|
_authMode = "madeonsol";
|
|
33
|
-
_authHeaders = { Authorization: `Bearer ${apiKey}`, "User-Agent": "solana-agent-kit-plugin-madeonsol/1.
|
|
33
|
+
_authHeaders = { Authorization: `Bearer ${apiKey}`, "User-Agent": "solana-agent-kit-plugin-madeonsol/1.11.0" };
|
|
34
34
|
_paidFetch = fetch;
|
|
35
35
|
console.log("[madeonsol] Using MadeOnSol API key (Bearer auth)");
|
|
36
36
|
}
|
|
@@ -260,6 +260,24 @@ export async function tokenCapTable(agent, params) {
|
|
|
260
260
|
export async function tokenBuyerQuality(agent, params) {
|
|
261
261
|
return restQuery(agent, "GET", `/tokens/${encodeURIComponent(params.mint)}/buyer-quality`);
|
|
262
262
|
}
|
|
263
|
+
/** Transparent 0–100 rug-risk/safety score (higher = riskier) with band, explainable factors, and raw inputs. PRO/ULTRA only. */
|
|
264
|
+
export async function tokenRisk(agent, params) {
|
|
265
|
+
return restQuery(agent, "GET", `/tokens/${encodeURIComponent(params.mint)}/risk`);
|
|
266
|
+
}
|
|
267
|
+
/** Historical OHLCV candles (1m/5m/15m/1h/4h/1d) aggregated from the trade firehose. PRO=OHLCV 30d; ULTRA=+net flow, liquidity delta, full history. PRO/ULTRA only. */
|
|
268
|
+
export async function tokenCandles(agent, params) {
|
|
269
|
+
const qs = new URLSearchParams();
|
|
270
|
+
if (params.tf !== undefined)
|
|
271
|
+
qs.set("tf", params.tf);
|
|
272
|
+
if (params.limit !== undefined)
|
|
273
|
+
qs.set("limit", String(params.limit));
|
|
274
|
+
if (params.from !== undefined)
|
|
275
|
+
qs.set("from", params.from);
|
|
276
|
+
if (params.to !== undefined)
|
|
277
|
+
qs.set("to", params.to);
|
|
278
|
+
const query = qs.toString() ? `?${qs.toString()}` : "";
|
|
279
|
+
return restQuery(agent, "GET", `/tokens/${encodeURIComponent(params.mint)}/candles${query}`);
|
|
280
|
+
}
|
|
263
281
|
/** Bulk buyer-quality scoring for up to 50 mints. Shares the 5-min LRU cache with the single-mint endpoint. */
|
|
264
282
|
export async function tokenBuyerQualityBatch(agent, params) {
|
|
265
283
|
return restQuery(agent, "POST", "/tokens/batch/buyer-quality", { mints: params.mints });
|
package/package.json
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "solana-agent-kit-plugin-madeonsol",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Solana Agent Kit plugin for MadeOnSol — KOL intelligence and deployer analytics via x402 micropayments",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "dist/index.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
|
-
"files": [
|
|
9
|
-
"dist",
|
|
10
|
-
"README.md"
|
|
11
|
-
],
|
|
12
|
-
"scripts": {
|
|
13
|
-
"build": "tsc",
|
|
14
|
-
"preflight": "bash ../../scripts/preflight-publish.sh",
|
|
15
|
-
"prepublishOnly": "npm run preflight && npm run build"
|
|
16
|
-
},
|
|
17
|
-
"keywords": [
|
|
18
|
-
"solana",
|
|
19
|
-
"agent-kit",
|
|
20
|
-
"solana-agent-kit",
|
|
21
|
-
"sendaifun",
|
|
22
|
-
"plugin",
|
|
23
|
-
"ai-agent",
|
|
24
|
-
"x402",
|
|
25
|
-
"kol",
|
|
26
|
-
"kol-tracker",
|
|
27
|
-
"trading",
|
|
28
|
-
"memecoin",
|
|
29
|
-
"memecoin-tracker",
|
|
30
|
-
"pumpfun",
|
|
31
|
-
"deployer-hunter",
|
|
32
|
-
"alpha",
|
|
33
|
-
"alpha-bot",
|
|
34
|
-
"smart-money",
|
|
35
|
-
"copy-trading",
|
|
36
|
-
"madeonsol"
|
|
37
|
-
],
|
|
38
|
-
"license": "MIT",
|
|
39
|
-
"repository": {
|
|
40
|
-
"type": "git",
|
|
41
|
-
"url": "https://github.com/LamboPoewert/solana-agent-kit-plugin-madeonsol"
|
|
42
|
-
},
|
|
43
|
-
"peerDependencies": {
|
|
44
|
-
"solana-agent-kit": ">=2.0.0",
|
|
45
|
-
"@x402/fetch": ">=0.1.0",
|
|
46
|
-
"@x402/core": ">=0.1.0",
|
|
47
|
-
"@x402/svm": ">=0.1.0",
|
|
48
|
-
"@solana/kit": ">=2.0.0",
|
|
49
|
-
"@scure/base": ">=1.0.0"
|
|
50
|
-
},
|
|
51
|
-
"dependencies": {
|
|
52
|
-
"zod": "^3.24.0"
|
|
53
|
-
}
|
|
54
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "solana-agent-kit-plugin-madeonsol",
|
|
3
|
+
"version": "1.12.0",
|
|
4
|
+
"description": "Solana Agent Kit plugin for MadeOnSol — KOL intelligence and deployer analytics via x402 micropayments",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"README.md"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "tsc",
|
|
14
|
+
"preflight": "bash ../../scripts/preflight-publish.sh",
|
|
15
|
+
"prepublishOnly": "npm run preflight && npm run build"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"solana",
|
|
19
|
+
"agent-kit",
|
|
20
|
+
"solana-agent-kit",
|
|
21
|
+
"sendaifun",
|
|
22
|
+
"plugin",
|
|
23
|
+
"ai-agent",
|
|
24
|
+
"x402",
|
|
25
|
+
"kol",
|
|
26
|
+
"kol-tracker",
|
|
27
|
+
"trading",
|
|
28
|
+
"memecoin",
|
|
29
|
+
"memecoin-tracker",
|
|
30
|
+
"pumpfun",
|
|
31
|
+
"deployer-hunter",
|
|
32
|
+
"alpha",
|
|
33
|
+
"alpha-bot",
|
|
34
|
+
"smart-money",
|
|
35
|
+
"copy-trading",
|
|
36
|
+
"madeonsol"
|
|
37
|
+
],
|
|
38
|
+
"license": "MIT",
|
|
39
|
+
"repository": {
|
|
40
|
+
"type": "git",
|
|
41
|
+
"url": "https://github.com/LamboPoewert/solana-agent-kit-plugin-madeonsol"
|
|
42
|
+
},
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"solana-agent-kit": ">=2.0.0",
|
|
45
|
+
"@x402/fetch": ">=0.1.0",
|
|
46
|
+
"@x402/core": ">=0.1.0",
|
|
47
|
+
"@x402/svm": ">=0.1.0",
|
|
48
|
+
"@solana/kit": ">=2.0.0",
|
|
49
|
+
"@scure/base": ">=1.0.0"
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"zod": "^3.24.0"
|
|
53
|
+
}
|
|
54
|
+
}
|