m.stocks.snapshots¶
Current market snapshots of US-listed stocks, one row per ticker.
Call it from a session m, made with dm.MassiveSession():
m.stocks.snapshots(symbols, *, include_otc=False, on_error=None)
- Methods:
fetch(),poll(interval) - Read from: REST
poll()by default:dm.PollMode.REPLACE, which holds only the latest poll's rows, one row perSymbolpoll(interval, mode=dm.PollMode.APPEND): appends each new state of a row, identified bySymbolandUpdated
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. |
include_otc |
True to include OTC securities. |
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 | Full Market Snapshot (REST) |
|---|---|
| Stocks Basic | Not included |
| Stocks Starter | 15-minute delayed |
| Stocks Developer | 15-minute delayed |
| Stocks Advanced | Real-time |
| Stocks Business | Real-time |
Columns¶
| Column | Type | Description |
|---|---|---|
Symbol |
String | The row's instrument, as Massive's ticker. From REST ticker: "The exchange symbol that this item is traded under." |
DayOpen |
double | The open price for the symbol in the given time period. From the day object: The most recent daily bar for this ticker. |
DayHigh |
double | The highest price for the symbol in the given time period. From the day object: The most recent daily bar for this ticker. |
DayLow |
double | The lowest price for the symbol in the given time period. From the day object: The most recent daily bar for this ticker. |
DayClose |
double | The close price for the symbol in the given time period. From the day object: The most recent daily bar for this ticker. |
DayVolume |
double | The trading volume of the symbol in the given time period. From the day object: The most recent daily bar for this ticker. |
DayVwap |
double | The volume weighted average price. From the day object: The most recent daily bar for this ticker. |
DayDecimalVolume |
String | The volume including fractional shares, respresented as a string. From the day object: The most recent daily bar for this ticker. |
DayOtc |
Boolean | Whether or not this aggregate is for an OTC ticker. This field will be left off if false. From the day object: The most recent daily bar for this ticker. |
Fmv |
double | Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us (https://massive.com/contact). |
LastQuoteBidPrice |
double | The bid price. From the lastQuote object: The most recent quote for this ticker. This is only returned if your current plan includes quotes. |
LastQuoteBidSize |
long | The bid size in lots. From the lastQuote object: The most recent quote for this ticker. This is only returned if your current plan includes quotes. |
LastQuoteAskPrice |
double | The ask price. From the lastQuote object: The most recent quote for this ticker. This is only returned if your current plan includes quotes. |
LastQuoteAskSize |
long | The ask size in lots. From the lastQuote object: The most recent quote for this ticker. This is only returned if your current plan includes quotes. |
LastQuoteSipTimestamp |
Instant | The nanosecond accuracy SIP Unix Timestamp. This is the timestamp of when the SIP received this message from the exchange which produced it. From the lastQuote object: The most recent quote for this ticker. This is only returned if your current plan includes quotes. |
LastTradePrice |
double | The price of the trade. This is the actual dollar value per whole share of this trade. A trade of 100 shares with a price of $2.00 would be worth a total dollar value of $200.00. From the lastTrade object: The most recent trade for this ticker. This is only returned if your current plan includes trades. |
LastTradeSize |
long | The size (volume) of the trade. From the lastTrade object: The most recent trade for this ticker. This is only returned if your current plan includes trades. |
LastTradeConditions |
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. From the lastTrade object: The most recent trade for this ticker. This is only returned if your current plan includes trades. |
LastTradeDecimalSize |
String | The size of the trade including fractional shares, respresented as a string. From the lastTrade object: The most recent trade for this ticker. This is only returned if your current plan includes trades. |
LastTradeId |
String | The Trade ID which uniquely identifies a trade. These are unique per combination of ticker, exchange, and TRF. For example: A trade for AAPL executed on NYSE and a trade for AAPL executed on NASDAQ could potentially have the same Trade ID. From the lastTrade object: The most recent trade for this ticker. This is only returned if your current plan includes trades. |
LastTradeSipTimestamp |
Instant | The nanosecond accuracy SIP Unix Timestamp. This is the timestamp of when the SIP received this message from the exchange which produced it. From the lastTrade object: The most recent trade for this ticker. This is only returned if your current plan includes trades. |
LastTradeExchange |
long | The exchange ID. See Exchanges (https://massive.com/docs/rest/stocks/market-operations/exchanges) for Massive's mapping of exchange IDs. From the lastTrade object: The most recent trade for this ticker. This is only returned if your current plan includes trades. |
LastMinuteOpen |
double | The open price for the symbol in the given time period. From the min object: The most recent minute bar for this ticker. |
LastMinuteHigh |
double | The highest price for the symbol in the given time period. From the min object: The most recent minute bar for this ticker. |
LastMinuteLow |
double | The lowest price for the symbol in the given time period. From the min object: The most recent minute bar for this ticker. |
LastMinuteClose |
double | The close price for the symbol in the given time period. From the min object: The most recent minute bar for this ticker. |
LastMinuteVolume |
double | The trading volume of the symbol in the given time period. From the min object: The most recent minute bar for this ticker. |
LastMinuteVwap |
double | The volume weighted average price. From the min object: The most recent minute bar for this ticker. |
LastMinuteAccumulatedVolume |
long | The accumulated volume. From the min object: The most recent minute bar for this ticker. |
LastMinuteAccumulatedDecimalVolume |
String | The accumulated volume including fractional shares, respresented as a string. From the min object: The most recent minute bar for this ticker. |
LastMinuteDecimalVolume |
String | The volume including fractional shares, respresented as a string. From the min object: The most recent minute bar for this ticker. |
LastMinuteTransactions |
long | The number of transactions in the aggregate window. From the min object: The most recent minute bar for this ticker. |
LastMinuteOtc |
Boolean | Whether or not this aggregate is for an OTC ticker. This field will be left off if false. From the min object: The most recent minute bar for this ticker. |
LastMinuteWindowStart |
Instant | The Unix millisecond timestamp for the start of the aggregate window. From the min object: The most recent minute bar for this ticker. |
PrevDayOpen |
double | The open price for the symbol in the given time period. From the prevDay object: The previous day's bar for this ticker. |
PrevDayHigh |
double | The highest price for the symbol in the given time period. From the prevDay object: The previous day's bar for this ticker. |
PrevDayLow |
double | The lowest price for the symbol in the given time period. From the prevDay object: The previous day's bar for this ticker. |
PrevDayClose |
double | The close price for the symbol in the given time period. From the prevDay object: The previous day's bar for this ticker. |
PrevDayVolume |
double | The trading volume of the symbol in the given time period. From the prevDay object: The previous day's bar for this ticker. |
PrevDayVwap |
double | The volume weighted average price. From the prevDay object: The previous day's bar for this ticker. |
PrevDayOtc |
Boolean | Whether or not this aggregate is for an OTC ticker. This field will be left off if false. From the prevDay object: The previous day's bar for this ticker. |
TodaysChange |
double | The value of the change from the previous day. |
TodaysChangePerc |
double | The percentage change since the previous day. |
Updated |
Instant | The last updated timestamp. |
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. In a poll() table, it's the time of the poll the row's values came from. |
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.
| Column | REST field |
|---|---|
Symbol |
ticker |
DayOpen |
day.o |
DayHigh |
day.h |
DayLow |
day.l |
DayClose |
day.c |
DayVolume |
day.v |
DayVwap |
day.vw |
DayDecimalVolume |
day.dv |
DayOtc |
day.otc |
Fmv |
fmv |
LastQuoteBidPrice |
lastQuote.p |
LastQuoteBidSize |
lastQuote.s |
LastQuoteAskPrice |
lastQuote.P |
LastQuoteAskSize |
lastQuote.S |
LastQuoteSipTimestamp |
lastQuote.t |
LastTradePrice |
lastTrade.p |
LastTradeSize |
lastTrade.s |
LastTradeConditions |
lastTrade.c |
LastTradeDecimalSize |
lastTrade.ds |
LastTradeId |
lastTrade.i |
LastTradeSipTimestamp |
lastTrade.t |
LastTradeExchange |
lastTrade.x |
LastMinuteOpen |
min.o |
LastMinuteHigh |
min.h |
LastMinuteLow |
min.l |
LastMinuteClose |
min.c |
LastMinuteVolume |
min.v |
LastMinuteVwap |
min.vw |
LastMinuteAccumulatedVolume |
min.av |
LastMinuteAccumulatedDecimalVolume |
min.dav |
LastMinuteDecimalVolume |
min.dv |
LastMinuteTransactions |
min.n |
LastMinuteOtc |
min.otc |
LastMinuteWindowStart |
min.t |
PrevDayOpen |
prevDay.o |
PrevDayHigh |
prevDay.h |
PrevDayLow |
prevDay.l |
PrevDayClose |
prevDay.c |
PrevDayVolume |
prevDay.v |
PrevDayVwap |
prevDay.vw |
PrevDayOtc |
prevDay.otc |
TodaysChange |
todaysChange |
TodaysChangePerc |
todaysChangePerc |
Updated |
updated |
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.