Skip to content

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.

Client
Auth
Style
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 ​

NameTypeRequiredDefaultDescription
datedateyes-Date YYYYMMDD
timeout_msintno-Per-request deadline in milliseconds. 0 means no deadline.

Response ​

Rows of IntervalQuoteTick:

FieldTypeDescription
interval_ms_of_dayi32Time of the interval the row samples, milliseconds since midnight ET.
quote_ms_of_dayi32Time the quote in effect at the interval was reported, milliseconds since midnight ET.
bid_sizei32NBBO bid size.
bid_exchangei32Exchange 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.
bidf64NBBO bid price.
bid_conditioni32Quote 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_sizei32NBBO ask size.
ask_exchangei32Exchange 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.
askf64NBBO ask price.
ask_conditioni32Quote 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.
datei32Trading date as a YYYYMMDD integer.

Released under the Apache-2.0 License.