pm_stats
Retrieve key statistics for the Polymarket dataset including total markets, tracked wallets, trading volume, and last updated timestamp.
Instructions
Get statistics about the Polymarket dataset: total markets, wallets tracked, volume, and last updated timestamp. Free endpoint.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/pm.ts:276-297 (handler)Handler function for pm_stats tool.
async () => { const res = await apiGet<PmStatsResponse>("/api/v1/pm/stats"); if (!res.ok) { return { content: [ { type: "text" as const, text: `API error (${res.status}): ${JSON.stringify(res.data)}`, }, ], isError: true, }; } return { content: [ { type: "text" as const, text: JSON.stringify(res.data, null, 2) }, ], }; }, ); - src/tools/pm.ts:267-275 (registration)Registration of the pm_stats tool.
server.registerTool( "pm_stats", { title: "Polymarket Dataset Statistics", description: "Get statistics about the Polymarket dataset: total markets, wallets tracked, " + "volume, and last updated timestamp. Free endpoint.", inputSchema: {}, }, - src/tools/pm.ts:22-27 (schema)Interface for pm_stats response.
interface PmStatsResponse { dataset: string; source: string; update_frequency: string; stats: Record<string, unknown>; }