v2.fill bucketed on ts_unix - (ts_unix % 3600).
Request
Authentication
Paid tier required. See/clobv2/trades for auth formats.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
start / start_time | integer | No | Unix seconds — only include fills at or after this time. |
end / end_time | integer | No | Unix seconds — only include fills at or before this time. |
limit | integer | No | Max buckets returned (1-1000, default 168 — one week of hours). |
Parameter validation
- Timestamps: non-negative i64.
limit: 1-1000.
400 Bad Request.
Response
Response fields
| Field | Type | Description |
|---|---|---|
count | integer | Number of buckets returned. |
source | string | Always "onchain-v2". |
buckets[].bucket | string | ISO-8601 UTC of the bucket’s start (on-the-hour). |
buckets[].time_unix | integer | Unix seconds of the bucket’s start. |
buckets[].trades | integer | Number of fills in the bucket. |
buckets[].volume_usdc | string (numeric) | USDC notional (from the maker side of each fill) summed over the bucket. |
buckets[].fee_usdc | string (numeric) | Total protocol fees paid on fills in the bucket. |
Rate-limit headers
Standard:x-ratelimit-limit, x-ratelimit-remaining, x-ratelimit-reset.
Examples
Error responses
| Status | Body | When |
|---|---|---|
400 | {"error": "invalid integer limit ..."} or {"error": "invalid timestamp ..."} | Bad limit or timestamp. |
401 | {"error": "missing API key ..."} | No key or bad key. |
402 | {"error": "paid plan required ..."} | Free tier. |
429 | {"error": "rate limit exceeded", "reset_at": <unix>} | Rate limit hit. |
5xx | {"error": "temporary_data_provider_error"} | Temporary data provider issue. Retry with backoff. |
Notes
- Sorted by
bucket DESC(newest first). Reverse client-side for left-to-right charting. - Empty hours (no v2 fills) are omitted from the response — if you need a dense hourly time series for charting, scaffold the expected hour slots yourself and overlay what this returns.
volume_usdcuses the maker-side USDC; in pair-mint fills both sides can be outcome tokens and no USDC is present — those fills are excluded from the bucket sum.fee_usdcis the protocol fee paid at settlement, not the builder rev share (which is off-chain weekly). See/clobv2/buildersfor builder attribution.- The endpoint bucket size is fixed at 1 hour. For per-token OHLCV at arbitrary resolution use
/clobv2/candles/{token_id}.

