# Polymarket Trades API (polymarket.trades)

- Canonical page: https://everyinfra.com/en/polymarket-api/trades
- Endpoint: POST /api/v1/social with {"platform": "polymarket", "action": "trades", "params": {...}}
- Price: $0.006806 per call ($6.81 per 1,000 requests); failed and empty results are not charged
- Returns: list, default 50, max 100 per call
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=polymarket&action=trades

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| market | not declared | yes | not declared | The market for `trades`: its slug (such as `will-donald-trump-win-the-2024-us-presidential-election`), its 0x condition ID or its polymarket.com link, taken from a `markets` row. |
| limit | integer (1–100) | no | 50 | The most rows to return in this call, an integer from 1 to 100. The default applies when you leave it out, and a call can return fewer rows. Larger values return 422 before any charge. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| tx_hash | On-chain transaction hash of the trade (trades). |
| order_hash | Hash of the order behind the trade (trades). |
| side | BUY or SELL, from the maker's side (trades). |
| outcome | The outcome traded, such as Yes or a team name (trades). |
| price | Trade price, 0 to 1 (trades). |
| shares | Shares traded (trades). |
| amount_usd | Trade value in US dollars (trades). |
| fee_usd | Fee in US dollars (trades). |
| traded_at | Trade time, ISO 8601 UTC (trades). |
| market_slug | Slug of the traded market (trades). |
| condition_id | The market's on-chain condition ID (0x...); pass it as `market` to trades. |
| token_id | ID of the outcome token traded (trades). |
| title | Title. null when the platform has no titles (for example text-only posts). |
| maker_wallet | Maker wallet address, public on-chain (trades). |
| taker_wallet | Taker wallet address, public on-chain (trades). |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "polymarket",
  "action": "trades",
  "params": {
    "market": "will-bitcoin-reach-110000-by-december-31-2026-658-339-969"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "polymarket",
        "action": "trades",
        "params": {
            "market": "will-bitcoin-reach-110000-by-december-31-2026-658-339-969",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "polymarket",
  "action": "trades",
  "results": [
    {
      "tx_hash": …,
      "order_hash": …,
      "side": …,
      "outcome": …,
      "price": …,
      "shares": …,
      "amount_usd": …,
      "fee_usd": …,
      "traded_at": …,
      "market_slug": …,
      "condition_id": …,
      "token_id": …,
      "title": …,
      "maker_wallet": …,
      "taker_wallet": …,
      "platform": …
    }
  ],
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=polymarket
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
