# Prediction Market Trades Feed

> Prediction Market Trades Feed is a paid API for AI agents from api.agentstools.dev, paid per call via x402, $0.015/call, status unknown (last checked 2026-09-14).

Returns recent trades for a single prediction market (by conditionId, slug, or numeric ID) with a PII-stripped pseudonymous trade feed and a derived summary of volume, counts, price range, and last price.

## Facts

- Endpoint: GET https://api.agentstools.dev/prediction/trades
- Price: $0.015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/prediction-market-trades-feed-7738314b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_67S0YaMn8UeRXtyq1YJ-c

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 prediction-market-trades-feed-7738314b
```

Example prompt: Pull the last 50 trades for the Polymarket market with slug 'will-bitcoin-reach-100k-in-2025' and give me the buy/sell breakdown, size-weighted average price, last traded price, and price range.

## When to prefer this

Choose this endpoint when you need recent trade-level data or derived trading statistics (volume, price, counts) for a specific Polymarket prediction market, identified by conditionId, slug, or numeric ID. Prefer this over order book endpoints when you need historical fill data rather than open orders, and over market-list endpoints when you already know which market you want.

## Known failure modes

- Invalid or unresolvable market identifier returns an error or empty result
- Market slug or numeric ID that cannot be mapped to a conditionId causes resolution failure
- Requesting limit above 100 is rejected by schema validation
- min_size filter too high returns empty trade list
- Venue other than 'polymarket' is not currently supported and will be rejected
- Network or upstream data source unavailability may cause timeout or 5xx error

## How this service works

Recent trades for one prediction market (by conditionId, slug or numeric id): a PII-stripped pseudonymous feed plus a derived summary — trade count, buy/sell volume and counts, size-weighted average price, last price and range.

## Output

Returns a pseudonymous list of recent trades (up to 100, default 25) for the specified prediction market, each stripped of PII, plus a derived summary including total trade count, buy and sell volume and counts, size-weighted average price, last trade price, and high/low price range.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "market"
     ],
     "properties": {
      "side": {
       "enum": [
        "BUY",
        "SELL"
       ],
       "type": "string",
       "description": "Filter to one side"
      },
      "limit": {
       "type": "integer",
       "maximum": 100,
       "minimum": 1,
       "description": "Max trades (default 25, cap 100)"
      },
      "venue": {
       "enum": [
        "polymarket"
       ],
       "type": "string",
       "description": "Venue (default polymarket)"
      },
      "market": {
       "type": "string",
       "description": "Market: 0x conditionId, slug or numeric id (resolved to a conditionId first)"
      },
      "min_size": {
       "type": "number",
       "minimum": 0,
       "description": "Only trades at/above this cash value"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/prediction-market-trades-feed-7738314b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentstools.dev](https://www.zero.xyz/host/api.agentstools.dev/llms.txt)
