Market Value
FreeValueStandardPro
Get the latest market value snapshot for one or more indices.
- Retrieves a real-time last index market value.
- Exchanges typically generate a price report every second for popular indices like SPX.
rust
pub fn index_snapshot_market_value(&self, symbols: &[&str]) -> IndexSnapshotMarketValueBuilder<'_>Optional parameters chain on the builder: .min_time(&str). Execute with .await → Result<Vec<MarketValueTick>, Error>, or decode chunk-by-chunk with .stream(handler).
Example
rust
let rows = tdx.index_snapshot_market_value(&["SPX"]).await?;
for t in &rows {
println!("date={} market_price={}", t.date, t.market_price);
}Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
symbol | symbols | yes | — | Comma-separated ticker symbols (e.g. AAPL,MSFT) |
min_time | string | no | — | Minimum time filter |
timeout_ms | int | no | — | Per-request deadline in milliseconds. 0 means no deadline. |
Response
Rows of MarketValueTick:
| Field | Type | Description |
|---|---|---|
ms_of_day | i32 | Milliseconds since midnight Eastern Time. |
market_bid | f64 | Last market bid. |
market_ask | f64 | Last market ask. |
market_price | f64 | Market value derived from the last NBBO. |
date | i32 | Trading date as a YYYYMMDD integer. |