m.stocks.quotes¶
National best bid and offer quotes of US-listed stocks, tick by tick.
Call it from a session m, made with dm.MassiveSession():
m.stocks.quotes(symbols, *, on_error=None)
- Methods:
blink(),append_only(),ring(capacity),last_by(by='Symbol'),history(start, end=None) - Read from: REST, flat files, WebSocket
Arguments¶
A linked argument follows its rule under shared arguments on the dataset index.
| Argument | Description |
|---|---|
symbols |
Stock tickers, or dm.ALL for every ticker. |
on_error |
What a bad symbol or row does in this call (dm.ErrorPolicy). None, the default, takes each cause from the session's MassiveConfig.on_error. |
Plans¶
How recent the data is on each of Massive's plans, and how far back its history goes, as Massive's pages state them.
| Plan | Quotes (flat files) | Quotes (REST) | Quotes (WebSocket) |
|---|---|---|---|
| Stocks Basic | Not included | Not included | Not included |
| Stocks Starter | Not included | Not included | Not included |
| Stocks Developer | Not included | Not included | Not included |
| Stocks Advanced | End-of-day, All history | Real-time, All history | Real-time |
| Stocks Business | End-of-day, All history | End-of-day, All history | Not included |
| Stocks Business + Expansion | Real-time, All history | Real-time |
Columns¶
| Column | Type | Description | Read from |
|---|---|---|---|
Symbol |
String | The row's instrument, as Massive's ticker. From REST: the request's stockTicker parameter; flat files ticker: "The exchange symbol that this item is traded under."; WebSocket sym: "The ticker symbol for the given stock." |
REST, flat files, WebSocket |
Date |
String | The trading day of the row, as ISO yyyy-MM-dd text: the New York date of Timestamp. |
REST, flat files, WebSocket |
Timestamp |
Instant | The row's event time. From REST and flat files sip_timestamp: "The nanosecond accuracy SIP Unix Timestamp. This is the timestamp of when the SIP received this quote from the exchange which produced it."; WebSocket t: "The SIP timestamp in Unix MS." |
REST, flat files, WebSocket |
BidPrice |
double | The bid price. | REST, flat files, WebSocket |
BidSize |
double | The bid size. This represents the number of shares buyers are bidding for at the given bid price. | REST, flat files, WebSocket |
AskPrice |
double | The ask price. | REST, flat files, WebSocket |
AskSize |
double | The ask size. This represents the number of shares sellers are offering at the given ask price. | REST, flat files, WebSocket |
BidExchange |
long | The bid exchange ID | REST, flat files, WebSocket |
AskExchange |
long | The ask exchange ID | REST, flat files, WebSocket |
Conditions |
long[] | A list of condition codes. See Stocks Condition Codes (https://massive.com/docs/rest/stocks/market-operations/condition-codes) for what each code means. | REST, flat files, WebSocket |
Indicators |
long[] | A list of indicator codes. See the Conditions and Indicators (https://massive.com/glossary/conditions-indicators) glossary for what each code means. | REST, flat files, WebSocket |
ParticipantTimestamp |
Instant | The nanosecond accuracy Participant/Exchange Unix Timestamp. This is the timestamp of when the quote was actually generated at the exchange. | REST, flat files, WebSocket |
SequenceNumber |
long | The sequence number represents the sequence in which quote events happened. These are increasing and unique per ticker symbol, but will not always be sequential (e.g., 1, 2, 6, 9, 10, 11). Values reset after each trading session/day. | REST, flat files, WebSocket |
Tape |
long | There are 3 tapes which define which exchange the ticker is listed on. These are integers in our objects which represent the letter of the alphabet. Eg: 1 = A, 2 = B, 3 = C. * Tape A is NYSE listed securities * Tape B is NYSE ARCA / NYSE American * Tape C is NASDAQ | REST, flat files, WebSocket |
TrfTimestamp |
Instant | The nanosecond accuracy TRF (Trade Reporting Facility) Unix Timestamp. This is the timestamp of when the trade reporting facility received this quote. | REST, flat files |
TimestampInsert |
Instant | When the library received the row, by the local clock. Rows that arrive together share it. It isn't Massive's time, and later rows can carry earlier times. On history() rows, it's the download time. |
REST, flat files, WebSocket |
Massive fields
The Massive field behind each column, by source. An empty cell means the source doesn't carry the column, or the library computes it. request marks a value the library fills from the request.
| Column | REST field | Flat-file field | WebSocket field |
|---|---|---|---|
Symbol |
request | ticker |
sym |
Date |
|||
Timestamp |
sip_timestamp |
sip_timestamp |
t |
BidPrice |
bid_price |
bid_price |
bp |
BidSize |
bid_size |
bid_size |
bs |
AskPrice |
ask_price |
ask_price |
ap |
AskSize |
ask_size |
ask_size |
as |
BidExchange |
bid_exchange |
bid_exchange |
bx |
AskExchange |
ask_exchange |
ask_exchange |
ax |
Conditions |
conditions |
conditions |
c |
Indicators |
indicators |
indicators |
i |
ParticipantTimestamp |
participant_timestamp |
participant_timestamp |
pt |
SequenceNumber |
sequence_number |
sequence_number |
q |
Tape |
tape |
tape |
z |
TrfTimestamp |
trf_timestamp |
trf_timestamp |
|
TimestampInsert |
Massive's documentation¶
The plan tables and most column descriptions are Massive's, from its documentation as fetched on 2026-12-01, with a few corrected where Massive's are wrong. The library writes its own descriptions of the columns it names or computes, such as Symbol and TimestampInsert.