EOD
FreeValueStandardPro
Fetch the end-of-day report of every index for one date. The vendor keeps the most recent 7 calendar days.
from thetadatadx import Client
client = Client.from_env()
rows = client.market_data.index_flat_file_eod(
"",
)
for t in rows:
print(t.date, t.open, t.close, t.volume) Sample response ·
JSON[
{
"ask": "0.0",
"ask_condition": 0,
"ask_exchange": 0,
"ask_size": 0,
"bid": "0.0",
"bid_condition": 0,
"bid_exchange": 0,
"bid_size": 0,
"close": "7600.5",
"count": 0,
"date": 20260803,
"high": "7610.04",
"low": "7504.78",
"ms_of_day": 62113464,
"ms_of_day2": 57915000,
"open": "7504.78",
"root": "SPX",
"volume": 0
},
{
"ask": "0.0",
"ask_condition": 0,
"ask_exchange": 0,
"ask_size": 0,
"bid": "0.0",
"bid_condition": 0,
"bid_exchange": 0,
"bid_size": 0,
"close": "15.86",
"count": 0,
"date": 20260803,
"high": "16.3",
"low": "15.54",
"ms_of_day": 62113464,
"ms_of_day2": 58456000,
"open": "16.03",
"root": "VIX",
"volume": 0
}
]Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
date | date | yes | - | Date YYYYMMDD |
timeout_ms | int | no | - | Per-request deadline in milliseconds. 0 means no deadline. |
Response
Rows of EodTick:
| Field | Type | Description |
|---|---|---|
created_ms_of_day | i32 | EOD report creation time (NOT a trade time), milliseconds since midnight ET. |
last_trade_ms_of_day | i32 | Time of the day's last trade, milliseconds since midnight ET. 0 when no trades printed that day. |
open | f64 | Opening trade price. 0.0 when no trades printed that day. |
high | f64 | Highest traded price. 0.0 when no trades printed that day. |
low | f64 | Lowest traded price. 0.0 when no trades printed that day. |
close | f64 | Closing traded price. 0.0 when no trades printed that day. |
volume | i64 | Number of contracts or shares traded. |
count | i64 | Number of trades. |
bid_size | i32 | Last NBBO bid size. |
bid_exchange | i32 | Exchange code of the NBBO bid. Zero is a code the vendor assigns a meaning, so read columns() to tell a reported zero from a response that carried no such column. |
bid | f64 | Last NBBO bid price. |
bid_condition | i32 | Quote condition code on the bid side. Zero is a code the vendor assigns a meaning, so read columns() to tell a reported zero from a response that carried no such column. |
ask_size | i32 | Last NBBO ask size. |
ask_exchange | i32 | Exchange code of the NBBO ask. Zero is a code the vendor assigns a meaning, so read columns() to tell a reported zero from a response that carried no such column. |
ask | f64 | Last NBBO ask price. |
ask_condition | i32 | Quote condition code on the ask side. Zero is a code the vendor assigns a meaning, so read columns() to tell a reported zero from a response that carried no such column. |
date | i32 | Trading date as a YYYYMMDD integer. |