v3

OpenAPI 3.0.02026-07-31103181312.8 KB
market

Get Trades

Endpoint for getting all trades for all markets. A trade represents a completed transaction between two users on a specific market. Each trade includes the market ticker, price, quantity, and timestamp information. Block trades are included in the response by default and identified by the is_block_trade field; use the is_block_trade query parameter to filter by block / non-block. This endpoint returns a paginated response. Use the 'limit' parameter to control page size (1-1000, defaults to 100). The response includes a 'cursor' field - pass this value in the 'cursor' parameter of your next request to get the next page. An empty cursor indicates no more pages are available.

get/markets/trades

Query parameters

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.

tickerstring

Filter by market ticker

min_tsinteger

Filter items after this Unix timestamp

max_tsinteger

Filter items before this Unix timestamp

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

Trades retrieved successfully

cursorstring required

Example response

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