Skip to main content
POST

Overview

Parameters

number
required
Target EVM chain. See the Chain enumeration for supported values.
string
required
ERC-20 contract address for the base asset (hex string, 20 bytes, no 0x prefix).
string
required
ERC-20 contract address for the quote asset (hex string, 20 bytes, no 0x prefix).

Range Filters (mutually exclusive)

number
Starting block (inclusive). Block ranges use strict containment: only buckets whose entire span maps to blocks within [from_block, to_block] are returned, so each bar aggregates only blocks inside your range. The partial bucket that merely contains from_block (and also spans earlier blocks) is excluded. A range narrower than one bucket_seconds returns no bars. Use with to_block.
number
Ending block (inclusive). The partial bucket that contains to_block (and also spans later blocks) is excluded — only buckets ending at or before to_block’s timestamp are returned. Use with from_block.
string
Window start (ISO-8601, inclusive). Used directly as bucket_start >= from_timestamp. Use with to_timestamp.
string
Window end (ISO-8601, inclusive). Buckets with bucket_end <= to_timestamp are included. Use with from_timestamp.
Provide either a block range (from_block + to_block) or a time range (from_timestamp + to_timestamp), not both. Omitting both is HTTP 400.

Bucket Controls

number
required
Bucket width in seconds. Allowed values: 60, 300, 900, 1800, 3600, 14400, 86400.
boolean
default:"false"
Gap-fill: one row per bucket in the requested window. Gap buckets LOCF the last price_vwap, with zero volumes, trade_count=0, and pool_count=0.LOCF seeds from the last cross-pool bar before the window start when available, then from in-window bars (same 0505 table).Works with a timestamp or block range (blocks resolve to timestamps, then align to bucket boundaries).

Pagination Controls

number
default:"250"
Recommended default 250; maximum 1000 to stay under ~10 MB responses.
string
Opaque pagination cursor supplied by a previous response.

Response Fields

Meta

object
Echo of request metadata applied to the response.
number
EVM chain ID echoed from the request.
string
ERC-20 contract address of the base asset, echoed from the request.
string
ERC-20 contract address of the quote asset, echoed from the request.
object
Pure echo of the window you sent (from_block/to_block/from_timestamp/to_timestamp); unset bounds are null.
object | null
The concrete window the query actually executed against, after resolving the request. For a block range on a time-bucketed endpoint (OHLC/VWAP/VWAP-aggregate/fiat VWAP), from_timestamp/to_timestamp hold the resolved timestamp window (and from_block/to_block echo your request). For a time range on a block-keyed endpoint, from_block/to_block hold the resolved block range (and the timestamps echo your request). null for selector-only requests (no window). No extra database work is done — these are the values the query already computed.
number | null
Resolved/echoed start block of the executed window.
number | null
Resolved/echoed end block of the executed window.
string | null
Resolved/echoed start timestamp (ISO-8601) of the executed window.
string | null
Resolved/echoed end timestamp (ISO-8601) of the executed window.
object
Filter parameters echoed from the request.

Data

object[]
Cross-pool VWAP aggregates matching the request; each object uses the same field names as 0505.
string
Inclusive UTC start of the VWAP bucket (ISO-8601).
string
Exclusive UTC end of the VWAP bucket (ISO-8601). Equal to bucket_start + bucket_seconds.
number
Bucket width in seconds: 60, 300, 900, 1800, 3600, 14400, or 86400.
string
Input token address (hex, 20 bytes, no 0x prefix).
string
Output token address (hex, 20 bytes, no 0x prefix).
string | null
Cross-venue VWAP (quote_token_address per 1 base_token_address, decimals-adjusted). null only when no prior bar exists for this pair and bucket_seconds before the window ends. In dense mode, gap buckets LOCF the last price (including pre-window bars).
string
Sum of raw UInt256 amountIn values across all contributing pools. "0" for carry-forward buckets in dense mode.
string | null
Decimal-adjusted token_in volume. null when token decimals are unknown. "0" for carry-forward buckets in dense mode when decimals are known.
string
Sum of raw UInt256 amountOut values across all contributing pools. "0" for carry-forward buckets in dense mode.
string | null
Decimal-adjusted token_out volume. null when token decimals are unknown. "0" for carry-forward buckets in dense mode when decimals are known.
number
Total swaps across all contributing pools. 0 for carry-forward buckets in dense mode.
number
Distinct pools that contributed to the bucket. 0 for carry-forward buckets in dense mode.
number | null
First block number in the chain-wide bucket. Populated when dense=true; null in sparse mode.
number | null
Last block number in the chain-wide bucket. Populated when dense=true; null in sparse mode.
string | null
Timestamp of the first block in the chain-wide bucket (ISO-8601). Populated when dense=true; null in sparse mode.
string | null
Timestamp of the last block in the chain-wide bucket (ISO-8601). Populated when dense=true; null in sparse mode.
number | null
Block count in the chain-wide bucket. Populated when dense=true; null in sparse mode.
string | null
BlockDB tracing ID (18-byte hex, exactly 36 characters, no 0x prefix). null for synthetic gap-fill rows when dense=true.
string[] | null
Tracing IDs of contributing per-pool VWAP (0405) bars; optional. null for gap-fill rows and by default.
string | null
Record creation timestamp (ISO-8601). null for gap-fill rows.
string | null
Record update timestamp (ISO-8601). null for gap-fill rows.

Envelope Fields

string | null
Pagination cursor.
number
Number of VWAP entries returned in this page.

Usage Notes

Last modified on July 19, 2026