Skip to content

m.options.last_trade

The latest trade of each US-listed options contract.

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

m.options.last_trade(symbols, *, 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 per Symbol
  • poll(interval, mode=dm.PollMode.APPEND): appends each new state of a row, identified by Symbol and Timestamp

Dataset index

Arguments

A linked argument follows its rule under shared arguments on the dataset index.

Argument Description
symbols Option contracts. dm.ALL is refused; use chain(underlying) for every contract of an underlying.
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 Last Trade (REST)
Options Basic Not included
Options Starter Not included
Options Developer 15-minute delayed
Options Advanced Real-time
Options Business Not included

Columns

Column Type Description
Symbol String The row's instrument, as Massive's ticker. From REST T: "The exchange symbol that this item is traded under."
Date String The trading day of the row, as ISO yyyy-MM-dd text: the New York date of Timestamp.
Timestamp Instant The row's event time. From REST t: "The nanosecond accuracy SIP Unix Timestamp. This is the timestamp of when the SIP received this message from the exchange which produced it."
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.
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.
Size double The size of a trade (also known as volume).
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.
Correction long The trade correction indicator.
Exchange long The exchange ID. See Exchanges (https://massive.com/docs/rest/options/market-operations/exchanges) for Massive's mapping of exchange IDs.
Id String The trade ID. Options trades do not have a trade ID, so this field is returned as an empty string.
ParticipantTimestamp Instant The nanosecond accuracy Participant/Exchange Unix Timestamp. This is the timestamp of when the trade was actually generated at the exchange.
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 sequential (e.g., 1, 2, 6, 9, 10, 11).
Tape long There are 3 tapes which define which exchange the ticker is listed on. These are integers in our objects which represent the letter of the alphabet. Eg: 1 = A, 2 = B, 3 = C. * Tape A is NYSE listed securities * Tape B is NYSE ARCA / NYSE American * Tape C is NASDAQ
TrfId long The ID for the Trade Reporting Facility where the trade took place.
TrfTimestamp Instant The nanosecond accuracy TRF(Trade Reporting Facility) Unix Timestamp. This is the timestamp of when the trade reporting facility received this message.
DecimalSize String The size of the trade including the fractional component. This is represented as a decimal string.
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 T
Date
Timestamp t
OptionRoot T
Price p
Size s
Conditions c
Correction e
Exchange x
Id i
ParticipantTimestamp y
SequenceNumber q
Tape z
TrfId r
TrfTimestamp f
DecimalSize ds
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.