Historical Options Data API: What to Check Before You Build
A historical options data API checklist: trades, quotes, open interest, Greeks, coverage, timestamps, pagination and rate limits, with a worked sizing example.
By OrderMap Research8 min read
On this page
Decide what "historical options data" means for you
"Historical options data API" covers several very different products. A backtest of an end-of-day strategy needs daily prices and open interest. A study of how 0DTE flow behaves needs every trade, with the quote in force at the time. A gamma exposure model needs open interest, implied volatility and a consistent spot price. An options flow API adds classifications on top of trades. Before comparing vendors, write down which of these you actually need, because the cost, size and complexity differ by orders of magnitude.
This guide is a checklist for evaluating any options data API, a worked example of sizing a historical pull, and, at the end, a description of OrderMap's own API strictly as its documentation describes it, limits included. OrderMap publishes this article. For a broader comparison of analytics APIs, see the top 5 trading analytics APIs.
The data types, from smallest to largest
| Data type | Typical grain | What it answers | Watch out for |
|---|---|---|---|
| Contract reference | Per contract | What existed on a date | Roots that share an underlying, such as SPX and SPXW |
| End-of-day prices | Per contract per day | Daily backtests | Settlement versus last trade |
| Open interest | Per contract per day | Positioning snapshot | Published once a day for the previous close |
| Greeks and implied volatility | Per contract per interval | Risk and model inputs | Model, rates and dividends used |
| Trades | Every print | Flow, volume, premium | Conditions, cancellations, complex orders |
| Quotes | Every quote change | Spreads, side classification | Enormous volume; often sampled |
| Classified flow | Every print plus labels | Aggression, sweeps, sentiment | Labels are vendor inferences |
US listed options trades and quotes are consolidated by OPRA, the securities information processor for the options exchanges. Everything a vendor sells starts from that feed or from an exchange's own data, and is shaped by what the vendor captured, kept and calculated.
Open interest is a daily number
Open interest counts open contracts and is published once a day, reflecting the previous close; the Options Industry Council's note on why open interest matters explains how it changes. Any intraday "positioning" figure built on open interest is yesterday's positions plus an estimate. Read options volume vs open interest before building on it.
The checklist
Step 1: Coverage
Which underlyings, roots and expirations? Index roots such as SPX and SPXW, or NDX and NDXP, may be separate. Are weeklies and same-day expirations included, and from when?
Step 2: History depth
How many days or years of each data type, and does your plan see all of it? History windows often differ by data type and by plan.
Step 3: Timestamps
Precision, time zone and which clock: exchange, feed or vendor receipt. Mixed clocks break any study of sequence.
Step 4: Corrections
How are cancelled and corrected prints handled, and does a page already delivered get updated?
Step 5: Derived fields
For Greeks, implied volatility and trade sides: which model, which rates, which quote? Are the definitions documented?
Step 6: Gaps
Does the response say when data is missing, delayed or withheld, or does it silently return less?
Step 7: Limits
Rate limits, concurrency, page sizes, timeouts and how long cursors stay valid.
Step 8: Licensing
What may you store, display or redistribute? Internal research, a personal app and a product for customers are different agreements.
Licensing is a design input
Exchange market data comes with usage terms, and they travel with the data through every vendor. Whether you may store raw prints, show them to other people, or only show derived numbers such as totals and charts depends on the agreement, and the answer can differ between real-time and delayed data and between professional and non-professional users. Settle this before choosing a storage design: a product that displays raw prints to customers has different obligations from an internal research database, and a vendor that cannot tell you what you may redistribute is telling you something about the support you will get later.
Start small, then widen
If you are unsure what you need, start with aggregates such as daily volume and premium by strike, net flow per minute or open interest by expiration. They answer many research questions at a tiny fraction of the cost of tick data, and they tell you quickly whether a deeper pull is worth it.
Classification is where vendors differ most
An order flow API for options typically labels each print by where it traded relative to the quote: at or above the ask, at or below the bid, or in between. It may group prints across exchanges into a sweep, or flag large single prints as blocks. These are useful and they are inferences. Two vendors can label the same print differently because they used a different quote, a different time tolerance or different grouping rules. Ask for the definitions, and test them on a handful of prints you can check by hand. Our guides to options flow premium and direction and sweeps, blocks and spreads explain the labels.
Check a classification by hand
Pick five prints from a quiet minute and verify the vendor's side label yourself. The example is invented.
| Price | Bid at the time | Ask at the time | Your label | Vendor label | |
|---|---|---|---|---|---|
| 1 | 4.20 | 4.10 | 4.20 | At ask | At ask |
| 2 | 4.15 | 4.10 | 4.20 | Mid | Mid |
| 3 | 4.12 | 4.10 | 4.20 | Near bid | Bid |
| 4 | 4.25 | 4.10 | 4.20 | Above ask | Above ask |
| 5 | 4.10 | 4.15 | 4.25 | Below bid | Bid |
Prints 3 and 5 disagree for two different reasons. Print 3 is a granularity difference: the vendor merges "near bid" into "bid". Print 5 is a quote timing difference: you used the quote at the reported time, which had moved up, while the vendor used an earlier quote at which 4.10 was the bid. Neither is necessarily wrong, but if your research depends on the distinction, you need to know which rule applies.
Timestamps and sessions
Options history is full of session boundaries that are easy to get wrong. US equity options regular hours end at 4:00 p.m. Eastern Time, while SPX and some other index options trade until 4:15 p.m. and, on Cboe, in extended sessions overnight. A "day" of SPX flow can therefore mean the regular session, the regular session plus the curb, or a session that started the previous evening. Decide which you want, then check how the vendor labels sessions and dates.
Store timestamps in UTC with the original precision, and convert to Eastern Time only for display. Daylight saving changes shift every Eastern boundary twice a year in UTC terms, and a backtest that hard-codes UTC session times will be an hour off for part of the year. For index options overnight, see overnight GEX for how the sessions fit together.
A worked sizing example
Suppose you want every trade in one busy index root for 30 sessions. The numbers below are invented to show the method; replace them with the vendor's documented limits and your own estimate of volume.
| Input | Value | Note |
|---|---|---|
| Prints per session | 1,200,000 | Invented estimate |
| Sessions | 30 | One month |
| Rows per page | 500 | Maximum page size |
| Requests per minute | 250 | Rate limit |
| Pages needed | 72,000 | 1.2M × 30 ÷ 500 |
| Minimum time | 288 minutes | 72,000 ÷ 250 |
- Rows
- 36 million
- 1.2M prints × 30 sessions
- Pages
- 72,000
- At 500 rows per page
- At 250 per minute
- About 4.8 hours
- If nothing else runs
- Storage at 200 bytes
- About 7.2 GB
- Before compression
Three lessons from even a rough calculation:
- Filter on the server. If you only need prints above a premium threshold or in certain expirations, filtering at the API can cut the page count by an order of magnitude.
- Pull aggregates when they answer the question. Premium by strike or net flow by minute is one request per session, not thousands.
- Plan for retries. Over 72,000 requests, some will be rate-limited or time out. A pull that cannot resume from its last cursor will eventually restart from zero.
Building the client properly
Most problems with data APIs are client problems. A few habits avoid them:
cursor = null
repeat:
response = GET /endpoint?filters&limit=500&cursor_id=cursor
if status in (429, 503): wait Retry-After, then retry the same request
store response.data
log response.meta.coverage
cursor = response.pagination.next_cursor_id
until cursor is nullStop on a null cursor, not on a short page: filtered scans can return fewer rows than the limit while more remain. Keep every other parameter identical between pages. Respect Retry-After. Log coverage fields with the data, so a gap discovered next month can be traced to the response that reported it. Use a small pool of workers rather than unlimited parallel requests; most APIs cap concurrent requests per account.
Futures order flow APIs are a different case
An order flow API for futures solves a simpler classification problem. CME futures trades are matched on one central order book, and the exchange's trade messages identify the aggressing side, so buyer- and seller-initiated volume does not have to be inferred from a consolidated quote across many exchanges as it does for options. The hard parts move elsewhere: capturing every trade without gaps, handling contract rolls, and defining sessions. Footprints, cumulative delta and volume profiles from an API are only as complete as the capture behind them, so look for explicit gap reporting. For the concepts, see footprint charts and cumulative delta.
Testing a vendor in an afternoon
Read the documentation for coverage, history, limits and licensing. Note anything undocumented as a question for support.
Pull one session for one contract. Count rows, check timestamps, look for corrections, compare a few prints with a second source.
Run your real query shape at small scale: the filters, page sizes and concurrency you plan to use. Watch rate-limit headers and errors.
Estimate the full pull with the sizing method above, and price it in money and time. Decide with the numbers.
Questions to put to any vendor
Is the data captured by you or resold?
Neither is wrong, but it changes who can answer questions about gaps and definitions.
What happens when your capture had a gap?
Good answers: the response says so, and the gap is never filled with estimates. Bad answer: the data is always complete.
Are Greeks computed by you, and with what inputs?
Model, volatility source, rates, dividends and the spot price used. Small differences matter for short-dated contracts.
How are prints classified?
Which quote, what tolerance, how sweeps are grouped, how complex and multi-leg orders are treated.
What may I redistribute?
Displaying data to your own customers usually requires different terms from internal research. Ask before you build the product.
Common mistakes
- Choosing on price per request. The cost that matters is what it takes to get the dataset you need, including your engineering time.
- Ignoring roots. SPX and SPXW, or monthly and weekly roots, can be separate symbols with separate flows.
- Treating labels as facts. "Bullish sweep" is a vendor's inference from side, grouping and contract type.
- Using open interest intraday as if it were live. It is yesterday's number.
- Skipping the coverage fields. A response that says it is incomplete is only useful if you read it.
OrderMap's Developer API, as documented
OrderMap's Developer API is read-only: it places no orders. It serves REST endpoints under /v1, WebSocket streams and an MCP server for AI assistants, with one key and one rate limit across all three, and an OpenAPI 3.1 document. The documentation is public. What follows is taken from it.
| What it offers | Documented limits |
|---|---|
| Classified option prints and flow | Sides and sweeps are inferred, not exchange facts |
| Historical options flow by date | One date and session per request, up to 90 s load |
| Contract Greeks and IV by interval | Regular session only; sub-minute up to 7 days |
| Open interest by strike and history | Previous close, published once a day |
| Modeled exposure and key levels | Dealer positioning is an assumption |
| Futures footprint, profile, CVD | Current or last completed Globex session only |
| Stock dark pool prints and levels | Levels only from when capture began |
| Same rate limit on every plan | 250 a minute, 30 a second, 4 in flight |
Plans set the history window: the plans page lists 30 days on API Developer and 365 days on API Pro, with overnight option data and WebSocket streams on API Pro; prices are on the pricing page. There are no per-endpoint prices or monthly quotas; usage is limited by the rate limits and concurrency. Paginated endpoints use cursors that live 24 hours, and option trades and flow pages hold up to 500 rows, as the pagination guide explains. Every response carries coverage and delay fields, and missing data is reported rather than filled; the coverage page lists the limits by area.
The reference pages cover the routes this article discusses: option trades, option flow, open interest history and futures order flow.
What it does not offer, by its documentation: there is no options quote stream on the public plans, futures order flow history is limited to the current or last completed session, option exposure timelines cover about the last seven days, and the API does not reconstruct an exchange order book beyond the depth it captured. If you need years of tick-level option quotes, a dedicated historical data vendor is the better fit.
Questions
US listed options trades and quotes are consolidated and distributed by OPRA, the securities information processor for exchange-listed options. Vendors capture that feed, store it and sell access, often adding derived data such as Greeks, implied volatility and trade classifications.
An options flow API returns option trades with extra classification: whether each print traded at the bid or ask, whether prints were grouped into sweeps or blocks, premium and sentiment labels. Those labels are inferences made by the vendor, not exchange facts, so check how they are defined.
Some services offer limited free tiers, delayed data or end-of-day files. Full tick-level trade and quote history is expensive to capture and store, and options data carries exchange licensing terms, so free access is usually limited in depth, history or permitted use.
Check which underlyings and roots are covered, how far history goes, whether you get trades, quotes or both, timestamp precision and time zone, how cancellations and corrections are handled, how open interest and Greeks are timed, rate limits, pagination and licensing terms for your use.
An options data API delivers contracts, trades, quotes and open interest. An order flow API delivers trades classified by aggressor side and aggregated into views such as footprints, delta or flow by strike. Many products offer both; the derived views depend on how the raw data was classified.
