Market Stats
Draft API - Use at Own Risk: These
/webendpoints are non-stable draft endpoints subject to change without notice. They are provided for convenience but are not covered by API stability guarantees.
The market stats API provides real-time and trailing market statistics for products at the exchange.
Market Stats API Endpoints
Get Trailing Statistics for All Products
| HTTP Method | Endpoint |
|---|---|
GET | /web/market/stats/trailing/all-products |
Returns trailing (24-hour) market statistics for all active products. This endpoint provides volume data that is updated in near real-time during trading hours.
Example Request
GET /exchange/api/web/market/stats/trailing/all-products
Response
Returns an array of trailing statistics objects for each product.
Note: Unlike the VOI Charts endpoint, notionalVolume in this endpoint is expressed in USD (not cents). No conversion is needed.
Example Response
In the example above:
- Product 1547: 27 contracts with notional volume of $23,658 USD
- Product 826: 5 contracts with notional volume of $429,750 USD
Get Trailing Statistics for Single Product
| HTTP Method | Endpoint |
|---|---|
GET | /web/market/stats/trailing/:product_id |
Returns trailing (24-hour) market statistics for a specific product, where :product_id is the product ID.
Example Request
GET /exchange/api/web/market/stats/trailing/123
Response
Example Response
Notes
- Trailing Window: The statistics represent a rolling 24-hour window that updates continuously during trading hours.
- Update Frequency: Volume statistics are updated in near real-time as trades occur.
- Null Values: Values may be
nullif no trading activity has occurred in the trailing window. - Use Case: This endpoint is particularly useful for displaying real-time volume information on market data displays, as it reflects current trading activity rather than the previous day's settled values from the Products API.
Start Trading
Leveraged spot, perpetuals, futures, options, and prediction markets, all on one CFTC-regulated exchange with crypto margin and settlement.