client.mark_prices() when you need mark price data for perpetual contracts. This method returns a time series of mark prices used for basis analysis, mark tracking, and liquidation-related research.
Method signature
Parameters
Return value
A single-pass iterator of point-series dictionaries by default, flat PyArrow batches withoutput="batches", or a Pandas DataFrame with
output="dataframe".
Example response
Fields
Mark price records include:timestamp: observation time in UTC milliseconds; columnar output is timezone-aware UTCsource: source identifiermarket: normalized market IDsymbol: venue-native, human-friendly symbolmark_price: the mark price used for margin and liquidation calculations
Example
How it works
client.mark_prices() extracts prices from standardized point events with the
mark_price or mark_px series name, using snapshot-first replay. See
Snapshots for the full flow.
Related documentation
- Perpetuals guide for carry, trade-flow, liquidity, and order-book workflows
- Funding rates for related perpetual contract metrics
- Events if you need mark prices mixed with other datapoints
- Quickstart