TypeScript SDK — Predictions: Volume & Metrics
Query historical volume data and trading metrics for prediction markets. All methods are on client.predictions. See the API specifications for full response schemas.
getPredictionMarketDailyVolume
GET /v1/prediction-markets/volume/{date} · Public
Get the aggregate daily trading volume for prediction markets on a specific date. Returns a bare array of PredictionMarketVolumeCategory objects (not wrapped in an object).
Code
Auto-retry — This GET endpoint automatically retries on 429/502/503/504 status codes.
getPredictionMarketHourlyVolume
GET /v1/prediction-markets/volume/{date}/hourly · Public
Get hourly volume breakdowns for prediction markets on a specific date. Returns a bare array of PredictionMarketHourlyVolumeCategory objects.
Code
Auto-retry — This GET endpoint automatically retries on transient failures.
getVolumeMetrics
POST /v1/prediction-markets/metrics/volume · Authenticated
Get per-contract share volume metrics for an event. This is a POST mutation — never automatically retried. The eventTicker field is required. Returns a VolumeMetricsResponse with eventTicker and a contracts array of per-contract volume data.
Code
Tip —
startTimeandendTimeaccept bothbigintandnumbervalues. Both are optional — omit to get all-time volume. See Data Types for int64 handling.
What's next
- Events & Discovery — browse and search prediction market events
- Order Management — place, cancel, and query orders
- Rewards & Rebates — liquidity rewards and maker rebate programs
- Data Types — why prices are strings and timestamps may be
bigint