index_snapshot_market_value
FreeValueStandardPro
Get the latest market value snapshot for one or more index symbols.
Code Example
rust
let data = tdx.index_snapshot_market_value(&["SPX"]).await?;
for t in &data {
println!("date={} market_bid={:.4} market_ask={:.4} market_price={:.4}",
t.date, t.market_bid, t.market_ask, t.market_price);
}python
data = tdx.index_snapshot_market_value(["SPX"])
for t in data:
print(f"date={t.date} "
f"market_bid={t.market_bid:.4f} market_ask={t.market_ask:.4f} market_price={t.market_price:.4f}")typescript
const data = tdx.indexSnapshotMarketValue(['SPX']);
for (const t of data) {
console.log(`date=${t.date} market_bid=${t.market_bid} market_ask=${t.market_ask} market_price=${t.market_price}`);
}cpp
auto data = client.index_snapshot_market_value({"SPX"});
for (const auto& t : data) {
printf("date=%d market_bid=%.4f market_ask=%.4f market_price=%.4f\n",
t.date, t.market_bid, t.market_ask, t.market_price);
}Parameters
symbolsstring[]requiredOne or more index symbols
min_timestringoptionalMinimum time of day as milliseconds from midnight
Response
Returns an array of MarketValueTick records with market value fields:
market_bidf64Market bid price
market_askf64Market ask price
market_pricef64Market price
ms_of_dayu32Milliseconds from midnight ET
dateu32Date as
YYYYMMDD integerSample Response
json
[
{"date": 20260402, "market_bid": 5214.50, "market_ask": 5215.00, "market_price": 5214.75}
]Market value snapshot for SPX.
Notes
- Returns an array of MarketValueTick records (typed per SDK).
- Market bid/ask/price represent the latest quoted values.