pm_arb_stats
Retrieve statistics on Polymarket arbitrage opportunities including total tracked, average spreads, markets analyzed, and update timestamps.
Instructions
Get statistics about the Polymarket arbitrage dataset: total opportunities tracked, average spread, markets analyzed, and last updated. Free endpoint.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/pm_arb.ts:141-171 (handler)The "pm_arb_stats" tool registration and handler implementation.
server.registerTool( "pm_arb_stats", { title: "Polymarket Arbitrage Statistics", description: "Get statistics about the Polymarket arbitrage dataset: total opportunities tracked, " + "average spread, markets analyzed, and last updated. Free endpoint.", inputSchema: {}, }, async () => { const res = await apiGet<PmArbStatsResponse>("/api/v1/pm/arb/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_arb.ts:20-25 (schema)Schema definition for the "pm_arb_stats" response.
interface PmArbStatsResponse { dataset: string; source: string; update_frequency: string; stats: Record<string, unknown>; } - src/tools/pm_arb.ts:27-27 (registration)Registration function that includes the "pm_arb_stats" tool.
export function registerPmArbTools(server: McpServer): void {