solana-agent-kit-plugin-madeonsol 1.11.0 → 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 CHANGED
@@ -11,6 +11,8 @@
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
+ >
14
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.
15
17
 
16
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`.
@@ -125,6 +127,7 @@ await agent.methods.alphaLinked(agent, { wallet: "WALLET" }); // ULTRA
125
127
  await agent.methods.tokenCapTable(agent, { mint: "MINT" }); // PRO=10, ULTRA=20 first non-deployer buyers
126
128
  await agent.methods.tokenBuyerQuality(agent, { mint: "MINT" }); // 0–100 buyer-quality score (5-min cached)
127
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
128
131
  ```
129
132
 
130
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
+ };
package/dist/index.d.ts CHANGED
@@ -12,7 +12,8 @@ import { kolFirstTouchesAction } from "./actions/kolFirstTouches.js";
12
12
  import { meAction } from "./actions/me.js";
13
13
  import { tokensListAction } from "./actions/tokensList.js";
14
14
  import { tokenRiskAction } from "./actions/tokenRisk.js";
15
- 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, 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
+ 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";
16
17
  import { walletStatsAction, walletPnlAction, walletPositionsAction, walletTradesAction } from "./actions/wallet.js";
17
18
  declare const MadeOnSolPlugin: {
18
19
  name: string;
@@ -42,6 +43,7 @@ declare const MadeOnSolPlugin: {
42
43
  tokenCapTable: typeof tokenCapTable;
43
44
  tokenBuyerQuality: typeof tokenBuyerQuality;
44
45
  tokenRisk: typeof tokenRisk;
46
+ tokenCandles: typeof tokenCandles;
45
47
  copyTradeList: typeof copyTradeList;
46
48
  copyTradeCreate: typeof copyTradeCreate;
47
49
  copyTradeGet: typeof copyTradeGet;
@@ -806,6 +808,54 @@ declare const MadeOnSolPlugin: {
806
808
  message: string;
807
809
  result?: undefined;
808
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
+ }>;
809
859
  } | {
810
860
  name: string;
811
861
  similes: string[];
@@ -898,8 +948,8 @@ declare const MadeOnSolPlugin: {
898
948
  initialize(_agent: unknown): void;
899
949
  };
900
950
  export default MadeOnSolPlugin;
901
- 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, 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, };
902
952
  export { kolFeedAction, kolCoordinationAction, kolLeaderboardAction, deployerAlertsAction, kolPnlAction, kolTrendingTokensAction, kolTokenEntryOrderAction, kolCompareAction, kolAlertsRecentAction, kolFirstTouchesAction };
903
953
  export { walletTrackerWatchlistAction, walletTrackerAddAction, walletTrackerRemoveAction, walletTrackerTradesAction, walletTrackerSummaryAction };
904
954
  export { walletStatsAction, walletPnlAction, walletPositionsAction, walletTradesAction };
905
- export { meAction, tokensListAction, tokenRiskAction };
955
+ export { meAction, tokensListAction, tokenRiskAction, tokenCandlesAction };
package/dist/index.js CHANGED
@@ -12,7 +12,8 @@ import { kolFirstTouchesAction } from "./actions/kolFirstTouches.js";
12
12
  import { meAction } from "./actions/me.js";
13
13
  import { tokensListAction } from "./actions/tokensList.js";
14
14
  import { tokenRiskAction } from "./actions/tokenRisk.js";
15
- 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, 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
+ 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";
16
17
  import { walletStatsAction, walletPnlAction, walletPositionsAction, walletTradesAction } from "./actions/wallet.js";
17
18
  const MadeOnSolPlugin = {
18
19
  name: "madeonsol",
@@ -42,6 +43,7 @@ const MadeOnSolPlugin = {
42
43
  tokenCapTable,
43
44
  tokenBuyerQuality,
44
45
  tokenRisk,
46
+ tokenCandles,
45
47
  copyTradeList,
46
48
  copyTradeCreate,
47
49
  copyTradeGet,
@@ -95,6 +97,7 @@ const MadeOnSolPlugin = {
95
97
  meAction,
96
98
  tokensListAction,
97
99
  tokenRiskAction,
100
+ tokenCandlesAction,
98
101
  walletStatsAction,
99
102
  walletPnlAction,
100
103
  walletPositionsAction,
@@ -105,8 +108,8 @@ const MadeOnSolPlugin = {
105
108
  },
106
109
  };
107
110
  export default MadeOnSolPlugin;
108
- 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, 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, };
109
112
  export { kolFeedAction, kolCoordinationAction, kolLeaderboardAction, deployerAlertsAction, kolPnlAction, kolTrendingTokensAction, kolTokenEntryOrderAction, kolCompareAction, kolAlertsRecentAction, kolFirstTouchesAction };
110
113
  export { walletTrackerWatchlistAction, walletTrackerAddAction, walletTrackerRemoveAction, walletTrackerTradesAction, walletTrackerSummaryAction };
111
114
  export { walletStatsAction, walletPnlAction, walletPositionsAction, walletTradesAction };
112
- export { meAction, tokensListAction, tokenRiskAction };
115
+ export { meAction, tokensListAction, tokenRiskAction, tokenCandlesAction };
@@ -171,6 +171,14 @@ export declare function tokenBuyerQuality(agent: Agent, params: {
171
171
  export declare function tokenRisk(agent: Agent, params: {
172
172
  mint: string;
173
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>;
174
182
  /** Bulk buyer-quality scoring for up to 50 mints. Shares the 5-min LRU cache with the single-mint endpoint. */
175
183
  export declare function tokenBuyerQualityBatch(agent: Agent, params: {
176
184
  mints: string[];
@@ -264,6 +264,20 @@ export async function tokenBuyerQuality(agent, params) {
264
264
  export async function tokenRisk(agent, params) {
265
265
  return restQuery(agent, "GET", `/tokens/${encodeURIComponent(params.mint)}/risk`);
266
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
+ }
267
281
  /** Bulk buyer-quality scoring for up to 50 mints. Shares the 5-min LRU cache with the single-mint endpoint. */
268
282
  export async function tokenBuyerQualityBatch(agent, params) {
269
283
  return restQuery(agent, "POST", "/tokens/batch/buyer-quality", { mints: params.mints });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "solana-agent-kit-plugin-madeonsol",
3
- "version": "1.11.0",
3
+ "version": "1.12.0",
4
4
  "description": "Solana Agent Kit plugin for MadeOnSol — KOL intelligence and deployer analytics via x402 micropayments",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",