Description
The Pricing Suite for spot crypto delivers depth curves, price-impact grids, OHLC bars, VWAP, and LWAP for ERC-20 pairs on EVM chains. All pricing data is derived from verified on-chain trades and normalized for consistent cross-venue analysis.Endpoint Matrix
| Endpoint | Summary | Dataset ID | Typical Latency |
|---|---|---|---|
POST /evm/prices/spot/erc20-erc20/depth | Orderbook-style depth curves for ERC-20 pairs | 0401 | < 200 ms |
POST /evm/prices/spot/erc20-erc20/impact-grid | Price impact estimates across notional sizes | 0402 | < 250 ms |
POST /evm/prices/spot/erc20-erc20/ohlc | OHLC candlestick bars with volume aggregation | 0404 | < 200 ms |
POST /evm/prices/spot/erc20-erc20/vwap | Volume-weighted average prices over custom windows | 0501 | < 200 ms |
POST /evm/prices/spot/erc20-erc20/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).Quote ERC-20 contract address (hex string, 20 bytes, no
0x prefix).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)
- Depth:
depth_offset_bps(basis-point offset from mid). - Impact Grid:
grid_step_bps,grid_radius_bps. - OHLC:
aggregation_interval(required),aggregation_timezone(defaultUTC). - VWAP/LWAP: optional
aggregation_interval(defaults server-side).
Pagination
All spot crypto endpoints support pagination vialimit (recommended default 250, max 1000) and cursor. See Pagination & Limits.
Pricing Layers
L1 (Depth): Raw orderbook depth curves from individual pools- Use for: Real-time liquidity analysis, execution routing
- Use for: Trade sizing, slippage estimation
- Use for: Charting, technical analysis, backtesting
- Use for: Execution benchmarking, fair value estimation
Usage Guidance
- Choose the right layer — L1 for granular analysis, L3 for aggregated views, analytics for execution
- Filter by exchange — Use
exchange_idsto compare prices across DEX protocols - Cache catalog responses — Available markets change infrequently; cache for 1-24 hours
- Use appropriate intervals — Match aggregation intervals to your analysis needs (1m for intraday, 1d for historical)
Common Patterns
Discover available markets:Dataset Relationships
- Reserves → Prices: Reserve snapshots drive L1 depth calculations
- Transactions → Prices: Trade execution logs feed into VWAP/LWAP analytics
- Pools → Prices: Pool metadata enables venue-specific price filtering
See Also
POST /evm/prices/spot/erc20-erc20/depth— Orderbook depthPOST /evm/prices/spot/erc20-erc20/impact-grid— Price impactPOST /evm/prices/spot/erc20-erc20/ohlc— Candlestick barsPOST /evm/prices/spot/erc20-erc20/vwap— Volume-weighted pricesPOST /evm/prices/spot/erc20-erc20/lwap— Liquidity-weighted prices- Digital Exchange — DEX protocol identifiers