Skip to content

Price Snapshot

StandardPro

REQUIRED

The Theta Terminal must be running to access data.

Behavior

Retrieves a real-time last index price. Exchanges typically generate a price report every second for popular indices like SPX.

Sample URL

Paste the URL below into your browser while the Theta Terminal is running.

http://127.0.0.1:25510/v2/snapshot/index/price?root=SPX

Output Descriptions

Field Description
ms_of_day Milliseconds since 00:00:00.000 (midnight) ET.
price The reported price of the index.
date The date the price report was generated formatted as YYYYMMDD.

Parameters

Query Parameters

rootRequired  -

The symbol of the security. Option underlyings for indices might have special tickers.

Type: string (Default: SPX)

Responses

OK
JSON
{
"header": {
"id": 0,
"latency_ms": 0,
"error_type": "string",
"error_msg": "string",
"next_page": null,
"format": [
"ms_of_day",
"price",
"date"
]
},
"response": [
[
35100000,
4735.27,
20240102
]
]
}

Sample Code

py