Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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) },
          ],
        };
      },
    );
  • Schema definition for the "pm_arb_stats" response.
    interface PmArbStatsResponse {
      dataset: string;
      source: string;
      update_frequency: string;
      stats: Record<string, unknown>;
    }
  • Registration function that includes the "pm_arb_stats" tool.
    export function registerPmArbTools(server: McpServer): void {

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/carrierone/verilexdata-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server