# AgentDiet Polymarket Live Odds Feed

> AgentDiet Polymarket Live Odds Feed is a paid API for AI agents from rag-diet.agentdiet.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-22).

Fetches live prediction market odds from Polymarket, optionally filtered by topic, with token-compressed output for agent context efficiency.

## Facts

- Endpoint: GET https://rag-diet.agentdiet.dev/v1/polymarket-live-odds-feed?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdiet-polymarket-live-odds-feed-b685b2d0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WzZuFmuql4FWs88ZWVfHr

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentdiet-polymarket-live-odds-feed-b685b2d0
```

Example prompt: Can you pull the live Polymarket odds right now for US election markets and give me the current probabilities?

## When to prefer this

Choose this endpoint when you need live Polymarket odds delivered in a highly token-compressed format suitable for agent context windows, especially in A2A or MCP pipelines where context budget is constrained. Prefer it over direct Polymarket API calls when you want automatic compression (up to 91% token reduction) and micropayment-gated access via x402/USDC on Base.

## Known failure modes

- Invalid or unsupported topic query returns empty data object
- Payment failure via x402/USDC results in 402 response before data is returned
- Polymarket API downtime causes upstream fetch failure and error status
- Malformed queryParams cause schema validation rejection
- Rate limiting if called too frequently without valid USDC payment

## How this service works

Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://rag-diet.agentdiet.dev settling in USDC on Base.

## Output

Returns a JSON object with status 'ok', a data field containing current Polymarket odds keyed by market or topic, and an roi_proof field showing the compression ratio (e.g. 91.4% compression) applied to reduce token footprint for agent context windows.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "POST"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "topic": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "status": "ok",
  "roi_proof": {
   "compression_ratio_pct": 91.4
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentdiet-polymarket-live-odds-feed-b685b2d0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from rag-diet.agentdiet.dev](https://www.zero.xyz/host/rag-diet.agentdiet.dev/llms.txt)
