Skip to content

index_snapshot_market_value

FreeValueStandardPro

Get the latest market value snapshot for one or more index symbols.

Code Example

rust
let ticks: Vec<MarketValueTick> = tdx.index_snapshot_market_value(&["SPX"]).await?;
python
mv = tdx.index_snapshot_market_value(["SPX"])
go
mv, err := client.IndexSnapshotMarketValue([]string{"SPX"})
if err != nil {
    log.Fatal(err)
}
cpp
auto mv = client.index_snapshot_market_value({"SPX"});

Parameters

symbolsstring[]required
One or more index symbols
min_timestringoptional
Minimum time of day as milliseconds from midnight

Response

Returns a Vec<MarketValueTick> with market value fields:

market_valuef64
Market capitalization / value
ms_of_dayu32
Milliseconds from midnight ET
dateu32
Date as YYYYMMDD integer

Notes

  • Returns Vec<MarketValueTick> in Rust.
  • Market value represents the total capitalization of the index constituents.

Released under the GPL-3.0-or-later License.