Skip to content

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.

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

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.

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.

Released under the Apache-2.0 License.