NautilusTrader
ConceptsData
These docs track the unreleased nightly build and may change without notice. Switch to the latest stable docs.

IndexPriceUpdate

IndexPriceUpdate represents the external index price used by a derivatives market. Venues often derive mark prices, funding calculations, or settlement behavior from an index price.

Fields

FieldRust typePython typeRequired/defaultNotes
instrument_idInstrumentIdInstrumentIdRequiredInstrument for the index price.
valuePricePriceRequiredCurrent index price.
ts_eventUnixNanosintRequiredEvent timestamp in nanoseconds.
ts_initUnixNanosintRequiredInitialization timestamp in nanoseconds.

Behavior

  • Index prices are reference data and do not imply a trade occurred.
  • Perpetual and futures venues may publish both mark and index prices.
  • The catalog stores index prices with instrument ID and price precision metadata.

Example

use nautilus_core::UnixNanos;
use nautilus_model::{
    data::IndexPriceUpdate,
    identifiers::InstrumentId,
    types::Price,
};

let index = IndexPriceUpdate::new(
    InstrumentId::from("BTCUSDT-PERP.BINANCE"),
    Price::from("64995.50"),
    UnixNanos::from(1_000_000_000),
    UnixNanos::from(1_000_000_100),
);

On this page