Skip to content

m.options.trades

Trades of US-listed options contracts (OPRA), tick by tick.

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

m.options.trades(symbols, *, 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 Option contracts, or dm.ALL for every contract.
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 (flat files) Trades (REST) Trades (WebSocket)
Options Basic Not included Not included Not included
Options Starter Not included Not included Not included
Options Developer End-of-day, 4 years 15-minute delayed, 4 years 15-minute delayed
Options Advanced End-of-day, All history Real-time, All history Real-time
Options Business End-of-day, All history End-of-day, All history Not included
Options 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 optionsTicker parameter; flat files ticker: "The exchange symbol that this item is traded under."; WebSocket sym: "The ticker symbol for the given option contract." 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 trade from the exchange which produced it."; WebSocket t: "The Timestamp in Unix MS." REST, flat files, WebSocket
OptionRoot String The OCC option root, read from Symbol: the symbol without its O: prefix and its last 15 characters (expiry, type, and strike), such as SPXW for O:SPXW251219C06000000. It is never mapped to the underlying: an adjusted contract keeps its own root, such as AAPL1. REST, flat files, WebSocket
Price double The price of the trade. This is the price per share of the underlying, so the total dollar value of a trade is the price multiplied by the size and by the contract multiplier, which is typically 100 shares per contract. REST, flat files, WebSocket
Size double The size of a trade (also known as volume). REST, flat files, WebSocket
Conditions long[] A list of condition codes. See Options Condition Codes (https://massive.com/docs/rest/options/market-operations/condition-codes) for what each code means. REST, flat files, WebSocket
Correction long The trade correction indicator. REST, flat files
Exchange long The exchange ID. See Exchanges (https://massive.com/docs/rest/options/market-operations/exchanges) for Massive's mapping of exchange IDs. REST, flat files, WebSocket
Id String The trade ID. Options trades do not have a trade ID, so this field is returned as an empty string. REST
ParticipantTimestamp Instant The nanosecond accuracy Participant/Exchange Unix Timestamp. This is the timestamp of when the trade was actually generated at the exchange. REST
SequenceNumber long The sequence number represents the sequence in which message events happened. These are increasing and unique per ticker symbol, but will not always be consecutive (e.g. 1, 2, 6, 9, 10, 11). REST, WebSocket
DecimalSize String The size of the trade including the fractional component. This is represented as a decimal string. 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. 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
OptionRoot request ticker sym
Price price price p
Size size size s
Conditions conditions conditions c
Correction correction correction
Exchange exchange exchange x
Id id
ParticipantTimestamp participant_timestamp
SequenceNumber sequence_number q
DecimalSize decimal_size
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.