Skip to main content
Use 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 with output="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 UTC
  • source: source identifier
  • market: normalized market ID
  • symbol: venue-native, human-friendly symbol
  • mark_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.