index_snapshot_price
FreeValueStandardPro
Get the latest price snapshot for one or more index symbols.
Code Example
rust
let data = tdx.index_snapshot_price(&["SPX", "NDX"]).await?;
for t in &data {
println!("date={} ms_of_day={} price={:.2}", t.date, t.ms_of_day, t.price);
}python
data = tdx.index_snapshot_price(["SPX", "NDX"])
for t in data:
print(f"date={t.date} ms_of_day={t.ms_of_day} price={t.price:.2f}")typescript
const data = tdx.indexSnapshotPrice(['SPX', 'NDX']);
for (const t of data) {
console.log(`date=${t.date} ms_of_day=${t.ms_of_day} price=${t.price}`);
}cpp
auto data = client.index_snapshot_price({"SPX"});
for (const auto& t : data) {
printf("date=%d ms_of_day=%d price=%.2f\n", t.date, t.ms_of_day, t.price);
}Parameters
symbolsstring[]requiredOne or more index symbols
min_timestringoptionalMinimum time of day as milliseconds from midnight
Response
Returns an array of PriceTick records with price fields:
pricef64Current index price/level
ms_of_dayu32Milliseconds from midnight ET
dateu32Date as
YYYYMMDD integerSample Response
json
[
{"date": 20260402, "ms_of_day": 57600000, "price": 6899.87},
{"date": 20260402, "ms_of_day": 57600000, "price": 21256.72},
{"date": 20260402, "ms_of_day": 57600000, "price": 18.42}
]Latest price for SPX, NDX, and VIX.
Notes
- Returns an array of PriceTick records (typed per SDK).
- For OHLC-structured data, use index_snapshot_ohlc instead.