@0xinsider/mcp 3.6.2 → 3.7.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.
Files changed (49) hide show
  1. package/README.md +44 -17
  2. package/dist/constants.d.ts +1 -1
  3. package/dist/constants.js +1 -1
  4. package/dist/product-cli/index.d.ts.map +1 -1
  5. package/dist/product-cli/index.js +162 -26
  6. package/dist/product-cli/index.js.map +1 -1
  7. package/dist/product-cli/operations.d.ts +24 -0
  8. package/dist/product-cli/operations.d.ts.map +1 -0
  9. package/dist/product-cli/operations.js +222 -0
  10. package/dist/product-cli/operations.js.map +1 -0
  11. package/dist/prompts/index.js +2 -2
  12. package/dist/sdk/client.d.ts +67 -155
  13. package/dist/sdk/client.d.ts.map +1 -1
  14. package/dist/sdk/client.js +75 -150
  15. package/dist/sdk/client.js.map +1 -1
  16. package/dist/sdk/errors.d.ts +6 -5
  17. package/dist/sdk/errors.d.ts.map +1 -1
  18. package/dist/sdk/errors.js +13 -5
  19. package/dist/sdk/errors.js.map +1 -1
  20. package/dist/sdk/index.d.ts +3 -25
  21. package/dist/sdk/index.d.ts.map +1 -1
  22. package/dist/sdk/index.js +2 -1
  23. package/dist/sdk/index.js.map +1 -1
  24. package/dist/sdk/pagination.d.ts +3 -3
  25. package/dist/sdk/pagination.js +2 -2
  26. package/dist/sdk/schema.d.ts +372 -191
  27. package/dist/sdk/schema.d.ts.map +1 -1
  28. package/dist/sdk/webhooks.d.ts +8 -60
  29. package/dist/sdk/webhooks.d.ts.map +1 -1
  30. package/dist/sdk/webhooks.js.map +1 -1
  31. package/dist/tools/explore-markets.js +2 -2
  32. package/dist/tools/explore-markets.js.map +1 -1
  33. package/dist/tools/get-insider-radar.js +1 -1
  34. package/dist/tools/get-insider-radar.js.map +1 -1
  35. package/dist/tools/get-leaderboard.d.ts.map +1 -1
  36. package/dist/tools/get-leaderboard.js +5 -14
  37. package/dist/tools/get-leaderboard.js.map +1 -1
  38. package/dist/tools/get-market-flow.js +1 -1
  39. package/dist/tools/get-trader-pnl.js +3 -3
  40. package/dist/tools/get-trader-pnl.js.map +1 -1
  41. package/dist/tools/get-trader.js +3 -3
  42. package/dist/tools/get-trending-wallets.js +1 -1
  43. package/dist/tools/get-whale-trades.js +3 -3
  44. package/dist/tools/get-whale-trades.js.map +1 -1
  45. package/dist/tools/pick-of-the-day.js +2 -2
  46. package/dist/tools/read-parity.js +14 -14
  47. package/dist/tools/read-parity.js.map +1 -1
  48. package/dist/tools/trader-reads.js +1 -1
  49. package/package.json +5 -5
@@ -41,7 +41,7 @@
41
41
  * across at-least-once retries. Terminal states never restart on polling or
42
42
  * replay. The legacy synchronous method and its retry restriction remain.
43
43
  */
44
- import type { LargeTradesInsertedData, SharpMoneyFlowDetectedData, SuspiciousTradeFlaggedData, TraderSyncedData, WebhookEventData, WebhookEventType as ContractWebhookEventType } from "./schema.js";
44
+ import type { WebhookEventData, WebhookEventType as ContractWebhookEventType } from "./schema.js";
45
45
  /** Default replay tolerance; the published contract is 300 seconds. */
46
46
  export declare const SIGNATURE_TOLERANCE_SECONDS = 300;
47
47
  /** Header carrying the `v1=<hex>` signature. */
@@ -148,26 +148,6 @@ export interface WebhookEventEnvelope<TType extends WebhookEventType = WebhookEv
148
148
  data: TData;
149
149
  }
150
150
  export type { ExportJobCancelledData, ExportJobExpiredData, ExportJobFailedData, ExportJobReadyData, LargePositionsUpdatedData, LargeTradeInsertedV2Data, LargeTradesInsertedData, LiveSportsScoreEntry, LiveSportsUpdatedData, SharpMoneyFlowDetectedData, SuspiciousTradeFlaggedData, TraderSyncedData, WalletGradeChangedData, } from "./schema.js";
151
- /**
152
- * @deprecated Use `LargeTradesInsertedData`; renamed in #16304. The two event
153
- * spellings are one event with one payload, so this is an alias.
154
- */
155
- export type WhaleTradesInsertedData = LargeTradesInsertedData;
156
- /**
157
- * @deprecated Use `TraderSyncedData`; renamed in #16304. The two event
158
- * spellings are one event with one payload, so this is an alias.
159
- */
160
- export type WhaleTraderSyncedData = TraderSyncedData;
161
- /**
162
- * @deprecated Use `SuspiciousTradeFlaggedData`; renamed in #16301. The two
163
- * event spellings are one event with one payload, so this is an alias.
164
- */
165
- export type InsiderRadarFlagRaisedData = SuspiciousTradeFlaggedData;
166
- /**
167
- * @deprecated Use `SharpMoneyFlowDetectedData`; renamed in #16308. The two
168
- * event spellings are one event with one payload, so this is an alias.
169
- */
170
- export type SmartMoneyFlowDetectedData = SharpMoneyFlowDetectedData;
171
151
  /** One event type's delivery: the envelope around the payload the document declares for it. */
172
152
  type EventFor<TType extends WebhookEventType> = WebhookEventEnvelope<TType, WebhookEventData[TType]>;
173
153
  /**
@@ -177,44 +157,12 @@ type EventFor<TType extends WebhookEventType> = WebhookEventEnvelope<TType, Webh
177
157
  */
178
158
  export type LargeTradeInsertedV2Event = EventFor<"large_trade_inserted_v2">;
179
159
  export type LargeTradesInsertedEvent = EventFor<"large_trades_inserted">;
180
- /**
181
- * @deprecated Use `LargeTradesInsertedEvent`; renamed in #16304. This stays a
182
- * distinct envelope rather than an alias of it because the delivered `type`
183
- * discriminant is the spelling the endpoint registered: an endpoint subscribed
184
- * to `whale_trades_inserted` keeps receiving that literal, so narrowing on it
185
- * keeps working.
186
- */
187
- export type WhaleTradesInsertedEvent = EventFor<"whale_trades_inserted">;
188
160
  export type LiveSportsUpdatedEvent = EventFor<"live_sports_updated">;
189
161
  export type TraderSyncedEvent = EventFor<"trader_synced">;
190
- /**
191
- * @deprecated Use `TraderSyncedEvent`; renamed in #16304. This stays a
192
- * distinct envelope rather than an alias of it because the delivered `type`
193
- * discriminant is the spelling the endpoint registered: an endpoint subscribed
194
- * to `whale_trader_synced` keeps receiving that literal, so narrowing on it
195
- * keeps working.
196
- */
197
- export type WhaleTraderSyncedEvent = EventFor<"whale_trader_synced">;
198
162
  export type LargePositionsUpdatedEvent = EventFor<"large_positions_updated">;
199
163
  export type WalletGradeChangedEvent = EventFor<"wallet_grade_changed">;
200
164
  export type SuspiciousTradeFlaggedEvent = EventFor<"suspicious_trade_flagged">;
201
- /**
202
- * @deprecated Use `SuspiciousTradeFlaggedEvent`; renamed in #16301. This stays
203
- * a distinct envelope rather than an alias of it because the delivered `type`
204
- * discriminant is the spelling the endpoint registered: an endpoint subscribed
205
- * to `insider_radar_flag_raised` keeps receiving that literal, so narrowing on
206
- * it keeps working.
207
- */
208
- export type InsiderRadarFlagRaisedEvent = EventFor<"insider_radar_flag_raised">;
209
165
  export type SharpMoneyFlowDetectedEvent = EventFor<"sharp_money_flow_detected">;
210
- /**
211
- * @deprecated Use `SharpMoneyFlowDetectedEvent`; renamed in #16308. This stays
212
- * a distinct envelope rather than an alias of it because the delivered `type`
213
- * discriminant is the spelling the endpoint registered: an endpoint subscribed
214
- * to `smart_money_flow_detected` keeps receiving that literal, so narrowing on
215
- * it keeps working.
216
- */
217
- export type SmartMoneyFlowDetectedEvent = EventFor<"smart_money_flow_detected">;
218
166
  export type ExportJobReadyEvent = EventFor<"export_job_ready">;
219
167
  export type ExportJobFailedEvent = EventFor<"export_job_failed">;
220
168
  export type ExportJobExpiredEvent = EventFor<"export_job_expired">;
@@ -222,17 +170,17 @@ export type ExportJobCancelledEvent = EventFor<"export_job_cancelled">;
222
170
  /**
223
171
  * Discriminated union over every typed webhook delivery payload.
224
172
  *
225
- * `SuspiciousTradeFlaggedEvent` and `InsiderRadarFlagRaisedEvent` are both
226
- * members because the same event is delivered under whichever spelling the
227
- * endpoint registered (#16301); the `data` shape is identical. So are
228
- * `SharpMoneyFlowDetectedEvent` and `SmartMoneyFlowDetectedEvent` (#16308),
229
- * `LargeTradesInsertedEvent` and `WhaleTradesInsertedEvent`, and
230
- * `TraderSyncedEvent` and `WhaleTraderSyncedEvent` (#16304).
173
+ * The backend still delivers each September rename under whichever spelling
174
+ * the endpoint registered, with the same `data` shape, so the old literals
175
+ * stay members here: `whale_trades_inserted` and `whale_trader_synced`
176
+ * (#16304), `insider_radar_flag_raised` (#16301) and
177
+ * `smart_money_flow_detected` (#16308). 0.32.0 removed their named aliases
178
+ * (`WhaleTradesInsertedEvent` and the rest, #29350); narrow on `type` instead.
231
179
  *
232
180
  * One member for every name in `WEBHOOK_EVENT_TYPES`; the `satisfies` on that
233
181
  * list fails to compile when a name has none.
234
182
  */
235
- export type WebhookEvent = LargeTradeInsertedV2Event | LargeTradesInsertedEvent | WhaleTradesInsertedEvent | LiveSportsUpdatedEvent | TraderSyncedEvent | WhaleTraderSyncedEvent | LargePositionsUpdatedEvent | WalletGradeChangedEvent | SuspiciousTradeFlaggedEvent | InsiderRadarFlagRaisedEvent | SharpMoneyFlowDetectedEvent | SmartMoneyFlowDetectedEvent | ExportJobReadyEvent | ExportJobFailedEvent | ExportJobExpiredEvent | ExportJobCancelledEvent;
183
+ export type WebhookEvent = LargeTradeInsertedV2Event | LargeTradesInsertedEvent | EventFor<"whale_trades_inserted"> | LiveSportsUpdatedEvent | TraderSyncedEvent | EventFor<"whale_trader_synced"> | LargePositionsUpdatedEvent | WalletGradeChangedEvent | SuspiciousTradeFlaggedEvent | EventFor<"insider_radar_flag_raised"> | SharpMoneyFlowDetectedEvent | EventFor<"smart_money_flow_detected"> | ExportJobReadyEvent | ExportJobFailedEvent | ExportJobExpiredEvent | ExportJobCancelledEvent;
236
184
  /**
237
185
  * Parse a verified raw body into the typed delivery envelope. Call only AFTER
238
186
  * `verifySignature` passes (parsing first would let an unverified payload in).
@@ -1 +1 @@
1
- {"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../../sdk/src/webhooks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAIH,OAAO,KAAK,EACV,uBAAuB,EACvB,0BAA0B,EAC1B,0BAA0B,EAC1B,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,IAAI,wBAAwB,EAC7C,MAAM,aAAa,CAAC;AAErB,uEAAuE;AACvE,eAAO,MAAM,2BAA2B,MAAM,CAAC;AAE/C,gDAAgD;AAChD,eAAO,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C,CAAC;AACpE,CAAC;AAED,SAAS,iBAAiB,CAAC,SAAiB,EAAE,QAAgB;IAC5D,MAAM,YAAY,GAAG,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IACrD,4EAA4E;IAC5E,uDAAuD;IACvD,IAAI,YAAY,CAAC,MAAM,KAAK,QAAQ,CAAC,MAAM,EAAE,CAAC;QAC5C,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,eAAe,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;AACjD,CAAC;AAED,iCAAiC;AAEjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,uBAAuB;IACvB,uBAAuB;IACvB,qBAAqB;IACrB,eAAe;IACf,qBAAqB;IACrB,yBAAyB;IACzB,sBAAsB;IACtB,0BAA0B;IAC1B,2BAA2B;IAC3B,2EAA2E;IAC3E,qDAAqD;IACrD,2EAA2E;IAC3E,sDAAsD;IACtD,2BAA2B;IAC3B,2BAA2B;IAC3B,kBAAkB;IAClB,mBAAmB;IACnB,oBAAoB;IACpB,sBAAsB;IACtB,sEAAsE;IACtE,qEAAqE;IACrE,yBAAyB;CACyB,CAAC;AAmHrD;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAAC,IAAY;IAC5C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAiB,CAAC;AAC1C,CAAC"}
@@ -13,7 +13,7 @@ export const exploreMarketsParamsSchema = {
13
13
  platform: z.enum(["polymarket"]).default("polymarket")
14
14
  .describe("Explore is Polymarket-only; accepted for backward-compatibility and does not change the result set"),
15
15
  sort: z.enum(["trending", "hot", "expiring", "large_trades", "whales", "volume", "newest"]).default("trending")
16
- .describe("Discovery sort order. large_trades ranks by large-trade activity; whales is its deprecated spelling and selects the same order."),
16
+ .describe("Discovery sort order. large_trades ranks by large-trade activity; whales is its deprecated spelling and selects the same order until its 2027-02-01 sunset."),
17
17
  q: z.string().max(MAX_EXPLORE_SEARCH_QUERY_CHARS).optional()
18
18
  .describe(`Keyword search against market titles, up to ${String(MAX_EXPLORE_SEARCH_QUERY_CHARS)} characters before whitespace trimming`),
19
19
  };
@@ -47,7 +47,7 @@ Args:
47
47
  - category (string, optional): Filter by market category (case-insensitive): a sport or esports bucket such as Basketball or Esports; any other category is rejected
48
48
  - status (string, optional): Filter by status: "active", "closed", or "all"
49
49
  - platform (string, optional): Explore is Polymarket-only; accepted for backward-compatibility, does not change the result set
50
- - sort (string, optional): Sort by "trending", "hot", "expiring", "large_trades" (deprecated spelling "whales"), "volume", or "newest"
50
+ - sort (string, optional): Sort by "trending", "hot", "expiring", "large_trades" (deprecated spelling "whales" until its 2027-02-01 sunset), "volume", or "newest"
51
51
  - q (string, optional): Keyword search against market titles, up to ${String(MAX_EXPLORE_SEARCH_QUERY_CHARS)} characters before whitespace trimming
52
52
 
53
53
  Returns: Market discovery entries, facets, and pagination metadata.`,
@@ -1 +1 @@
1
- {"version":3,"file":"explore-markets.js","sourceRoot":"","sources":["../../src/tools/explore-markets.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEnD,MAAM,8BAA8B,GAAG,EAAE,CAAC;AAE1C,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;SAC/C,QAAQ,CAAC,0CAA0C,CAAC;IACvD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;SAC1B,QAAQ,CAAC,0CAA0C,CAAC;IACvD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EA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,UAAU,yBAAyB,CAAC,QAOzC;IAQC,2EAA2E;IAC3E,yEAAyE;IACzE,OAAO;QACL,GAAG,UAAU,CAAC,QAAQ,CAAC;QACvB,IAAI,EAAE,QAAQ,CAAC,IAAI;KACpB,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,MAAiB,EAAE,MAAiB;IACzE,MAAM,CAAC,YAAY,CACjB,iBAAiB,EACjB;QACE,KAAK,EAAE,iBAAiB;QACxB,WAAW,EAAE;;;;;;;;;wEASqD,MAAM,CAAC,8BAA8B,CAAC;;oEAE1C;QAC9D,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,0BAA0B,CAAC;QACjD,WAAW,EAAE;YACX,YAAY,EAAE,IAAI;YAClB,eAAe,EAAE,KAAK;YACtB,cAAc,EAAE,IAAI;YACpB,aAAa,EAAE,KAAK;SACrB;KACF,EACD,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAClB,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,OAAO,CACnC,yBAAyB,EACzB,yBAAyB,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,CAC1E,CAAC;YAEF,OAAO,EAAE,CAAC,yBAAyB,CAAC,QAAQ,CAAC,CAAC,CAAC;QACjD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC;QACrB,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -7,7 +7,7 @@ import { SUSPICIOUS_TRADES_DESCRIPTION, suspiciousTradesInputSchema, } from "./g
7
7
  export function registerGetInsiderRadar(server, client) {
8
8
  server.registerTool("get_insider_radar", {
9
9
  title: "Get Insider Radar Flags",
10
- description: `Deprecated alias of get_suspicious_trades (#16301), kept live; it calls the deprecated /api/v1/insider-radar path. ${SUSPICIOUS_TRADES_DESCRIPTION}`,
10
+ description: `Deprecated alias of get_suspicious_trades (#16301), kept live until its 2027-02-01 sunset (#29351), then removed; it calls the deprecated /api/v1/insider-radar path. ${SUSPICIOUS_TRADES_DESCRIPTION}`,
11
11
  inputSchema: z.object(suspiciousTradesInputSchema),
12
12
  annotations: {
13
13
  readOnlyHint: true,
@@ -1 +1 @@
1
- {"version":3,"file":"get-insider-radar.js","sourceRoot":"","sources":["../../src/tools/get-insider-radar.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,+EAA+E;AAC/E,8DAA8D;AAG9D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EACL,6BAA6B,EAC7B,2BAA2B,GAC5B,MAAM,4BAA4B,CAAC;AAEpC,MAAM,UAAU,uBAAuB,CAAC,MAAiB,EAAE,MAAiB;IAC1E,MAAM,CAAC,YAAY,CACjB,mBAAmB,EACnB;QACE,KAAK,EAAE,yBAAyB;QAChC,WAAW,EAAE,sHAAsH,6BAA6B,EAAE;QAClK,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,2BAA2B,CAAC;QAClD,WAAW,EAAE;YACX,YAAY,EAAE,IAAI;YAClB,eAAe,EAAE,KAAK;YACtB,cAAc,EAAE,IAAI;YACpB,aAAa,EAAE,KAAK;SACrB;KACF,EACD,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,EAAE;QAC9D,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,uBAAuB,EAAE;gBAC7D,KAAK;gBACL,MAAM;gBACN,aAAa;gBACb,QAAQ;gBACR,IAAI;aACL,EAAE,SAAS,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;YAC7C,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AC,QAAQ,CAAC,CAAC,CAAC;QAClC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC;QACrB,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-leaderboard.d.ts","sourceRoot":"","sources":["../../src/tools/get-leaderboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AA4BzC,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,GAAG,IAAI,CAkDjF"}
1
+ {"version":3,"file":"get-leaderboard.d.ts","sourceRoot":"","sources":["../../src/tools/get-leaderboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAmBzC,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,GAAG,IAAI,CAkDjF"}
@@ -1,26 +1,17 @@
1
1
  import { z } from "zod";
2
2
  import { fail, listResult } from "./result.js";
3
3
  /**
4
- * The strategies `GET /api/v1/leaderboard` accepts (`STRATEGY_ENUM` in
4
+ * The strategies `GET /api/v1/leaderboard` publishes (`STRATEGY_ENUM` in
5
5
  * `backend/src/api_v1/handlers/leaderboard.rs`, the spec's enum, and the SDK's
6
- * `LEADERBOARD_STRATEGIES`). Any other value is a 400 at the route, so the
7
- * schema refuses it first (#16548).
6
+ * `LEADERBOARD_STRATEGIES`). Any other value is a 400 at the route, except the
7
+ * ten retired archetype keys it still accepts as filters that match no wallet
8
+ * (#29628). The schema accepts only the published values (#16548).
8
9
  */
9
10
  const LEADERBOARD_STRATEGIES = [
10
- "accumulator",
11
- "algo_trader",
12
- "arbitrageur",
13
11
  "category_focused",
14
- "directional",
15
12
  "diversified",
16
- "event_driven",
17
13
  "high_activity",
18
- "market_maker",
19
14
  "mixed",
20
- "momentum",
21
- "scalper",
22
- "speculator",
23
- "swing_trader",
24
15
  "two_sided",
25
16
  "unclassified",
26
17
  ];
@@ -33,7 +24,7 @@ Args:
33
24
  - limit (number, 1-100, default 20): Max results per page
34
25
  - cursor (string, optional): Pagination cursor from previous response
35
26
  - category (string, optional): Filter by category slug
36
- - strategy (string, optional): Current styles: two_sided, category_focused, high_activity, diversified, mixed, unclassified. Historical filters remain accepted: accumulator, algo_trader, arbitrageur, directional, event_driven, market_maker, momentum, scalper, speculator, swing_trader
27
+ - strategy (string, optional): Trading style: two_sided, category_focused, high_activity, diversified, mixed, unclassified
37
28
 
38
29
  Returns: Ranked list of traders with grade, score, P&L, volume, win rate, and strategy.`,
39
30
  inputSchema: z.object({
@@ -1 +1 @@
1
- {"version":3,"file":"get-leaderboard.js","sourceRoot":"","sources":["../../src/tools/get-leaderboard.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE/C;;;;;GAKG;AACH,MAAM,sBAAsB,GAAG;IAC7B,aAAa;IACb,aAAa;IACb,aAAa;IACb,kBAAkB;IAClB,aAAa;IACb,aAAa;IACb,cAAc;IACd,eAAe;IACf,cAAc;IACd,OAAO;IACP,UAAU;IACV,SAAS;IACT,YAAY;IACZ,cAAc;IACd,WAAW;IACX,cAAc;CACN,CAAC;AAEX,MAAM,UAAU,sBAAsB,CAAC,MAAiB,EAAE,MAAiB;IACzE,MAAM,CAAC,YAAY,CACjB,iBAAiB,EACjB;QACE,KAAK,EAAE,wBAAwB;QAC/B,WAAW,EAAE;;;;;;;;wFAQqE;QAClF,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;YACpB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EA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AAE,EAAE,GAAG,EAAE,EAAE;QACnD,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,qBAAqB,EAAE;gBAC3D,KAAK;gBACL,MAAM;gBACN,QAAQ;gBACR,QAAQ;aACT,EAAE,SAAS,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;YAE7C,MAAM,MAAM,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC;YAEpC,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC;aAC5E,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC;QACrB,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -37,7 +37,7 @@ Args:
37
37
  - timeframe (string, optional): Lookback window: "1h", "4h", "24h", "7d" (default "24h")
38
38
 
39
39
  Returns: Market info, the flow under sharp_money (net_flow_usd, direction YES/NO, large_trade_count, volumes) with smart_money as its deprecated byte-identical alias, and the top 5 graded trader positions.`;
40
- const MARKET_INTEL_DESCRIPTION = `Deprecated alias of get_market_flow (#16312), kept live; it calls the deprecated /api/v1/market/{condition_id}/intel path, whose envelope keeps object: market_intel. Sharp money flow analysis for a specific prediction market. Shows net flow direction, whale trade count, buy/sell volumes, and top graded trader positions.
40
+ const MARKET_INTEL_DESCRIPTION = `Deprecated alias of get_market_flow (#16312), kept live until its 2027-02-01 sunset (#29351), then removed; it calls the deprecated /api/v1/market/{condition_id}/intel path, whose envelope keeps object: market_intel. Sharp money flow analysis for a specific prediction market. Shows net flow direction, whale trade count, buy/sell volumes, and top graded trader positions.
41
41
 
42
42
  Use search_markets first to find the condition_id for a market.
43
43
 
@@ -6,16 +6,16 @@ export const PNL_SECTIONS = ["entries", "stats", "monthly", "year_totals", "draw
6
6
  export function registerGetTraderPnl(server, client) {
7
7
  server.registerTool("get_trader_pnl", {
8
8
  title: "Get Trader P&L Time Series",
9
- description: `Get a trader's daily P&L time series and pre-derived stats from the precomputed daily_pnl read model. Returns entries (daily cumulative P&L), period stats (all/90d/30d/7d), monthly aggregation, per-year totals, and the drawdown series.
9
+ description: `Get a trader's sports and esports daily P&L time series and pre-derived stats. Returns entries (daily realized P&L and its running sum), period stats (all/90d/30d/7d), monthly aggregation, per-year totals, the drawdown series, series_status, and realized: how the days add up to the wallet's Sports P&L.
10
10
 
11
- Reads the refreshed read model, not a per-request equity replay. A resolved trader with no daily P&L returns an empty structured object (HTTP 200); an unknown address returns not found. Covers all Polymarket markets, not only sports and esports: daily_change is Polymarket's own wallet-wide P&L figure, which cannot be split per market.
11
+ A day's daily_change is the realized P&L of the wallet's sports and esports markets dated to that UTC day (the resolution day, else the last trade day), so the days plus realized.undated_pnl equal realized.realized_pnl, the Sports P&L on the trader object. series_status pending means the series is not computed yet: entries are empty and never mean zero. A resolved trader with no sports or esports day returns an empty structured object (HTTP 200); an unknown address returns not found.
12
12
 
13
13
  Args:
14
14
  - address (string, required): Wallet address (0x...), username, or trd_-prefixed trader id
15
15
  - from / to (string, optional): Inclusive UTC calendar dates (YYYY-MM-DD) bounding the daily series (entries and drawdown); stats, monthly and year_totals stay defined over the full history
16
16
  - sections (string[], optional): Which sections to return: "entries", "stats", "monthly", "year_totals", "drawdown"; omit for all five. A section left out is absent, and an unrecognized name is an error, never ignored
17
17
 
18
- Returns: Structured trader P&L object (entries, stats, monthly, year_totals, drawdown). A request that sent from, to or sections also carries view: the bounds applied, the sections present, entries_total, entries_in_window and the pre-window anchor.`,
18
+ Returns: Structured trader P&L object (entries, stats, monthly, year_totals, drawdown, freshness_at, series_status, realized). A request that sent from, to or sections also carries view: the bounds applied, the sections present, entries_total, entries_in_window and the pre-window anchor.`,
19
19
  inputSchema: z.object({
20
20
  address: traderPnlLookupSchema
21
21
  .describe("Wallet address (0x...), username, or trd_-prefixed trader id"),
@@ -1 +1 @@
1
- {"version":3,"file":"get-trader-pnl.js","sourceRoot":"","sources":["../../src/tools/get-trader-pnl.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAEvE,iGAAiG;AACjG,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,UAAU,CAAU,CAAC;AAEhG,MAAM,UAAU,oBAAoB,CAAC,MAAiB,EAAE,MAAiB;IACvE,MAAM,CAAC,YAAY,CACjB,gBAAgB,EAChB;QACE,KAAK,EAAE,4BAA4B;QACnC,WAAW,EAAE;;;;;;;;;0PASuO;QACpP,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;YACpB,OAAO,EAAE,qBAAqB;iBAC3B,QAAQ,CAAC,8DAA8D,CAAC;YAC3E,mEAAmE;YACnE,mEAAmE;YACnE,+DAA+D;YAC/D,wCAAwC;YACxC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,QAAQ,EAAE;iBACrD,QAAQ,CAAC,oLAAoL,CAAC;YACjM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,QAAQ,EAAE;iBACnD,QAAQ,CAAC,8JAA8J,CAAC;YAC3K,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,QAAQ,EAAE;iBAC/C,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AAI,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,GAAG,EAAE,EAAE;QAC7C,IAAI,CAAC;YACH,MAAM,YAAY,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;YACpC,oEAAoE;YACpE,8DAA8D;YAC9D,MAAM,cAAc,GAAG,QAAQ,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC;gBACpD,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,GAAG,QAAQ,CAAC,EAAE;gBAC7B,CAAC,CAAC,SAAS,CAAC;YACd,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,OAAO,CACnC,kBAAkB,kBAAkB,CAAC,YAAY,CAAC,MAAM,EACxD,EAAE,IAAI,EAAE,EAAE,EAAE,EACZ,cAAc,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,CAC9C,CAAC;YAEF,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC;aAC5G,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC;QACrB,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -4,19 +4,19 @@ export const traderLookupSchema = z.string().trim().min(1).max(100);
4
4
  export function registerGetTrader(server, client) {
5
5
  server.registerTool("get_trader", {
6
6
  title: "Get trader",
7
- description: `Look up a prediction market trader by wallet address or username. Returns grade (S through F), P&L breakdown, win rate, and volume.
7
+ description: `Look up a prediction market trader by wallet address or username. Returns grade (S through F) and the sports and esports record: realized P&L (pnl.in_scope), markets traded, win rate, and volume. Wallet figures cover sports and esports markets only.
8
8
 
9
9
  Optional expand fields for heavier data:
10
10
  - strategy: Trading strategy classification
11
11
  - categories: Per-category performance breakdown
12
- - quant_metrics: curated advanced metrics (copy_score and smart_score 0-100, sharpe_30d, sharpe_7d, profit_factor, edge_consistency, sharpe_percentile, pf_percentile, consistency_percentile); emitted only for a computed row strictly under six hours old, otherwise omitted; each present value is a number or null
12
+ - quant_metrics: retired since 2026-10-27; accepted and never returned, because its metrics covered every market of the wallet. Read pnl.in_scope or get_trader_pnl for the sports and esports record
13
13
  - trust: Per-field provenance (source, freshness, reconciliation, completeness) for grade, P&L, and stats
14
14
 
15
15
  A wallet address with no trader yet returns sync_status "unknown" (not an error). A username or trader id that matches no trader is a not_found error.
16
16
 
17
17
  Args:
18
18
  - address (string, required): Ethereum wallet address (0x...) or trader username
19
- - expand (string[], optional): Heavy fields to include: "strategy", "categories", "quant_metrics", "trust"
19
+ - expand (string[], optional): Heavy fields to include: "strategy", "categories", "trust" ("quant_metrics" is accepted and returns nothing)
20
20
  - max_age_s (integer, optional, 0 or more): Freshness ceiling in seconds. The call answers only when data_quality.status is fresh and data_quality.as_of is no older than this; otherwise it fails with reason freshness_ceiling_unsatisfied (HTTP 409). Nothing is refreshed to meet it
21
21
 
22
22
  Returns: Trader profile with grade, P&L, stats, and optional expanded fields. The trader carries data_quality: status, as_of (the oldest clock the body rests on) and field_groups. fresh means tracked and clocked, not current: compare as_of with your own tolerance. unknown means this read cannot date that group, never that it is recent.`,
@@ -18,7 +18,7 @@ export function buildTrendingWalletsParams(args) {
18
18
  export function registerGetTrendingWallets(server, client) {
19
19
  server.registerTool("get_trending_wallets", {
20
20
  title: "List Trending Wallets",
21
- description: `List wallets ranked by trailing-window realized P&L (Polymarket-only discovery). Each row carries the window P&L, volume, distinct markets, grade, hot-streak tier, and a shape-only daily P&L series (per-day deltas from the provider curve; dates ascending, gaps are gaps — NOT zero-filled, and not guaranteed to sum to the window P&L). Cursor-paginated by window P&L descending.
21
+ description: `List wallets ranked by trailing-window realized P&L (Polymarket-only discovery). Each row carries the window P&L, volume, distinct markets, grade, hot-streak tier, and its sports and esports realized P&L by day (one point per UTC day of the window, dates ascending, 0 on a day with none; empty while daily_pnl_series_status is pending, which never means zero; it does not sum to the window P&L, which counts every market). Cursor-paginated by window P&L descending.
22
22
 
23
23
  A cold read model returns a 503 retry-after (warming), never a 500 or fabricated ranking.
24
24
 
@@ -64,8 +64,8 @@ Args:
64
64
  - sort (string, optional): "recent" (default, newest first) or "market_volume_share" (biggest share of its market first, over the last 30 days, or from the from bound on the history tools; a cursor is bound to the order it was minted in)
65
65
  - since (string, optional): wt_ id of a trade a previous call returned; answers only the trades recorded after it, in commit order, so a trade recorded late still arrives. Poll with the first trade of the last answer that had trades and deduplicate on id; recent order only
66
66
 
67
- Returns: List of large trades with trader info, market context, size, side, price, current review_score (signal_score is its deprecated twin, same value) and trader grade, point-in-time recorded_review_score (recorded_signal_score is its deprecated twin; null before 2026-08-03) and trader grade_at_trade with grade_at_trade_status (unknown before 2026-09-19), optional suspicion_score, and optional suspicion_track. A null suspicion track means the persisted legacy row has no track label. The page carries data_quality beside data: status, as_of (the oldest clock the page rests on) and field_groups. fresh means tracked and clocked, not current: compare as_of with your own tolerance. unknown means this read cannot date that group, never that it is recent.`;
68
- const WHALE_TRADES_DESCRIPTION = `Deprecated alias of get_large_trades (#16304), kept live; it calls the deprecated /api/v1/whale-trades path. Get recent large trades from graded prediction market traders. Each trade includes a 0-1 review score, persisted suspicion facts, trader grade, and market context. Cursor-paginated, newest first.
67
+ Returns: List of large trades with trader info, market context, size, side, price, current review_score (signal_score is its deprecated twin, same value, until its 2027-02-01 sunset) and trader grade, point-in-time recorded_review_score (recorded_signal_score is its deprecated twin until its 2027-02-01 sunset; null before 2026-08-03) and trader grade_at_trade with grade_at_trade_status (unknown before 2026-09-19), optional suspicion_score, and optional suspicion_track. A null suspicion track means the persisted legacy row has no track label. The page carries data_quality beside data: status, as_of (the oldest clock the page rests on) and field_groups. fresh means tracked and clocked, not current: compare as_of with your own tolerance. unknown means this read cannot date that group, never that it is recent.`;
68
+ const WHALE_TRADES_DESCRIPTION = `Deprecated alias of get_large_trades (#16304), kept live until its 2027-02-01 sunset (#29351), then removed; it calls the deprecated /api/v1/whale-trades path. Get recent large trades from graded prediction market traders. Each trade includes a 0-1 review score, persisted suspicion facts, trader grade, and market context. Cursor-paginated, newest first.
69
69
 
70
70
  Args:
71
71
  - limit (number, 1-100, default 20): Max results per page
@@ -78,7 +78,7 @@ Args:
78
78
  - sort (string, optional): "recent" (default, newest first) or "market_volume_share" (biggest share of its market first, over the last 30 days, or from the from bound on the history tools; a cursor is bound to the order it was minted in)
79
79
  - since (string, optional): wt_ id of a trade a previous call returned; answers only the trades recorded after it, in commit order, so a trade recorded late still arrives. Poll with the first trade of the last answer that had trades and deduplicate on id; recent order only
80
80
 
81
- Returns: List of whale trades with trader info, market context, size, side, price, current review_score (signal_score is its deprecated twin, same value) and trader grade, point-in-time recorded_review_score (recorded_signal_score is its deprecated twin; null before 2026-08-03) and trader grade_at_trade with grade_at_trade_status (unknown before 2026-09-19), optional suspicion_score, and optional suspicion_track. A null suspicion track means the persisted legacy row has no track label. The page carries data_quality beside data: status, as_of (the oldest clock the page rests on) and field_groups. fresh means tracked and clocked, not current: compare as_of with your own tolerance. unknown means this read cannot date that group, never that it is recent.`;
81
+ Returns: List of whale trades with trader info, market context, size, side, price, current review_score (signal_score is its deprecated twin, same value, until its 2027-02-01 sunset) and trader grade, point-in-time recorded_review_score (recorded_signal_score is its deprecated twin until its 2027-02-01 sunset; null before 2026-08-03) and trader grade_at_trade with grade_at_trade_status (unknown before 2026-09-19), optional suspicion_score, and optional suspicion_track. A null suspicion track means the persisted legacy row has no track label. The page carries data_quality beside data: status, as_of (the oldest clock the page rests on) and field_groups. fresh means tracked and clocked, not current: compare as_of with your own tolerance. unknown means this read cannot date that group, never that it is recent.`;
82
82
  export function registerGetLargeTrades(server, client) {
83
83
  registerTradeList(server, client, {
84
84
  name: "get_large_trades",
@@ -1 +1 @@
1
- {"version":3,"file":"get-whale-trades.js","source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PickOfTheDay(server, client) {
18
18
  server.registerTool("get_pick_of_the_day", {
19
19
  title: "Get Pick of the Day",
20
- description: `Get today's published Pick of the Day selections and their recorded facts. Pro opens five selections in total: the explicitly designated free selection plus the first four non-free selections in publication order. Max opens every available daily selection, up to twenty. Read entitled \`picks\` in \`publication_order\` order; use stable decimal-string \`pick_id\` for identity, not deprecated \`pick_rank\`. \`is_free_selection\` designates account access; \`supersedes_pick_id\` is deprecated and always null. \`locked_picks\` lists extra unresolved slots with only pick_rank and required_tier=max; game identity, identifying clocks and backed facts are omitted. Each full pick carries the matchup, backed side (pick_outcome_label), recorded publication price and return on the flat $1,000 stake (\`stake_usd\`, \`return_usd\`; \`return_per_100\` keeps the literal $100 basis), available holder facts, top grade, CLV capture status and backend-provided thesis. \`scheduled_picks\` contains entitled scheduled slots with release_at and kickoff; unauthorized slots appear in identity-free locked_picks instead. No market identity is revealed before publication. Withdrawn picks are omitted from current and dated recommendations, the archive and its statistics, even after market settlement. The public ledger retains every published commitment under its original identity and proof bytes.
20
+ description: `Get today's published Pick of the Day selections and their recorded facts. Pro opens five selections in total: the explicitly designated free selection plus the first four non-free selections in publication order. Max opens every available daily selection, up to twenty-five. Read entitled \`picks\` in \`publication_order\` order; use stable decimal-string \`pick_id\` for identity, not deprecated \`pick_rank\`. \`is_free_selection\` designates account access; \`supersedes_pick_id\` is deprecated and always null. \`locked_picks\` lists extra unresolved slots with only pick_rank and required_tier=max; game identity, identifying clocks and backed facts are omitted. Each full pick carries the matchup, backed side (pick_outcome_label), recorded publication price and return on the flat $1,000 stake (\`stake_usd\`, \`return_usd\`; \`return_per_100\` keeps the literal $100 basis), available holder facts, top grade, CLV capture status and backend-provided thesis. \`scheduled_picks\` contains entitled scheduled slots with release_at and kickoff; unauthorized slots appear in identity-free locked_picks instead. No market identity is revealed before publication. Withdrawn picks are omitted from current and dated recommendations, the archive and its statistics, even after market settlement. The public ledger retains every published commitment under its original identity and proof bytes.
21
21
 
22
22
  When no active pick is available, the tool returns reason pick_not_released and retry_at. Schedule the next read from the returned retry guidance or an entitled scheduled slot's release_at instead of polling. An entitled published pick whose holder proof is not readable appears in \`proof_pending_picks\` (pick_rank, release_at, kickoff, retry_at), while \`picks\` contains readable picks. The tool returns read_model_warming only when no entitled published pick has readable proof. If only Max-locked selections have published, a successful state=none response carries picks=[], pick_count=0, locked_picks and an upgrade action.
23
23
 
@@ -41,7 +41,7 @@ Returns: The published pick set for the current product day (America/New_York),
41
41
  export function registerGetPickOfTheDayArchive(server, client) {
42
42
  server.registerTool("get_pick_of_the_day_archive", {
43
43
  title: "Get Pick of the Day Archive",
44
- description: `Get the Pick of the Day track record: each published pick that has not been withdrawn, with its outcome (win, loss, void or pending), recorded publication price, unit score and CLV fields, plus the rolling hit rate (wins / decided; void and pending excluded) and flat-$1,000-stake profit and ROI (\`hit_rate.stake_usd\` names the stake). The actual API key tier controls unresolved access: Pro opens five selections in total, the designated free selection plus the first four non-free selections in publication order; Max opens every available daily selection, up to twenty. Every resolved outcome (win/loss/void) is public. Unentitled pending rows retain only slot/date/outcome and required_tier with backed_side_locked=true; matchup, category, league, image, publication clock and backed facts are omitted. The archive retains the included historical picks, losses included. Withdrawn recommendations are omitted from archive rows and every aggregate, including the cumulative series, even after market settlement. The public ledger retains every published commitment under its original pick_id and proof bytes.
44
+ description: `Get the Pick of the Day track record: each published pick that has not been withdrawn, with its outcome (win, loss, void or pending), recorded publication price, unit score and CLV fields, plus the rolling hit rate (wins / decided; void and pending excluded) and flat-$1,000-stake profit and ROI (\`hit_rate.stake_usd\` names the stake). The actual API key tier controls unresolved access: Pro opens five selections in total, the designated free selection plus the first four non-free selections in publication order; Max opens every available daily selection, up to twenty-five. Every resolved outcome (win/loss/void) is public. Unentitled pending rows retain only slot/date/outcome and required_tier with backed_side_locked=true; matchup, category, league, image, publication clock and backed facts are omitted. The archive retains the included historical picks, losses included. Withdrawn recommendations are omitted from archive rows and every aggregate, including the cumulative series, even after market settlement. The public ledger retains every published commitment under its original pick_id and proof bytes.
45
45
 
46
46
  Args: none
47
47
 
@@ -15,7 +15,7 @@ export function registerBatchGetTraders(server, client) {
15
15
 
16
16
  Args:
17
17
  - traders (string[], required): Wallet addresses or known usernames
18
- - expand (string[], optional): Heavy fields to include for every trader: "strategy", "categories", "quant_metrics", "trust" (per-item quant_metrics is omitted unless its computed row is strictly under six hours old; trust is per-field provenance for grade, P&L, and stats)
18
+ - expand (string[], optional): Heavy fields to include for every trader: "strategy", "categories", "trust" (trust is per-field provenance for grade, P&L, and stats; "quant_metrics" is accepted and returns nothing since 2026-10-27)
19
19
 
20
20
  Returns: Ordered batch trader results with per-item success or error details. Each successful item's trader carries data_quality: status, as_of and field_groups; fresh means tracked and clocked, not current, and unknown means undatable, never recent.`,
21
21
  inputSchema: z.object({
@@ -99,7 +99,7 @@ Args:
99
99
  - min_market_volume_share (number, 0-1, optional): Keep only trades whose market_volume_share is known and at least this; a fraction, so 0.01 is one percent of the market's traded volume
100
100
  - sort (string, optional): "recent" (default, newest first) or "market_volume_share" (biggest share of its market first, over the last 30 days, or from the from bound on the history tools; a cursor is bound to the order it was minted in)
101
101
 
102
- Returns: Historical large trades with replay metadata, current review_score (signal_score is its deprecated twin, same value) and trader grade, point-in-time recorded_review_score (recorded_signal_score is its deprecated twin; null before 2026-08-03) and trader grade_at_trade with grade_at_trade_status (unknown before 2026-09-19), optional suspicion_score, and optional suspicion_track. A null suspicion track means the persisted legacy row has no track label. The page carries data_quality beside data: status, as_of (the oldest clock the page rests on) and field_groups. fresh means tracked and clocked, not current: compare as_of with your own tolerance. unknown means this read cannot date that group, never that it is recent.`,
102
+ Returns: Historical large trades with replay metadata, current review_score (signal_score is its deprecated twin, same value, until its 2027-02-01 sunset) and trader grade, point-in-time recorded_review_score (recorded_signal_score is its deprecated twin until its 2027-02-01 sunset; null before 2026-08-03) and trader grade_at_trade with grade_at_trade_status (unknown before 2026-09-19), optional suspicion_score, and optional suspicion_track. A null suspicion track means the persisted legacy row has no track label. The page carries data_quality beside data: status, as_of (the oldest clock the page rests on) and field_groups. fresh means tracked and clocked, not current: compare as_of with your own tolerance. unknown means this read cannot date that group, never that it is recent.`,
103
103
  });
104
104
  }
105
105
  /** Deprecated spelling of get_large_trades_history (#16304). */
@@ -108,7 +108,7 @@ export function registerGetWhaleTradesHistory(server, client) {
108
108
  name: "get_whale_trades_history",
109
109
  title: "Replay Historical Whale Trades",
110
110
  path: "/api/v1/whale-trades/history",
111
- description: `Deprecated alias of get_large_trades_history (#16304), kept live; it calls the deprecated /api/v1/whale-trades/history path. Replay historical whale trades from local whale_alerts rows. Supports cursor pagination plus condition, trader, category, grade, platform, suspicion, market-share, and RFC3339 from/to filters, and a market_volume_share sort.
111
+ description: `Deprecated alias of get_large_trades_history (#16304), kept live until its 2027-02-01 sunset (#29351), then removed; it calls the deprecated /api/v1/whale-trades/history path. Replay historical whale trades from local whale_alerts rows. Supports cursor pagination plus condition, trader, category, grade, platform, suspicion, market-share, and RFC3339 from/to filters, and a market_volume_share sort.
112
112
 
113
113
  Args:
114
114
  - limit (number, 1-100, default 20)
@@ -124,7 +124,7 @@ Args:
124
124
  - min_market_volume_share (number, 0-1, optional): Keep only trades whose market_volume_share is known and at least this; a fraction, so 0.01 is one percent of the market's traded volume
125
125
  - sort (string, optional): "recent" (default, newest first) or "market_volume_share" (biggest share of its market first, over the last 30 days, or from the from bound on the history tools; a cursor is bound to the order it was minted in)
126
126
 
127
- Returns: Historical whale trades with replay metadata, current review_score (signal_score is its deprecated twin, same value) and trader grade, point-in-time recorded_review_score (recorded_signal_score is its deprecated twin; null before 2026-08-03) and trader grade_at_trade with grade_at_trade_status (unknown before 2026-09-19), optional suspicion_score, and optional suspicion_track. A null suspicion track means the persisted legacy row has no track label. The page carries data_quality beside data: status, as_of (the oldest clock the page rests on) and field_groups. fresh means tracked and clocked, not current: compare as_of with your own tolerance. unknown means this read cannot date that group, never that it is recent.`,
127
+ Returns: Historical whale trades with replay metadata, current review_score (signal_score is its deprecated twin, same value, until its 2027-02-01 sunset) and trader grade, point-in-time recorded_review_score (recorded_signal_score is its deprecated twin until its 2027-02-01 sunset; null before 2026-08-03) and trader grade_at_trade with grade_at_trade_status (unknown before 2026-09-19), optional suspicion_score, and optional suspicion_track. A null suspicion track means the persisted legacy row has no track label. The page carries data_quality beside data: status, as_of (the oldest clock the page rests on) and field_groups. fresh means tracked and clocked, not current: compare as_of with your own tolerance. unknown means this read cannot date that group, never that it is recent.`,
128
128
  });
129
129
  }
130
130
  function registerTradeDetail(server, client, tool) {
@@ -157,7 +157,7 @@ export function registerGetLargeTrade(server, client) {
157
157
  Args:
158
158
  - id (string, required): Large trade ID such as wt_123 or 123
159
159
 
160
- Returns: One large trade with trader info, market context, size, side, price, current review_score (signal_score is its deprecated twin, same value) and trader grade, point-in-time recorded_review_score (recorded_signal_score is its deprecated twin; null before 2026-08-03) and trader grade_at_trade with grade_at_trade_status (unknown before 2026-09-19), optional suspicion_score, and optional suspicion_track. A null suspicion track means the persisted legacy row has no track label.`,
160
+ Returns: One large trade with trader info, market context, size, side, price, current review_score (signal_score is its deprecated twin, same value, until its 2027-02-01 sunset) and trader grade, point-in-time recorded_review_score (recorded_signal_score is its deprecated twin until its 2027-02-01 sunset; null before 2026-08-03) and trader grade_at_trade with grade_at_trade_status (unknown before 2026-09-19), optional suspicion_score, and optional suspicion_track. A null suspicion track means the persisted legacy row has no track label.`,
161
161
  });
162
162
  }
163
163
  /** Deprecated spelling of get_large_trade (#16304). */
@@ -166,12 +166,12 @@ export function registerGetWhaleTrade(server, client) {
166
166
  name: "get_whale_trade",
167
167
  title: "Get Whale Trade",
168
168
  path: "/api/v1/whale-trades",
169
- description: `Deprecated alias of get_large_trade (#16304), kept live; it calls the deprecated /api/v1/whale-trades/{id} path, whose envelope keeps object: whale_trade. Read one whale trade by ID. Accepts either the wt_ ID returned by whale-trade list/history responses or the raw numeric whale_alerts.id.
169
+ description: `Deprecated alias of get_large_trade (#16304), kept live until its 2027-02-01 sunset (#29351), then removed; it calls the deprecated /api/v1/whale-trades/{id} path, whose envelope keeps object: whale_trade. Read one whale trade by ID. Accepts either the wt_ ID returned by whale-trade list/history responses or the raw numeric whale_alerts.id.
170
170
 
171
171
  Args:
172
172
  - id (string, required): Whale trade ID such as wt_123 or 123
173
173
 
174
- Returns: One whale trade with trader info, market context, size, side, price, current review_score (signal_score is its deprecated twin, same value) and trader grade, point-in-time recorded_review_score (recorded_signal_score is its deprecated twin; null before 2026-08-03) and trader grade_at_trade with grade_at_trade_status (unknown before 2026-09-19), optional suspicion_score, and optional suspicion_track. A null suspicion track means the persisted legacy row has no track label.`,
174
+ Returns: One whale trade with trader info, market context, size, side, price, current review_score (signal_score is its deprecated twin, same value, until its 2027-02-01 sunset) and trader grade, point-in-time recorded_review_score (recorded_signal_score is its deprecated twin until its 2027-02-01 sunset; null before 2026-08-03) and trader grade_at_trade with grade_at_trade_status (unknown before 2026-09-19), optional suspicion_score, and optional suspicion_track. A null suspicion track means the persisted legacy row has no track label.`,
175
175
  });
176
176
  }
177
177
  function registerMarketFlowBatch(server, client, tool) {
@@ -214,7 +214,7 @@ export function registerBatchGetMarketIntel(server, client) {
214
214
  name: "batch_get_market_intel",
215
215
  title: "Batch Market Intelligence",
216
216
  path: "/api/v1/markets/intel/batch",
217
- description: `Deprecated alias of batch_get_market_flow (#16312), kept live; it calls the deprecated POST /api/v1/markets/intel/batch path, whose envelope keeps object: market_intel_batch. Read-only batch lookup for 1-${MAX_BATCH_ITEMS} raw provider condition_id values. Results preserve request order and duplicate inputs return duplicate rows. Uses the same V1 batch item quota as POST /api/v1/markets/intel/batch.
217
+ description: `Deprecated alias of batch_get_market_flow (#16312), kept live until its 2027-02-01 sunset (#29351), then removed; it calls the deprecated POST /api/v1/markets/intel/batch path, whose envelope keeps object: market_intel_batch. Read-only batch lookup for 1-${MAX_BATCH_ITEMS} raw provider condition_id values. Results preserve request order and duplicate inputs return duplicate rows. Uses the same V1 batch item quota as POST /api/v1/markets/intel/batch.
218
218
 
219
219
  Args:
220
220
  - condition_ids (string[], required): Raw provider condition IDs
@@ -241,7 +241,7 @@ Args:
241
241
  - min_grade (string, optional): Minimum trader grade S, A, B, C, D, or F (default "B" = S/A/B)
242
242
  - direction (string, optional): Filter by net flow direction: "YES" or "NO"
243
243
 
244
- Returns: Ranked markets with sharp_money (net_flow_usd, direction, whale_trade_count, buy/sell volumes) and market identity. smart_money is a deprecated byte-identical alias of sharp_money.`,
244
+ Returns: Ranked markets with sharp_money (net_flow_usd, direction, whale_trade_count, buy/sell volumes) and market identity. smart_money is a deprecated byte-identical alias of sharp_money until its 2027-02-01 sunset.`,
245
245
  inputSchema: z.object({
246
246
  timeframe: z.enum(["1h", "4h", "24h", "7d"]).default("24h")
247
247
  .describe("Lookback window (default 24h)"),
@@ -274,7 +274,7 @@ Returns: Ranked markets with sharp_money (net_flow_usd, direction, whale_trade_c
274
274
  export function registerGetSmartMoneyFlows(server, client) {
275
275
  server.registerTool("get_smart_money_flows", {
276
276
  title: "List Smart-Money Flows",
277
- description: `Deprecated alias of get_sharp_money_flows (#16308), kept live; it calls the deprecated /api/v1/markets/smart-money-flows path. Ranked sharp-money flow discovery across prediction markets. Use this before you know a condition_id to find where graded traders are net buying or selling. Cursor-paginated, ranked by absolute net flow descending.
277
+ description: `Deprecated alias of get_sharp_money_flows (#16308), kept live until its 2027-02-01 sunset (#29351), then removed; it calls the deprecated /api/v1/markets/smart-money-flows path. Ranked sharp-money flow discovery across prediction markets. Use this before you know a condition_id to find where graded traders are net buying or selling. Cursor-paginated, ranked by absolute net flow descending.
278
278
 
279
279
  Args:
280
280
  - timeframe (string, optional): Lookback window: "1h", "4h", "24h", "7d" (default "24h")
@@ -285,7 +285,7 @@ Args:
285
285
  - min_grade (string, optional): Minimum trader grade S, A, B, C, D, or F (default "B" = S/A/B)
286
286
  - direction (string, optional): Filter by net flow direction: "YES" or "NO"
287
287
 
288
- Returns: Ranked markets with sharp_money (net_flow_usd, direction, whale_trade_count, buy/sell volumes) and market identity. smart_money is a deprecated byte-identical alias of sharp_money.`,
288
+ Returns: Ranked markets with sharp_money (net_flow_usd, direction, whale_trade_count, buy/sell volumes) and market identity. smart_money is a deprecated byte-identical alias of sharp_money until its 2027-02-01 sunset.`,
289
289
  inputSchema: z.object({
290
290
  timeframe: z.enum(["1h", "4h", "24h", "7d"]).default("24h")
291
291
  .describe("Lookback window (default 24h)"),
@@ -376,7 +376,7 @@ export function registerGetInsiderRadarFlag(server, client) {
376
376
  title: "Get Insider Radar Flag",
377
377
  // Deprecated alias of get_suspicious_trade (#16301): same schema, the
378
378
  // deprecated path, kept live for existing clients.
379
- description: `Deprecated alias of get_suspicious_trade (#16301), kept live; it calls the deprecated /api/v1/insider-radar/{id} path. ${SUSPICIOUS_TRADE_DESCRIPTION}`,
379
+ description: `Deprecated alias of get_suspicious_trade (#16301), kept live until its 2027-02-01 sunset (#29351), then removed; it calls the deprecated /api/v1/insider-radar/{id} path. ${SUSPICIOUS_TRADE_DESCRIPTION}`,
380
380
  inputSchema: z.object(suspiciousTradeInputSchema),
381
381
  annotations: readAnnotations,
382
382
  }, async ({ id }, ctx) => {
@@ -586,7 +586,7 @@ Returns: Trader export snapshot metadata.`,
586
586
  export function registerGetCoverage(server, client) {
587
587
  server.registerTool("get_coverage", {
588
588
  title: "Get coverage",
589
- description: `Read which V1 data surfaces the API serves for Polymarket, the one venue it covers. Every surface reports the status supported: grade, pnl, strategy, timeline, large_trades, whale_signal (the deprecated spelling of large_trades), suspicious_trades, insider_radar (the deprecated spelling of suspicious_trades), and market_snapshot. Use this before choosing trader, market, large-trade, or suspicious-trade routes.
589
+ description: `Read which V1 data surfaces the API serves for Polymarket, the one venue it covers. Every surface reports the status supported: grade, pnl, strategy, timeline, large_trades, whale_signal (the deprecated spelling of large_trades, until its 2027-02-01 sunset), suspicious_trades, insider_radar (the deprecated spelling of suspicious_trades, until its 2027-02-01 sunset), and market_snapshot. Use this before choosing trader, market, large-trade, or suspicious-trade routes.
590
590
 
591
591
  Args: none
592
592
 
@@ -607,7 +607,7 @@ Returns: Static backend-owned coverage document under the single key polymarket.
607
607
  export function registerGetPlatforms(server, client) {
608
608
  server.registerTool("get_platforms", {
609
609
  title: "Get Platform Capability Matrix",
610
- description: `Deprecated alias of get_coverage (#16315), kept live; it calls the deprecated /api/v1/platforms path, which serves the same body. Read which V1 data surfaces the API serves for Polymarket, the one venue it covers. Every surface reports the status supported: grade, pnl, strategy, timeline, large_trades, whale_signal (the deprecated spelling of large_trades), suspicious_trades, insider_radar (the deprecated spelling of suspicious_trades), and market_snapshot. Use this before choosing trader, market, large-trade, or suspicious-trade routes.
610
+ description: `Deprecated alias of get_coverage (#16315), kept live until its 2027-02-01 sunset (#29351), then removed; it calls the deprecated /api/v1/platforms path, which serves the same body. Read which V1 data surfaces the API serves for Polymarket, the one venue it covers. Every surface reports the status supported: grade, pnl, strategy, timeline, large_trades, whale_signal (the deprecated spelling of large_trades, until its 2027-02-01 sunset), suspicious_trades, insider_radar (the deprecated spelling of suspicious_trades, until its 2027-02-01 sunset), and market_snapshot. Use this before choosing trader, market, large-trade, or suspicious-trade routes.
611
611
 
612
612
  Args: none
613
613