Skip to main content
Use client.vwap() when you need volume-weighted average price data for execution benchmarking and price smoothing. This method calculates VWAP over fixed time intervals.

Method signature

Parameters

Return value

List of bucketed VWAP series rows.

Example response

Fields

VWAP records include:
  • timestamp: bucket start time in UTC milliseconds since the Unix epoch
  • source: source identifier
  • market: normalized market ID
  • symbol: venue-native, human-friendly symbol
  • vwap: volume-weighted average price for the interval
  • volume: total traded base volume for the interval
  • interval: duration token such as 1m, 5m, or 1h
VWAP is calculated as the sum of (price × quantity) divided by total quantity for all trades in the interval.

Example

How it works

client.vwap() calculates VWAP from standardized trade data using snapshot-first replay. See Snapshots for the full flow.
  • OHLCV if you need price data alongside volume
  • Volume if you only need volume profiles
  • Trades if you need execution-level data
  • Quickstart