Get Prediction Market Trades
Market Data
Get Prediction Market Trades
Get trade history for a prediction market, with optional outcome and time filters.
GET
Get Prediction Market Trades
Query Parameters
The prediction market platform (e.g.,
polymarket).marketId or outcomeId must be provided.
The platform-specific market identifier (Polymarket
conditionId hex).
Optional when outcomeId is provided.Outcome token ID. When provided alone, returns trades for this outcome across
all markets. When provided with
marketId, filters trades to this outcome
within that market.Start time. Accepts Unix timestamp in milliseconds (e.g.,
1709913600000) or ISO 8601 string (e.g., 2024-03-01T00:00:00Z).End time. Accepts Unix timestamp in milliseconds (e.g.,
1709913600000) or ISO 8601 string (e.g., 2024-03-01T00:00:00Z).Minimum trade value in USD. Filters out trades below this threshold.
Number of trades to return (1 to 500).
Pagination offset. Ignored when
cursor is provided.Cursor for keyset pagination. Use the
nextCursor value from a previous response to fetch the next page. Takes precedence over offset.Sort direction for trades by date. Possible values:
asc, desc.Response
Array of trade records.
Pagination metadata.
Server hostname that handled the request.
Request processing time in milliseconds.
Usage Examples
Offset-based pagination
Cursor-based pagination
With ISO date range
Example Response
Query Parameters
Prediction market platform. Today only polymarket is supported; any other value returns 400.
Available options:
polymarket Example:
"polymarket"
CTF conditionId (required if outcomeId is not provided).
Outcome token id (required if marketId is not provided).
Start time in Unix milliseconds.
Required range:
x >= 0End time in Unix milliseconds.
Required range:
x >= 0Minimum trade size in USD.
Required range:
x >= 0Page size (1-500).
Required range:
1 <= x <= 500Opaque cursor returned by the previous page (pagination.nextCursor).
Response
200 - application/json
Trades list