Skip to main content
WSS

Overview

Subscription Parameters

chain_id
number
required
Target EVM chain. See the Chain enumeration for supported values.
base_token_address
string
required
ERC-20 contract address for the base asset (hex string, 20 bytes, no 0x prefix).
quote_token_address
string
required
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:
data.pool_uid
string
BYTEA
data.exchange_id
number
INTEGER
data.type_id
number
INTEGER
data.bucket_start
string
TIMESTAMPTZ — Inclusive UTC bucket start.
data.bucket_end
string
TIMESTAMPTZ — Exclusive UTC bucket end (bucket_start + bucket_seconds).
data.bucket_seconds
number
INTEGER
data.token_in
string
BYTEA
data.token_out
string
BYTEA
data.price_vwap
string | null
NUMERIC(78,18) — VWAP (token_out per 1 token_in); null if undefined.
data.total_volume_in_raw
string
NUMERIC(78,0) — Sum of raw UInt256 amountIn values.
data.total_volume_in
string | null
NUMERIC(78,18) — Decimal-adjusted token_in volume; null if decimals unknown.
data.total_volume_out_raw
string
NUMERIC(78,0) — Sum of raw UInt256 amountOut values.
data.total_volume_out
string | null
NUMERIC(78,18) — Decimal-adjusted token_out volume; null if decimals unknown.
data.trade_count
number
BIGINT
data._tracing_id
string
BYTEA
data._parent_tracing_ids
string[] | null
BYTEA[] — Optional parent lineage references.
data._created_at
string
TIMESTAMPTZ
data._updated_at
string
TIMESTAMPTZ

Subscription Example

Response Example

subscribe
type:object
unsubscribe
type:object
subscribe_response
type:object
unsubscribe_response
type:object
update
type:object
Last modified on May 27, 2026