Skip to content

Platform

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

Abstract schematic of a strike by time grid feeding rows of structured records
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.

Pipeline from OPRA feed to vendor capture, derivation, API and your code, with a check under each step
Schematic. Every step between the exchange feed and your code can drop, delay or reinterpret data. Ask what happens at each arrow.

The data types, from smallest to largest

Data typeTypical grainWhat it answersWatch out for
Contract referencePer contractWhat existed on a dateRoots that share an underlying, such as SPX and SPXW
End-of-day pricesPer contract per dayDaily backtestsSettlement versus last trade
Open interestPer contract per dayPositioning snapshotPublished once a day for the previous close
Greeks and implied volatilityPer contract per intervalRisk and model inputsModel, rates and dividends used
TradesEvery printFlow, volume, premiumConditions, cancellations, complex orders
QuotesEvery quote changeSpreads, side classificationEnormous volume; often sampled
Classified flowEvery print plus labelsAggression, sweeps, sentimentLabels 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

  1. 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?

  2. 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.

  3. Step 3: Timestamps

    Precision, time zone and which clock: exchange, feed or vendor receipt. Mixed clocks break any study of sequence.

  4. Step 4: Corrections

    How are cancelled and corrected prints handled, and does a page already delivered get updated?

  5. Step 5: Derived fields

    For Greeks, implied volatility and trade sides: which model, which rates, which quote? Are the definitions documented?

  6. Step 6: Gaps

    Does the response say when data is missing, delayed or withheld, or does it silently return less?

  7. Step 7: Limits

    Rate limits, concurrency, page sizes, timeouts and how long cursors stay valid.

  8. 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.

PrintPriceBid at the timeAsk at the timeYour labelVendor label
14.204.104.20At askAt ask
24.154.104.20MidMid
34.124.104.20Near bidBid
44.254.104.20Above askAbove ask
54.104.154.25Below bidBid

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.

Illustrative example only: invented volume with example limits. Your figures depend on the vendor's documentation and actual trade counts.
InputValueNote
Prints per session1,200,000Invented estimate
Sessions30One month
Rows per page500Maximum page size
Requests per minute250Rate limit
Pages needed72,0001.2M × 30 ÷ 500
Minimum time288 minutes72,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 null

Stop 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.

Explore the API

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.

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 offersDocumented limits
Classified option prints and flowSides and sweeps are inferred, not exchange facts
Historical options flow by dateOne date and session per request, up to 90 s load
Contract Greeks and IV by intervalRegular session only; sub-minute up to 7 days
Open interest by strike and historyPrevious close, published once a day
Modeled exposure and key levelsDealer positioning is an assumption
Futures footprint, profile, CVDCurrent or last completed Globex session only
Stock dark pool prints and levelsLevels only from when capture began
Same rate limit on every plan250 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.

An API returns 380 rows with a limit of 500 and a non-null next cursor. What should your client do?

Read the docs

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.