Knowledge Base/Where does Massive's stock data come from?

Where does Massive's stock data come from?

From the two US securities information processors, the Consolidated Tape Association and the UTP plan, which consolidate every US exchange, plus the FINRA facilities that carry off-exchange prints. That is the whole tape, not a sample of venues.

Massive's US stock data is the whole consolidated tape rather than a selection of venues, which matters because a provider connecting to exchanges one at a time will be missing prints you can see elsewhere. Two processors carry it between them, split by where a security is listed, and off-exchange executions arrive on the same tape through the FINRA facilities.

Applies to

  • Plans: every plan. The source is the same on all of them; the tier decides how recent and how far back you can see it.
  • Endpoints: /v3/trades, /v3/quotes, /v2/aggs and the /stocks WebSocket cluster.
  • Asset classes: US stocks and ETFs, including OTC.

What the sources are

The sources are recorded on the data itself: every trade and quote carries an exchange id, and the exchanges endpoint names each one:

TypeExamplesWhat it is
SIPConsolidated Tape Association, Unlisted Trading PrivilegesThe two consolidated feeds
exchangeNYSE American, NYSE National, Nasdaq and the restThe 18 lit venues
TRFFINRA NYSE TRF, FINRA Nasdaq TRF Carteret and ChicagoWhere off-exchange executions are reported
ORFOTC Equity SecurityOver-the-counter reporting

Which SIP a security is on depends on where it is listed rather than where it trades, which is why a single stock's prints all come through one of the two.

How to see which source a trade came through

Every trade names its venue and its tape, so you can see the consolidation in the data itself:

curl -X GET "https://api.massive.com/v3/trades/AAPL?timestamp.gte=1789042200000000000&limit=2&order=asc&sort=timestamp&apiKey=YOUR_API_KEY"

Response

{
  "results": [
    { "exchange": 4, "trf_id": 202, "tape": 3, "conditions": [12, 37],
      "price": 317.6537, "size": 0, "sip_timestamp": 1789042201685102864 },
    { "exchange": 21, "tape": 3, "conditions": [12, 37],
      "price": 317.68, "size": 34, "sip_timestamp": 1789042202092389472 }
  ],
  "status": "OK"
}

The first of those carries a trf_id, so it reached the tape through a FINRA reporting facility rather than from a lit exchange; the second has none. tape says which processor consolidated it: 1 and 2 are CTA, 3 is UTP. /v3/reference/exchanges turns the exchange integer into a venue name.

Why the consolidated feed rather than individual exchanges

The consolidated feed is the source because it is the market's own definition of what happened. Taking individual exchange feeds would mean assembling a national best bid and offer ourselves and deciding, thousands of times a second, which venue was best, and any two vendors doing that independently would disagree. The SIPs already perform that consolidation under rules everyone is bound by, so a price from the tape is the price the market agrees on.

The cost is a small processing delay at the SIP, which is why participant_timestamp and sip_timestamp differ on every trade, and that gap is upstream of us.

If you see an error

A trade with an exchange id you do not recognize is likely a reporting facility rather than a venue. Check the type field on the exchanges endpoint.

Prices that differ from a single exchange's own feed are expected: the tape is consolidated and a single venue's feed is not.

Data for a non-US listing is not a sourcing question. Massive's equity coverage is US only.

Related


Was this article helpful?

Modernizing Wall St.

Reimagining financial market data for the 21st century.

Schedule a demo

Talk with our market data experts

Recommended

Can't find the answer you're looking for? Contact our team.
  • Title
    Are all indices available through the basic subscription tier?
    Data Coverage Category

    Data Coverage

    Indices Category

    Indices

    Description
    No, and the ones it withholds are the famous ones: SPX, DJI, RUT and VIX all need a paid Indices tier. Basic still reaches more than 10,000 of the 13,000-odd indices Massive publishes, and NDX and the Nasdaq Composite are among them.
  • Title
    Does Massive offer dark pool data?
    Data Coverage Category

    Data Coverage

    Stocks Category

    Stocks

    Description
    Yes. Off-exchange prints, which include dark pool executions, arrive on the ordinary trades feed and are identified by an exchange ID of 4. There is no separate dark pool endpoint, and no way to tell which individual venue a print came from.
  • Title
    Does Massive offer pre-market and after-hours data?
    FAQ Category

    FAQ

    Stocks Category

    Stocks

    Description
    Yes. Every extended-hours trade and quote is published, from 04:00 to 20:00 Eastern. There is no session parameter, so you select a session with timestamps, and expect far fewer aggregate bars outside regular hours because many extended-hours trades are odd lots that cannot set a price.