m.futures.snapshots¶
The latest trade, quote, minute bar, and session of each futures contract.
Call it from a session m, made with dm.MassiveSession():
m.futures.snapshots(symbols, *, product_code=None, sort=None, order=None, limit=None, filters=None, 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 bySymbol,LastQuoteTimestampandLastTradeTimestamp
Arguments¶
A linked argument follows its rule under shared arguments on the dataset index.
| Argument | Description |
|---|---|
symbols |
Contract tickers, a contracts table, or dm.ALL for every contract. |
product_code |
Only contracts of this product, such as "ES", or of these, such as ["ES", "NQ"]. A table of them in a ProductCode column works too. Leave it out for every product. |
sort |
A field of the rows, such as "ticker". Fields: any REST field under Massive fields. |
order |
The direction of sort. |
limit |
The most rows to return, in total. A watchlist's fetch() caps every request instead, and a table of product codes caps every code's requests. |
filters |
Further endpoint parameters, such as {"ticker_gte": "ES"}. Keys: ticker_gt, ticker_gte, ticker_lt, ticker_lte. |
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 | Futures Contracts Snapshot (REST) |
|---|---|
| Futures Basic | Not included |
| Futures Starter | 10-minute delayed |
| Futures Developer | 10-minute delayed |
| Futures Advanced | Real-time |
| Futures Business CME | Real-time |
| Futures Business CBOT | Real-time |
| Futures Business NYMEX | Real-time |
| Futures Business COMEX | Real-time |
Columns¶
| Column | Type | Description |
|---|---|---|
Symbol |
String | The row's instrument, as Massive's ticker. From REST details.ticker. |
ProductCode |
String | The identifier for the contract's product. |
SettlementDate |
String | The day that this contract is settled. |
LastMinuteOpen |
double | The opening price at the start of the minute bar. |
LastMinuteHigh |
double | The highest price reached in the minute bar. |
LastMinuteLow |
double | The lowest price reached in the minute bar. |
LastMinuteClose |
double | The price at the end of the minute bar. |
LastMinuteVolume |
double | The number of contracts traded in the minute bar. |
LastMinuteLastUpdated |
Instant | The timestamp indicating the most recent update to the minute bar. |
LastMinuteTimeframe |
String | The timeliness of the data as determined by your subscription. One of REAL-TIME or DELAYED. |
LastQuoteBidPrice |
double | The highest price a buyer is willing to pay. |
LastQuoteBidSize |
long | The number of contracts available at the bid price. |
LastQuoteAskPrice |
double | The lowest price a seller is willing to accept. |
LastQuoteAskSize |
long | The number of contracts available at the ask price. |
LastQuoteBidTimestamp |
Instant | The time when the best bid price was last updated. |
LastQuoteAskTimestamp |
Instant | The time when the best ask price was last updated. |
LastQuoteTimestamp |
Instant | The time when the quote was generated at the exchange to nanosecond precision. |
LastQuoteTimeframe |
String | The timeliness of the data as determined by your subscription. One of REAL-TIME or DELAYED. |
LastTradePrice |
double | The trade price is quoted per unit of the underlying asset, with the total contract value determined by multiplying by the contract’s specific multiplier. |
LastTradeSize |
long | The total number of contracts exchanged between buyers and sellers on a given trade. |
LastTradeTimestamp |
Instant | The time when the trade was generated at the exchange to nanosecond precision. |
LastTradeTimeframe |
String | The timeliness of the data as determined by your subscription. One of REAL-TIME or DELAYED. |
SessionOpen |
double | The opening price at the start of the session. |
SessionHigh |
double | The highest price reached in the session. |
SessionLow |
double | The lowest price reached in the session. |
SessionClose |
double | The price at the end of the session. |
SessionVolume |
double | The number of contracts traded in the session. |
SessionChange |
double | The change in price during this session. |
SessionChangePercent |
double | The percentage change in price during this session. |
SessionPreviousSettlement |
double | The settlement price of the previous session. |
SessionSettlementPrice |
double | The final settlement price at the end of the session. |
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 |
details.ticker |
ProductCode |
details.product_code |
SettlementDate |
details.settlement_date |
LastMinuteOpen |
last_minute.open |
LastMinuteHigh |
last_minute.high |
LastMinuteLow |
last_minute.low |
LastMinuteClose |
last_minute.close |
LastMinuteVolume |
last_minute.volume |
LastMinuteLastUpdated |
last_minute.last_updated |
LastMinuteTimeframe |
last_minute.timeframe |
LastQuoteBidPrice |
last_quote.bid |
LastQuoteBidSize |
last_quote.bid_size |
LastQuoteAskPrice |
last_quote.ask |
LastQuoteAskSize |
last_quote.ask_size |
LastQuoteBidTimestamp |
last_quote.bid_timestamp |
LastQuoteAskTimestamp |
last_quote.ask_timestamp |
LastQuoteTimestamp |
last_quote.last_updated |
LastQuoteTimeframe |
last_quote.timeframe |
LastTradePrice |
last_trade.price |
LastTradeSize |
last_trade.size |
LastTradeTimestamp |
last_trade.last_updated |
LastTradeTimeframe |
last_trade.timeframe |
SessionOpen |
session.open |
SessionHigh |
session.high |
SessionLow |
session.low |
SessionClose |
session.close |
SessionVolume |
session.volume |
SessionChange |
session.change |
SessionChangePercent |
session.change_percent |
SessionPreviousSettlement |
session.previous_settlement |
SessionSettlementPrice |
session.settlement_price |
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.