Description
This overview covers spot pricing endpoints where ERC-20 base tokens are quoted in fiat currencies. Outputs are normalized into the requested fiat (e.g., USD, EUR) and derived from verified on-chain trades.Endpoint Matrix
| Endpoint | Summary | Dataset ID | Typical Latency |
|---|---|---|---|
POST /evm/prices/spot/erc20-fiat/ohlc | OHLC candlestick bars with volume aggregation | 0404 | < 200 ms |
POST /evm/prices/spot/erc20-fiat/vwap | Volume-weighted average prices over custom windows | 0501 | < 200 ms |
POST /evm/prices/spot/erc20-fiat/lwap | Liquidity-weighted average prices across depth bands | 0502 | < 200 ms |
Parameter Conventions
Base ERC-20 contract address (hex string, 20 bytes, no
0x prefix).Fiat currency code. See the Fiat Currency enumeration.
Range Filters (mutually exclusive)
Starting block number (inclusive). Use with
to_block.Ending block number (inclusive). Use with
from_block.Starting timestamp (ISO-8601). If it falls between blocks, the next block after this timestamp is used. Use with
to_timestamp.Ending timestamp (ISO-8601). If it falls between blocks, the last block before this timestamp is used. Use with
from_timestamp.Direct Selectors
Filter by exchange identifiers. See the DigitalExchange enumeration.
Restrict to specific BlockDB pool identifiers.
Metric Controls (per endpoint)
- OHLC:
aggregation_interval(required),aggregation_timezone(defaultUTC). - VWAP/LWAP: optional
aggregation_interval(defaults server-side).
Pagination
All fiat pricing endpoints support pagination vialimit (recommended default 250, max 1000) and cursor. See Pagination & Limits.
Usage Guidance
- Choose aggregation carefully — Short intervals (
1m,5m) for intraday views; longer (1d) for rollups. - Filter by exchange — Compare venue pricing or constrain to known liquidity venues with
exchange_ids.
Common Patterns
Get OHLC bars for ERC-20 → fiat:See Also
POST /evm/prices/spot/erc20-fiat/ohlc— Fiat OHLCPOST /evm/prices/spot/erc20-fiat/vwap— Fiat VWAPPOST /evm/prices/spot/erc20-fiat/lwap— Fiat LWAP- Fiat Currency — Quotation currency codes
- Digital Exchange — DEX protocol identifiers