EOD
FreeValueStandardPro
Fetch the end-of-day report of every option contract for one date. The vendor keeps the most recent 7 calendar days.
from thetadatadx import Client
client = Client.from_env()
rows = client.market_data.option_flat_file_eod(
"",
)
for t in rows:
print(t.date, t.open, t.close, t.volume) Sample response ·
JSON[
{
"ask": "0.08",
"ask_condition": 50,
"ask_exchange": 5,
"ask_size": 38,
"bid": "0.06",
"bid_condition": 50,
"bid_exchange": 47,
"bid_size": 36,
"close": "0.09",
"count": 81,
"date": 20260803,
"expiration": 20260821,
"high": "0.24",
"low": "0.06",
"ms_of_day": 62411098,
"ms_of_day2": 57583895,
"open": "0.14",
"right": "C",
"root": "AAPL",
"strike": "360.0",
"volume": 410
},
{
"ask": "58.65",
"ask_condition": 50,
"ask_exchange": 47,
"ask_size": 11,
"bid": "54.85",
"bid_condition": 50,
"bid_exchange": 47,
"bid_size": 10,
"close": "54.07",
"count": 8,
"date": 20260803,
"expiration": 20260821,
"high": "54.07",
"low": "54.04",
"ms_of_day": 62411098,
"ms_of_day2": 38836349,
"open": "54.06",
"right": "P",
"root": "AAPL",
"strike": "360.0",
"volume": 8
}
]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. |
Every row carries expiration (YYYYMMDD), strike (dollars) and right ("C" / "P"); with the row's root, which the whole result carries per row, they identify the contract.