Messages
Pricing Suite - Crypto
Spot VWAP
Subscribe to real-time volume-weighted average price (VWAP) updates.
WSS
Documentation Index
Fetch the complete documentation index at: https://docs.blockdb.io/llms.txt
Use this file to discover all available pages before exploring further.
Overview
- Dataset ID:
0405 - Token-to-Token VWAP - Description: Volume-weighted average price (1m..1d) per pool and token pair direction.
- Sample: Hugging Face Sample
Subscription Parameters
ERC-20 contract address for the base asset (hex string, 20 bytes, no
0x prefix).ERC-20 contract address for the quote asset (hex string, 20 bytes, no
0x prefix).Message Fields (data)
Top-level fields: chain_id, dataset_id, is_reorg, data (object). The data object mirrors b0405_token_to_token_vwap_v1:
BYTEAINTEGERINTEGERTIMESTAMPTZ — Inclusive UTC bucket start.TIMESTAMPTZ — Exclusive UTC bucket end (bucket_start + bucket_seconds).INTEGERBYTEABYTEANUMERIC(78,18) — VWAP (token_out per 1 token_in); null if undefined.NUMERIC(78,0) — Sum of raw UInt256 amountIn values.NUMERIC(78,18) — Decimal-adjusted token_in volume; null if decimals unknown.NUMERIC(78,0) — Sum of raw UInt256 amountOut values.NUMERIC(78,18) — Decimal-adjusted token_out volume; null if decimals unknown.BIGINTBYTEABYTEA[] — Optional parent lineage references.TIMESTAMPTZTIMESTAMPTZSubscription Example
Response Example
Messages
Last modified on May 27, 2026