Quote
FreeValueStandardPro
Fetch every option contract's 1-minute NBBO quote intervals for one date: one row per minute in which a new quote was reported. The vendor keeps the most recent 7 calendar days.
from thetadatadx import Client
client = Client.from_env()
rows = client.market_data.option_flat_file_quote(
"",
)
for t in rows:
print(t.interval_ms_of_day, t.bid, t.ask) 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,
"date": 20260803,
"expiration": 20260821,
"interval_ms_of_day": 34260000,
"quote_ms_of_day": 34255113,
"right": "C",
"root": "AAPL",
"strike": "360.0"
},
{
"ask": "0.09",
"ask_condition": 50,
"ask_exchange": 5,
"ask_size": 44,
"bid": "0.07",
"bid_condition": 50,
"bid_exchange": 47,
"bid_size": 12,
"date": 20260803,
"expiration": 20260821,
"interval_ms_of_day": 34440000,
"quote_ms_of_day": 34382057,
"right": "C",
"root": "AAPL",
"strike": "360.0"
},
{
"ask": "0.08",
"ask_condition": 50,
"ask_exchange": 5,
"ask_size": 31,
"bid": "0.07",
"bid_condition": 50,
"bid_exchange": 47,
"bid_size": 20,
"date": 20260803,
"expiration": 20260821,
"interval_ms_of_day": 34500000,
"quote_ms_of_day": 34499001,
"right": "C",
"root": "AAPL",
"strike": "360.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 IntervalQuoteTick:
| Field | Type | Description |
|---|---|---|
interval_ms_of_day | i32 | Time of the interval the row samples, milliseconds since midnight ET. |
quote_ms_of_day | i32 | Time the quote in effect at the interval was reported, milliseconds since midnight ET. |
bid_size | i32 | 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 | 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 | 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 | 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.