Skip to content

m.futures.bars

Open, high, low, close, and volume bars of futures contracts.

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

m.futures.bars(symbols, timespan, *, multiplier=1, venues=None, on_error=None)
  • Methods: history(start, end=None); for 1-second and 1-minute bars at multiplier=1 also blink(), append_only(), ring(capacity), last_by(by='Symbol')
  • 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, a contracts table, or dm.ALL for every contract.
timespan The bar's unit. DAY bars are read from REST only; for dm.ALL, use SESSION.
multiplier Units per bar.
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 Minute Aggregates - CBOT (flat files) Minute Aggregates - CME (flat files) Minute Aggregates - COMEX (flat files) Minute Aggregates - NYMEX (flat files) Session Aggregates - CBOT (flat files) Session Aggregates - CME (flat files) Session Aggregates - COMEX (flat files) Session Aggregates - NYMEX (flat files) Aggregate Bars (OHLC) (REST) Aggregates (Per Minute) (WebSocket) Aggregates (Per Second) (WebSocket)
Futures Basic Not included Not included Not included Not included Not included Not included Not included Not included 8-hour historical, 2 years Not included Not included
Futures Starter End-of-day, 2 years End-of-day, 2 years End-of-day, 2 years End-of-day, 2 years End-of-day, 2 years End-of-day, 2 years End-of-day, 2 years End-of-day, 2 years 10-minute delayed, 2 years 10-minute delayed 10-minute delayed
Futures Developer End-of-day, 5 years End-of-day, 5 years End-of-day, 5 years End-of-day, 5 years 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 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 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 Real-time
Futures Business CBOT End-of-day, All history End-of-day, All history Real-time, All history Real-time Real-time
Futures Business CME End-of-day, All history End-of-day, All history Real-time, All history Real-time Real-time
Futures Business COMEX End-of-day, All history End-of-day, All history Real-time, All history Real-time Real-time
Futures Business NYMEX End-of-day, All history End-of-day, All history Real-time, All history Real-time Real-time

Columns

Column Type Description Read from
Symbol String The row's instrument, as Massive's ticker. From REST ticker: "The ticker for the 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 of the bar (its trading date), as ISO yyyy-MM-dd text: Massive's session_end_date from REST and the flat files, and on the WebSocket the session as for futures trades; null for a bar of several sessions, a week or longer, or an intraday bar that crosses 17:00 Chicago time. Joining an intraday row to the same day's daily bar on Date attaches values not known until that day ended, and a null Date matches another null, so join longer bars on TimestampEnd. From REST session_end_date: "Also known as the trading date, the date of the end of the trading session, in YYYY-MM-DD format. Sessions are named by this end date, while window_start holds the session's start date, which for session candles is the day before."; 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
TimestampStart Instant The start of the bar's window, as an Instant: Massive's own window start. From REST window_start: "The timestamp of the beginning of the candlestick’s aggregation window."; flat files window_start: "The Unix nanosecond timestamp for the start of the aggregate window."; WebSocket s: "The start timestamp of this aggregate window in Unix Milliseconds." REST, flat files, WebSocket
TimestampEnd Instant The exclusive end of the bar's window, as an Instant: the first instant at which the bar is complete, so an as-of join on it, t.aj(bars, on=["Symbol", "Timestamp>=TimestampEnd"]), never attaches a bar that is still open. It is when the window closes, not when Massive published the bar, and Massive may correct a bar later. An intraday bar ends at Massive's e where the WebSocket sends one, else its length after its start; a WARNING says when the two differ. A bar of a session or longer ends at 17:00 Chicago time on its label, Massive's session_end_date, which is its last session. history() returns a bar of several sessions, or of a week or longer, only once no later session can still join it. A row read before its window ended has TimestampInsert before TimestampEnd, and its values can still change; t.where("TimestampEnd <= TimestampInsert") keeps only the rows read after their window ended. That test reads the local clock, which can be off, and a row read within moments of its end, or from a delayed feed, may still lack the window's last trades. A bar of several sessions or longer read before its last session passes that test once its latest session so far has ended, though later sessions can still join it. REST, flat files, WebSocket
Open double The opening price within the timeframe. REST, flat files, WebSocket
High double The highest price within the timeframe. REST, flat files, WebSocket
Low double The lowest price within the timeframe. REST, flat files, WebSocket
Close double The last price within the timeframe. REST, flat files, WebSocket
Volume double The number of contracts that traded within the timeframe. REST, flat files, WebSocket
Transactions long The number of transactions that occurred within the timeframe. REST, flat files, WebSocket
DollarVolume double The sum of price × size across all trades in the window, expressed in the contract's quoted price units, which are the same units as the bar's open, high, low, and close. Despite the field name, no contract multiplier is applied, so this is not a notional dollar value. See the Products endpoint (https://massive.com/docs/rest/futures/products) for contract multiplier details. Because dollar_volume is a raw sum, you can use it to compute a volume-weighted average price (VWAP) over any span of bars: sum dollar_volume across the bars in the window and divide by the summed volume. REST, flat files, WebSocket
SettlementPrice double The price the contract settled at for this session. Included for session, week, month, quarter, and year candles; for multi-session candles it is the settlement of the final session in the period. Not returned for intraday candles (sec, min, hour). REST, 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
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
TimestampStart window_start window_start s
TimestampEnd e
Open open open o
High high high h
Low low low l
Close close close c
Volume volume volume v
Transactions transactions transactions n
DollarVolume dollar_volume dollar_volume dv
SettlementPrice settlement_price settlement_price
Exchange exchange
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.