m.futures.quotes¶
Best bid and offer quotes of futures contracts, tick by tick.
Call it from a session m, made with dm.MassiveSession():
m.futures.quotes(symbols, *, venues=None, 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 |
Contract tickers such as "ESZ5", a contracts table, or dm.ALL for every contract. |
venues |
The exchanges whose flat files history() reads. Left out, it reads every exchange your plan allows. |
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 Aggregates - CBOT (flat files) | Quotes Aggregates - CME (flat files) | Quotes Aggregates - COMEX (flat files) | Quotes Aggregates - NYMEX (flat files) | Quotes (REST) | Quotes (WebSocket) |
|---|---|---|---|---|---|---|
| Futures Basic | Not included | Not included | Not included | Not included | Not included | Not included |
| Futures Starter | Not included | Not included | Not included | Not included | Not included | Not included |
| Futures Developer | End-of-day, 5 years | End-of-day, 5 years | End-of-day, 5 years | End-of-day, 5 years | 10-minute delayed, 5 years | 10-minute delayed |
| Futures Advanced | End-of-day, All history | End-of-day, All history | End-of-day, All history | End-of-day, All history | Real-time, All history | Real-time |
| Futures Business CBOT | End-of-day, All history | Real-time, All history | Real-time | |||
| Futures Business CME | End-of-day, All history | Real-time, All history | Real-time | |||
| Futures Business COMEX | End-of-day, All history | Real-time, All history | Real-time | |||
| Futures Business NYMEX | End-of-day, All history | Real-time, All history | Real-time |
Columns¶
| Column | Type | Description | Read from |
|---|---|---|---|
Symbol |
String | The row's instrument, as Massive's ticker. From REST ticker: "The futures contract identifier, including the base symbol and contract expiration (e.g., GCJ5 for the April 2025 gold contract)."; flat files ticker: "The exchange symbol that this item is traded under."; WebSocket sym: "The ticker symbol for the given future." |
REST, flat files, WebSocket |
Date |
String | The futures session the row belongs to (its trading date), as ISO yyyy-MM-dd text: Massive's session_end_date from REST and the flat files. The WebSocket sends none, so a streamed row gets the session Massive's futures schedules place it in (between two sessions, the next one). A streamed row waits until its product's schedule has loaded, usually under a second, and is never published without a date. A row Massive's futures lists or schedules can't date is left out, as dm.ErrorPolicy's unlisted_contracts and unscheduled_products describe. From REST and flat files session_end_date: "Also known as the trading date, the date of the end of the trading session, in YYYY-MM-DD format." |
REST, flat files, WebSocket |
Timestamp |
Instant | The row's event time. From REST and flat files timestamp: "The time when the quote was generated at the exchange to nanosecond precision."; WebSocket t: "The timestamp in Unix MS." |
REST, flat files, WebSocket |
BidPrice |
double | The bid price is expressed per unit of the underlying asset, and you apply the contract multiplier to get the full contract value. | REST, flat files, WebSocket |
BidSize |
double | The quote size represents the number of futures contracts available at the given bid price. | REST, flat files, WebSocket |
AskPrice |
double | The ask price is expressed per unit of the underlying asset, and you apply the contract multiplier to get the full contract value. | REST, flat files, WebSocket |
AskSize |
double | The quote size represents the number of futures contracts available at the given ask price. | REST, flat files, WebSocket |
SequenceNumber |
long | The unique sequence number assigned to this quote by the exchange. | REST, flat files |
ReportSequence |
long | The reporting sequence number. | REST, flat files |
BidTimestamp |
Instant | The time when the bid price was submitted to the exchange. | REST, flat files, WebSocket |
AskTimestamp |
Instant | The time when the ask price was submitted to the exchange. | REST, flat files, WebSocket |
Channel |
long | The CME multicast channel this event was sourced from. | REST |
Exchange |
long | The exchange ID. See Exchanges (https://massive.com/docs/rest/futures/market-operations/exchanges) for Massive's mapping of exchange IDs. | 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.
| Column | REST field | Flat-file field | WebSocket field |
|---|---|---|---|
Symbol |
ticker |
ticker |
sym |
Date |
session_end_date |
session_end_date |
|
Timestamp |
timestamp |
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 |
SequenceNumber |
sequence_number |
sequence_number |
|
ReportSequence |
report_sequence |
report_sequence |
|
BidTimestamp |
bid_timestamp |
bid_timestamp |
bt |
AskTimestamp |
ask_timestamp |
ask_timestamp |
at |
Channel |
channel |
||
Exchange |
exchange |
||
TimestampInsert |
Massive's documentation¶
- Quotes Aggregates - CBOT (flat files)
- Quotes Aggregates - CME (flat files)
- Quotes Aggregates - COMEX (flat files)
- Quotes Aggregates - NYMEX (flat files)
- Quotes (REST)
- Quotes (WebSocket)
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.