Quote
FreeValueStandardPro
Fetch every stock'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.stock_flat_file_quote(
"",
)
for t in rows:
print(t.interval_ms_of_day, t.bid, t.ask) Sample response ·
JSON[
{
"ask": "303.66",
"ask_condition": 0,
"ask_exchange": 1,
"ask_size": 100,
"bid": "303.64",
"bid_condition": 0,
"bid_exchange": 7,
"bid_size": 200,
"date": 20260803,
"interval_ms_of_day": 34260000,
"quote_ms_of_day": 34259871,
"root": "AAPL"
},
{
"ask": "303.73",
"ask_condition": 0,
"ask_exchange": 7,
"ask_size": 300,
"bid": "303.71",
"bid_condition": 0,
"bid_exchange": 1,
"bid_size": 100,
"date": 20260803,
"interval_ms_of_day": 34320000,
"quote_ms_of_day": 34319990,
"root": "AAPL"
},
{
"ask": "303.6",
"ask_condition": 0,
"ask_exchange": 73,
"ask_size": 100,
"bid": "303.58",
"bid_condition": 0,
"bid_exchange": 7,
"bid_size": 400,
"date": 20260803,
"interval_ms_of_day": 34380000,
"quote_ms_of_day": 34379402,
"root": "AAPL"
}
]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. |