# Polymarket Market Trades API — mito.trade

> Polymarket Market Trades API — mito.trade is a paid API for AI agents from data.mito.trade, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns on-chain trade history for a specific Polymarket prediction market by market/condition ID, with pagination support.

## Facts

- Endpoint: GET https://data.mito.trade/x402/v1/market-trades
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/polymarket-market-trades-api-mito-trade-46b0f47d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xSHIQCZYek-IksHOb9ZuE

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-market-trades-api-mito-trade-46b0f47d
```

Example prompt: Pull the last 200 on-chain trades for Polymarket market ID 0x1234abcd... so I can analyze recent trading activity on that market.

## When to prefer this

Use this endpoint when you need paginated on-chain trade history for a specific Polymarket prediction market by condition/market ID. Prefer this over Polymarket's own API when you need raw on-chain data indexed by mito.trade, or when accessing via x402 micropayment flow. Best for bulk trade analysis, backtesting, or monitoring trading activity on a specific market.

## Known failure modes

- Missing market_id parameter returns 400 or validation error
- Invalid or non-existent market_id returns empty trades array
- Payment failure (x402) returns 402 Payment Required if USDC not provided
- limit exceeding 1000 may be rejected or clamped
- Polygon/Base/Arbitrum network congestion may delay data freshness

## How this service works

Polymarket prediction-market data API (x402 paid): wallet positions, trades, holders, market trades, klines, and markets. USDC on Polygon, Base, or Arbitrum.

## Output

A JSON object containing a paginated list of on-chain trades for the specified Polymarket market, including the total trade count, current page count, and block-level metadata (block number and block timestamp) for each trade.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "market_id"
     ],
     "properties": {
      "limit": {
       "type": "string",
       "description": "Page size (default 100, max 1000)"
      },
      "offset": {
       "type": "string",
       "description": "Pagination offset"
      },
      "market_id": {
       "type": "string",
       "description": "Condition / market id"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "count": {
       "type": "integer"
      },
      "trades": {
       "type": "array"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "block_number": 0,
   "block_timestamp": 0
  },
  "count": 0,
  "total": 0,
  "trades": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/polymarket-market-trades-api-mito-trade-46b0f47d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from data.mito.trade](https://www.zero.xyz/host/data.mito.trade/llms.txt)
