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

Where does Massive's crypto data come from?

From five exchanges: Binance, Bitfinex, Bitstamp, Coinbase and Kraken. Crypto has no consolidated tape, so each trade carries the exchange it happened on and there is no single official price for a pair.

Crypto is the one asset class on Massive where the venue matters to the price. US equities have a consolidated tape and a regulator requiring venues to report to it; crypto has neither, so BTC-USD on one exchange is a different number from BTC-USD on another at the same instant. Every trade carries the exchange it happened on, and combining them is your decision to make.

Applies to

  • Plans: a Currencies subscription, which covers crypto and forex.
  • Endpoints: the crypto REST endpoints and the /crypto WebSocket cluster, where trades are XT, quotes XQ and aggregate bars XA and XAS.
  • Asset classes: crypto, with over 600 pairs.

Why there is no single price

There is no single price because crypto trades on independent venues in different jurisdictions with different fee structures and different pools of liquidity, and nothing requires them to agree or to report to a central processor. A pair can trade at meaningfully different prices on two exchanges at the same moment, and neither is wrong.

That has three consequences for anything you build:

  1. An aggregate bar for a pair is built across the venues we take, so it is a view of the market rather than a quotation from one exchange.
  2. Comparing a Massive price with one from a single exchange will show differences that are real, not errors.
  3. If your use needs one venue's prices specifically, filter on the exchange field rather than using the consolidated view.

How to see which exchange a trade came from

curl -X GET "https://api.massive.com/v3/reference/exchanges?asset_class=crypto&apiKey=YOUR_API_KEY"

Response

{
  "results": [
    { "id": 1, "type": "exchange", "name": "Coinbase", "locale": "global" },
    { "id": 2, "type": "exchange", "name": "Bitfinex", "locale": "global" },
    { "id": 6, "type": "exchange", "name": "Bitstamp", "locale": "global" },
    { "id": 10, "type": "exchange", "name": "Binance", "locale": "global" },
    { "id": 23, "type": "exchange", "name": "Kraken", "locale": "global" }
  ],
  "status": "OK"
}

The exchange field on a crypto trade indexes into this list, which is again a separate id space from stocks and options.

If you see an error

A price that differs from your exchange's own is expected rather than an error. Check which venue you are comparing against.

A pair that returns nothing is probably not traded on any of the five. Search /v3/reference/tickers?market=crypto for what is.

Crypto data over a weekend is normal: crypto does not close, unlike forex.

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.