Skip to content

m.futures.trades

Trades of futures contracts, tick by tick.

Call it from a session m, made with dm.MassiveSession():

m.futures.trades(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

Dataset index

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 Trades Aggregates - CBOT (flat files) Trades Aggregates - CME (flat files) Trades Aggregates - COMEX (flat files) Trades Aggregates - NYMEX (flat files) Trades (REST) Trades (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 trade was generated at the exchange to nanosecond precision."; WebSocket t: "The timestamp in Unix MS." REST, flat files, WebSocket
Price 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. REST, flat files, WebSocket
Size double The total number of contracts exchanged between buyers and sellers on a given trade. REST, flat files, WebSocket
Correction long The trade correction indicator. flat files
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
SequenceNumber long The unique sequence number assigned to this trade. REST, flat files, WebSocket
ReportSequence long The reporting sequence number. REST, flat files
Channel long The CME multicast channel this event was sourced from. REST
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
Price price price p
Size size size s
Correction correction
Exchange exchange
SequenceNumber sequence_number sequence_number q
ReportSequence report_sequence report_sequence
Channel channel
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.