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 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:
What are the most recent trades in this market?
Who is buying and selling, and at what prices?
What is the trade size distribution?
API key for authentication
Request for trades by market endpoint.
Polymarket market ID
654412Date range filter (ISO 8601 date-time)
{"from":"2024-01-01T00:00:00Z","to":"2024-12-31T23:59:59Z"}Sort order
[{"direction":"DESC","field":"timestamp"}]Trade data
Bad Request
Unauthorized
Payment Required
Forbidden
Not Found
Unprocessable Content
Too Many Requests
Internal Server Error
Bad Gateway
Service Unavailable
Gateway Timeout
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?