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 epochsource: source identifiermarket: normalized market IDsymbol: venue-native, human-friendly symbolvwap: volume-weighted average price for the intervalvolume: total traded base volume for the intervalinterval: duration token such as1m,5m, or1h
Example
How it works
client.vwap() calculates VWAP from standardized trade data using
snapshot-first replay. See
Snapshots for the full flow.
Related documentation
- OHLCV if you need price data alongside volume
- Volume if you only need volume profiles
- Trades if you need execution-level data
- Quickstart