m.futures.contracts¶
The specification of every listed futures contract.
Call it from a session m, made with dm.MassiveSession():
m.futures.contracts(symbols=None, *, product_code=None, as_of=None, sort=None, order=None, limit=None, filters=None, 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 perSymbolandDate
Arguments¶
A linked argument follows its rule under shared arguments on the dataset index.
| Argument | Description |
|---|---|
symbols |
Only these contracts; leave it out for every contract. dm.ALL is refused; leave symbols out instead. |
product_code |
Only contracts of this product, such as "ES", or of these, such as ["ES", "NQ"]. A table of them in a ProductCode column works too. Leave it out for every product. |
as_of |
The day whose specifications to list; leave it out for today. |
sort |
A field of the rows, such as "ticker". Without it, Massive sorts by product_code. Fields: any REST field under Massive fields. |
order |
The direction of sort. |
limit |
The most rows to return, in total. A watchlist's fetch() caps every request instead, and a table of product codes caps every code's requests. |
filters |
Further endpoint parameters, such as {"active": True}. Keys: active, first_trade_date, first_trade_date_gt, first_trade_date_gte, first_trade_date_lt, first_trade_date_lte, last_trade_date, last_trade_date_gt, last_trade_date_gte, last_trade_date_lt, last_trade_date_lte, provider_id, provider_product_id, ticker_gt, ticker_gte, ticker_lt, ticker_lte, type, type_any_of. |
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 | Contracts (REST) |
|---|---|
| Futures Basic | Updated daily, 2 years |
| Futures Starter | Updated daily, 2 years |
| Futures Developer | Updated daily, 5 years |
| Futures Advanced | Updated daily, All history |
| Futures Business CME | Updated daily, All history |
| Futures Business CBOT | Updated daily, All history |
| Futures Business NYMEX | Updated daily, All history |
| Futures Business COMEX | Updated daily, All history |
Columns¶
| Column | Type | Description |
|---|---|---|
Symbol |
String | The row's instrument, as Massive's ticker. From REST ticker: "The ticker for the contract." |
Active |
Boolean | Whether or not a given contract was tradeable at the given point in time. Active is true when (first_trade_date <= date <= last_trade_date) and false otherwise. |
Date |
String | The day, YYYY-MM-DD, whose point-in-time state the row describes: whether the contract was tradeable that day (active) and its days to maturity from it. |
DaysToMaturity |
long | The number of calendar days between the 'date' and the contract's final settlement date. |
FirstTradeDate |
String | The first day on which the contract was tradeable. |
GroupCode |
String | An identifier used to identify logical groups of products. The group_code is only populated for contracts listed for trading on CME Globex. |
LastTradeDate |
String | The last day on which the contract was tradeable. |
MaxOrderQuantity |
long | The maximum order quantity. |
MinOrderQuantity |
long | The minimum order quantity. |
Name |
String | The name of this contract. |
ProductCode |
String | The identifier for the contract's product. |
ProviderId |
String | A unique identifier for the contract assigned by the data provider. Note that this value is null for historical data (pre-2025-03-12). |
ProviderProductId |
String | A unique identifier for the product to which a contract, or contracts, belongs. Note that this value is null for historical data (pre-2025-03-12). |
SettlementDate |
String | The date on which this contract settles. |
SettlementTickSize |
double | The tick size for settlement. |
SpreadTickSize |
double | The tick size for spreads. |
TradeTickSize |
double | The tick size for trades. |
TradingVenue |
String | The trading venue (MIC) for the exchange on which this contract trades. |
Type |
String | The type of contract, one of 'single' or 'combo'. Leaving this filter blank will query for contracts where type is 'single', 'combo' or empty. This field only exists on contracts as of 2025-03-12 and later. It will be null when date < 2025-03-12. |
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 |
ticker |
Active |
active |
Date |
date |
DaysToMaturity |
days_to_maturity |
FirstTradeDate |
first_trade_date |
GroupCode |
group_code |
LastTradeDate |
last_trade_date |
MaxOrderQuantity |
max_order_quantity |
MinOrderQuantity |
min_order_quantity |
Name |
name |
ProductCode |
product_code |
ProviderId |
provider_id |
ProviderProductId |
provider_product_id |
SettlementDate |
settlement_date |
SettlementTickSize |
settlement_tick_size |
SpreadTickSize |
spread_tick_size |
TradeTickSize |
trade_tick_size |
TradingVenue |
trading_venue |
Type |
type |
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.