PMAxis for developers

PMAxis Developer Resources.

Every PMAxis developer resource in one place — REST API, OpenAPI spec, MCP servers, and machine-readable files. Built so applications and AI agents can integrate without scraping.

01 — REST API

Prediction market data over HTTPS

The full PMAxis REST API lives at api.pmaxis.trade — real-time prices, orderbooks, candles, trades, signals, and on-chain wallet data across every prediction market PMAxis indexes.

  • API referenceFull endpoint documentation (markets, orderbooks, candles, wallets, stats)
  • OpenAPI specMachine-readable schema of every endpoint
  • API statusLive uptime and latency
  • Sign upFree API key — 5,000 credits/month, no credit card

Auth: send your key with the X-API-Key header. This landing site also exposes two cached convenience proxies that need no key:

GET https://pmaxis.trade/api/platform-stats   → total & active market counts
GET https://pmaxis.trade/api/ticker            → top markets by trailing 24h volume
02 — MCP

Model Context Protocol servers

PMAxis runs two MCP servers. The public discovery endpoint below needs no key and speaks MCP over Streamable HTTP — it lists documentation resources and serves read-only platform tools. The hosted server unlocks all 60+ tools (orderbooks, candles, wallets, signals) with a free API key.

Public discovery endpoint · POST /api/mcp

curl -X POST https://pmaxis.trade/api/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "initialize",
    "params": {
      "protocolVersion": "2025-06-18",
      "capabilities": {},
      "clientInfo": {"name": "my-agent", "version": "0.1.0"}
    }
  }'

Hosted SSE server · all tools · requires free key

{
  "mcpServers": {
    "pmaxis": {
      "url": "https://mcp.pmaxis.trade/sse?key=YOUR_API_KEY"
    }
  }
}
  • /mcp guideFull integration guide: Claude Desktop, Cursor, Windsurf, Python SDK, npm package
03 — Errors

Structured JSON errors

Every error from this site's API routes is machine-parseable JSON with a stable code, a human message, and a resolution hint — never an HTML page.

{
  "error": {
    "code": "not_found",
    "message": "Unknown API route: GET /api/nope",
    "hint": "Check the path against the endpoint list in this body. ...",
    "known_endpoints": ["GET /api/platform-stats", "GET /api/ticker", "POST /api/mcp"]
  }
}
04 — Machine-readable

Files and formats for agents

Every page also serves text/markdown when requested with Accept: text/markdown, and every URL has a .md sibling.