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[]requiredOne or more index symbols
min_timestringoptionalMinimum time of day as milliseconds from midnight
Response
Returns a Vec<MarketValueTick> with market value fields:
market_valuef64Market capitalization / value
ms_of_dayu32Milliseconds from midnight ET
dateu32Date as
YYYYMMDD integerNotes
- Returns
Vec<MarketValueTick>in Rust. - Market value represents the total capitalization of the index constituents.