For the complete documentation index, see llms.txt. This page is also available as Markdown.

Trades By Market

Data Freshness & Historical Coverage

For data freshness and historical coverage, see Data Coverage by Chain; this endpoint follows it except where noted below.

  • Covers the Polymarket prediction-markets dataset (trade and price history from November 2022), not per-chain history — see the Prediction Markets note on the coverage page.

Get Prediction Market Trades by Market

post

Get recent trades for a Polymarket prediction market. Trades are decoded from on-chain OrderFilled events on Polygon, joined with market metadata.

What it helps to answer:

  1. What are the most recent trades in this market?

  2. Who is buying and selling, and at what prices?

  3. What is the trade size distribution?

Authorizations
apikeystringRequired

API key for authentication

Body

Request for trades by market endpoint.

market_idstring · min: 1 · max: 100Required

Polymarket market ID

Example: 654412
dateany ofOptional

Date range filter (ISO 8601 date-time)

Example: {"from":"2024-01-01T00:00:00Z","to":"2024-12-31T23:59:59Z"}
order_byany ofOptional

Sort order

Example: [{"direction":"DESC","field":"timestamp"}]
Responses
200

Trade data

application/json
post/api/v1/prediction-market/trades-by-market
POST /api/v1/prediction-market/trades-by-market HTTP/1.1
Host: api.nansen.ai
apikey: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 181

{
  "market_id": "654412",
  "pagination": {
    "page": 1,
    "per_page": 10
  },
  "date": {
    "from": "2024-01-01T00:00:00Z",
    "to": "2024-12-31T23:59:59Z"
  },
  "order_by": [
    {
      "direction": "DESC",
      "field": "timestamp"
    }
  ]
}
{
  "pagination": {
    "page": 1,
    "per_page": 10,
    "is_last_page": true
  },
  "data": [
    {
      "timestamp": "2024-11-01T12:30:00",
      "seller": "0x1234567890abcdef1234567890abcdef12345678",
      "buyer": "0xabcdefabcdefabcdefabcdefabcdefabcdefabcd",
      "taker_action": "buy",
      "side": "Yes",
      "outcome_index": 1,
      "size": 1000,
      "price": 0.52,
      "usdc_value": 520,
      "tx_hash": "0xabc123def456",
      "market_id": "654412"
    }
  ]
}

Last updated

Was this helpful?