v3

OpenAPI 3.0.02026-07-31103181312.8 KB
historical

Get Historical Trades

Endpoint for getting all historical trades for all markets. Trades that were filled before the historical cutoff are available via this endpoint. Block trades are included by default and identified by the is_block_trade field; use the is_block_trade query parameter to filter by block / non-block. See Historical Data for details.

get/historical/trades

Query parameters

tickerstring

Filter by market ticker

min_tsinteger

Filter items after this Unix timestamp

max_tsinteger

Filter items before this Unix timestamp

limitinteger

Number of results per page. Defaults to 100. Maximum value is 1000.

cursorstring

Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.

is_block_tradeboolean

Filter trades by whether they are block trades. Omit to return all trades. Set to true to return only block trades. Set to false to return only non-block trades.

Response

Historical trades retrieved successfully

cursorstring required

Example response

{
  "trades": [
    {
      "count_fp": "10.00",
      "yes_price_dollars": "0.5600",
      "no_price_dollars": "0.5600"
    }
  ]
}