Price
FreeValueStandardPro
Get the latest price snapshot for one or more indices.
- Retrieves a real-time last index price.
- Exchanges typically generate a price report every second for popular indices like SPX.
SPX
from thetadatadx import Client
client = Client.from_env()
rows = client.market_data.index_snapshot_price(
"SPX",
)
for t in rows:
print(t.date, t.ms_of_day, t.price) Sample response ·
JSON[
{
"price": 6395.78,
"symbol": "SPX",
"timestamp": "2025-08-20T16:02:06"
}
]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 PriceTick:
| Field | Type | Description |
|---|---|---|
ms_of_day | i32 | Milliseconds since midnight Eastern Time. |
price | f64 | Index value. |
date | i32 | Trading date as a YYYYMMDD integer. |