pm_signals
Analyze smart money flow signals from Polymarket to identify where top traders are positioning, using aggregated whale wallet activity for directional market insights.
Instructions
Get smart money flow signals showing where top traders are positioning. Aggregates whale wallet activity into directional signals per market. Cost: $0.02 per query. Source: Polymarket on-chain data.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| market_id | No | Filter by market ID | |
| min_confidence | No | Minimum signal confidence (0-1, default 0.5) | |
| limit | No | Maximum results (default 25) |
Implementation Reference
- src/tools/pm.ts:90-91 (registration)Tool registration for pm_signals in src/tools/pm.ts.
server.registerTool( "pm_signals", - src/tools/pm.ts:118-146 (handler)The handler logic for pm_signals, which fetches data from the API and formats the response.
async ({ market_id, min_confidence, limit }) => { const res = await apiGet<PmQueryResponse>("/api/v1/pm/signals", { market_id, min_confidence: min_confidence ?? 0.5, limit: limit ?? 25, }); if (!res.ok) { return { content: [ { type: "text" as const, text: `API error (${res.status}): ${JSON.stringify(res.data)}`, }, ], isError: true, }; } const { count, data } = res.data; const warn = stalenessWarning(res); const summary = `${warn}Found ${count} smart money signal(s).`; const json = JSON.stringify(data, null, 2); return { content: [{ type: "text" as const, text: `${summary}\n\n${json}` }], }; }, );