# Polymarket Trades Feed

> Polymarket Trades Feed is a paid API for AI agents from x402.agentutility.ai, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Fetches recent on-chain trades from a Polymarket prediction market by market slug or conditionId, or for a specific wallet address, returning side, size, price, timestamp, trader pseudonym, tx hash, and notional USD.

## Facts

- Endpoint: POST https://x402.agentutility.ai/polymarket-trades
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/polymarket-trades-feed-5719211f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mKUYukYJi7dkRg9odD-iG

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 polymarket-trades-feed-5719211f -d '<json body>'
```

Example prompt: Pull the most recent trades for the Polymarket market with slug 'will-trump-win-2024' — I want to see who bought YES vs NO, at what prices, and the on-chain tx hashes.

## When to prefer this

Use this endpoint when you need granular, trade-level data from Polymarket — including on-chain tx hashes, trader pseudonyms, and notional USD — rather than just market prices or order book snapshots. Ideal for trade history audits, wallet tracking, or feeding a trading analytics pipeline. Prefer over scraping Polymarket's UI or using less structured data sources.

## Known failure modes

- Invalid or unknown market slug returns empty results or error
- Invalid conditionId format causes a 400-level error
- Wallet address with no Polymarket activity returns empty trade list
- Rate limiting or payment failure (insufficient USDC balance) returns 402 or 429
- Polymarket data source unavailable causes timeout or 503

## How this service works

Recent trades from any Polymarket market (by slug or conditionId) or for a specific wallet. Returns side, size, price, timestamp, trader pseudonym, on-chain tx hash, and computed notional USD. A data-only Polymarket trade feed for prediction-market and on-chain bet-history research.

## Output

A list of recent trade records, each containing: trade side (YES/NO buy or sell), size (shares), price (implied probability), timestamp, trader pseudonym, on-chain transaction hash, and computed notional value in USD.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {
      "side": {
       "enum": [
        "BUY",
        "SELL"
       ],
       "type": "string",
       "description": "Filter by side."
      },
      "user": {
       "type": "string",
       "description": "Polymarket proxy wallet address to filter by. Optional."
      },
      "limit": {
       "type": "number",
       "description": "1-500. Default 50."
      },
      "market": {
       "type": "string",
       "description": "Market slug (e.g. 'will-x-happen') OR conditionId (0x...). Optional."
      },
      "offset": {
       "type": "number",
       "description": "Pagination offset."
      },
      "after_ts": {
       "type": "number",
       "description": "Unix seconds. Only trades after."
      },
      "before_ts": {
       "type": "number",
       "description": "Unix seconds. Only trades before."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "count": {
       "type": "integer"
      },
      "trades": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "side": {
          "type": "string"
         },
         "outcome": {
          "type": "string"
         },
         "tx_hash": {
          "type": "string"
         },
         "price_usd": {
          "type": "number"
         },
         "timestamp": {
          "type": "integer"
         },
         "market_slug": {
          "type": "string"
         },
         "size_shares": {
          "type": "integer"
         },
         "notional_usd": {
          "type": "integer"
         },
         "trader_pseudonym": {
          "type": "string"
         }
        }
       }
      },
      "attribution": {
       "type": "string"
      },
      "total_notional_usd": {
       "type": 
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 20,
  "trades": [
   {
    "side": "BUY",
    "outcome": "Yes",
    "tx_hash": "0xabc...",
    "price_usd": 0.42,
    "timestamp": 1779033805,
    "market_slug": "will-x-happen",
    "size_shares": 100,
    "notional_usd": 42,
    "trader_pseudonym": "agent_one"
   }
  ],
  "attribution": "Data: Polymarket data-api. https://polymarket.com",
  "total_notional_usd": 840
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/polymarket-trades-feed-5719211f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentutility.ai](https://www.zero.xyz/host/x402.agentutility.ai/llms.txt)
