m.reference.conditions¶
The trade and quote condition codes, with what each means and how it updates bars.
Call it from a session m, made with dm.MassiveSession():
m.reference.conditions(*, asset_class=None, data_type=None, condition_id=None, sip=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 perAssetClass,Type,Id,Name,DataTypes,Abbreviation,Description,Exchange,Legacy,SipMappingCta,SipMappingOpra,SipMappingUtp,SipMappingFinraTdds,UpdateRulesConsolidatedUpdatesHighLow,UpdateRulesConsolidatedUpdatesOpenClose,UpdateRulesConsolidatedUpdatesVolume,UpdateRulesMarketCenterUpdatesHighLow,UpdateRulesMarketCenterUpdatesOpenCloseandUpdateRulesMarketCenterUpdatesVolume
Arguments¶
A linked argument follows its rule under shared arguments on the dataset index.
| Argument | Description |
|---|---|
asset_class |
The asset class whose conditions to list. Leave it out for every class. Massive lists no futures or index conditions. |
data_type |
The kind of data the conditions apply to. Leave it out for every kind. |
condition_id |
One condition's id. Leave it out for every condition. |
sip |
The SIP whose condition codes to list. Leave it out for every SIP. |
sort |
Any of Massive's field names, such as "name". Fields: asset_class, id, type, name, data_types, legacy. |
order |
The direction of sort. |
limit |
The most rows to return, in total. |
filters |
Further endpoint parameters. Keys: none. |
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 | Condition Codes (REST) |
|---|---|
| Currencies Basic | Updated as needed |
| Currencies Starter | Updated as needed |
| Currencies Business | Updated as needed |
| Options Basic | Updated as needed |
| Options Starter | Updated as needed |
| Options Developer | Updated as needed |
| Options Advanced | Updated as needed |
| Options Business | Updated as needed |
| Stocks Basic | Updated as needed |
| Stocks Starter | Updated as needed |
| Stocks Developer | Updated as needed |
| Stocks Advanced | Updated as needed |
| Stocks Business | Updated as needed |
Columns¶
| Column | Type | Description |
|---|---|---|
Abbreviation |
String | A commonly-used abbreviation for this condition. |
AssetClass |
String | An identifier for a group of similar financial instruments. |
DataTypes |
String[] | Data types that this condition applies to. |
Description |
String | A short description of the semantics of this condition. |
Exchange |
long | If present, mapping this condition from a Massive code to a SIP symbol depends on this attribute. In other words, data with this condition attached comes exclusively from the given exchange. |
Id |
long | An identifier used by Massive for this condition. Unique per data type. |
Legacy |
Boolean | If true, this condition is from an old version of the SIPs' specs and no longer is used. Other conditions may or may not reuse the same symbol as this one. |
Name |
String | The name of this condition. |
SipMappingCta |
String | Condition code from the Consolidated Tape Association (CTA). From the sip_mapping object: A comprehensive mapping that translates condition codes from individual SIPs (CTA, OPRA, UTP) to a unified code used by Massive. This facilitates consistent interpretation and application of market data conditions across different data streams, ensuring that users can accurately apply these conditions to their data analysis and reporting. |
SipMappingOpra |
String | Condition code from the Options Price Reporting Authority (OPRA). From the sip_mapping object: A comprehensive mapping that translates condition codes from individual SIPs (CTA, OPRA, UTP) to a unified code used by Massive. This facilitates consistent interpretation and application of market data conditions across different data streams, ensuring that users can accurately apply these conditions to their data analysis and reporting. |
SipMappingUtp |
String | Condition code from UTP Plan (UTP). From the sip_mapping object: A comprehensive mapping that translates condition codes from individual SIPs (CTA, OPRA, UTP) to a unified code used by Massive. This facilitates consistent interpretation and application of market data conditions across different data streams, ensuring that users can accurately apply these conditions to their data analysis and reporting. |
SipMappingFinraTdds |
String | Condition code from FINRA's Trade Data Dissemination Service (TDDS). From the sip_mapping object: A comprehensive mapping that translates condition codes from individual SIPs (CTA, OPRA, UTP) to a unified code used by Massive. This facilitates consistent interpretation and application of market data conditions across different data streams, ensuring that users can accurately apply these conditions to their data analysis and reporting. |
Type |
String | An identifier for a collection of related conditions. |
UpdateRulesConsolidatedUpdatesHighLow |
Boolean | Whether or not trades with this condition update the high/low. From the update_rules object: A list of aggregation rules. From the update_rules.consolidated object: Describes aggregation rules on a consolidated (all exchanges) basis. |
UpdateRulesConsolidatedUpdatesOpenClose |
Boolean | Whether or not trades with this condition update the open/close. From the update_rules object: A list of aggregation rules. From the update_rules.consolidated object: Describes aggregation rules on a consolidated (all exchanges) basis. |
UpdateRulesConsolidatedUpdatesVolume |
Boolean | Whether or not trades with this condition update the volume. From the update_rules object: A list of aggregation rules. From the update_rules.consolidated object: Describes aggregation rules on a consolidated (all exchanges) basis. |
UpdateRulesMarketCenterUpdatesHighLow |
Boolean | Whether or not trades with this condition update the high/low. From the update_rules object: A list of aggregation rules. From the update_rules.market_center object: Describes aggregation rules on a per-market-center basis. |
UpdateRulesMarketCenterUpdatesOpenClose |
Boolean | Whether or not trades with this condition update the open/close. From the update_rules object: A list of aggregation rules. From the update_rules.market_center object: Describes aggregation rules on a per-market-center basis. |
UpdateRulesMarketCenterUpdatesVolume |
Boolean | Whether or not trades with this condition update the volume. From the update_rules object: A list of aggregation rules. From the update_rules.market_center object: Describes aggregation rules on a per-market-center basis. |
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 |
|---|---|
Abbreviation |
abbreviation |
AssetClass |
asset_class |
DataTypes |
data_types |
Description |
description |
Exchange |
exchange |
Id |
id |
Legacy |
legacy |
Name |
name |
SipMappingCta |
sip_mapping.CTA |
SipMappingOpra |
sip_mapping.OPRA |
SipMappingUtp |
sip_mapping.UTP |
SipMappingFinraTdds |
sip_mapping.FINRA_TDDS |
Type |
type |
UpdateRulesConsolidatedUpdatesHighLow |
update_rules.consolidated.updates_high_low |
UpdateRulesConsolidatedUpdatesOpenClose |
update_rules.consolidated.updates_open_close |
UpdateRulesConsolidatedUpdatesVolume |
update_rules.consolidated.updates_volume |
UpdateRulesMarketCenterUpdatesHighLow |
update_rules.market_center.updates_high_low |
UpdateRulesMarketCenterUpdatesOpenClose |
update_rules.market_center.updates_open_close |
UpdateRulesMarketCenterUpdatesVolume |
update_rules.market_center.updates_volume |
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.