Skip to content

m.reference.market_status

Whether the markets are open now, by exchange, currency market, and index group.

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

m.reference.market_status(*, on_error=None)
  • Methods: fetch(), poll(interval)
  • Read from: REST
  • poll() by default: dm.PollMode.REPLACE, which holds only the latest poll's rows
  • poll(interval, mode=dm.PollMode.APPEND): appends each new state of a row, identified by ServerTime

Dataset index

Arguments

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

Argument Description
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 Market Status (REST)
Currencies Basic Updated in real time
Currencies Starter Updated in real time
Currencies Business Updated in real time
Indices Basic Updated in real time
Indices Starter Updated in real time
Indices Advanced Updated in real time
Indices Business Updated in real time
Options Basic Updated in real time
Options Starter Updated in real time
Options Developer Updated in real time
Options Advanced Updated in real time
Options Business Updated in real time
Stocks Basic Updated in real time
Stocks Starter Updated in real time
Stocks Developer Updated in real time
Stocks Advanced Updated in real time
Stocks Business Updated in real time

Columns

Column Type Description
AfterHours Boolean Whether or not the market is in post-market hours.
CurrenciesCrypto String The status of the crypto market. From the currencies object: Contains the status of various currency markets.
CurrenciesFx String The status of the forex market. From the currencies object: Contains the status of various currency markets.
EarlyHours Boolean Whether or not the market is in pre-market hours.
ExchangesNasdaq String The status of the Nasdaq market. From the exchanges object: Contains the status of different US stock exchanges (e.g., Nasdaq, NYSE).
ExchangesNyse String The status of the NYSE market. From the exchanges object: Contains the status of different US stock exchanges (e.g., Nasdaq, NYSE).
ExchangesOtc String The status of the OTC market. From the exchanges object: Contains the status of different US stock exchanges (e.g., Nasdaq, NYSE).
IndicesGroupsCccy String The status of Cboe Streaming Market Indices Cryptocurrency ("CCCY") indices trading hours. From the indicesGroups object: Contains the status of various index groups (e.g., MSCI, FTSE Russell).
IndicesGroupsCgi String The status of Cboe Global Indices ("CGI") trading hours. From the indicesGroups object: Contains the status of various index groups (e.g., MSCI, FTSE Russell).
IndicesGroupsDowJones String The status of Dow Jones indices trading hours. From the indicesGroups object: Contains the status of various index groups (e.g., MSCI, FTSE Russell).
IndicesGroupsFtseRussell String The status of Financial Times Stock Exchange Group ("FTSE") Russell indices trading hours. From the indicesGroups object: Contains the status of various index groups (e.g., MSCI, FTSE Russell).
IndicesGroupsMsci String The status of Morgan Stanley Capital International ("MSCI") indices trading hours. From the indicesGroups object: Contains the status of various index groups (e.g., MSCI, FTSE Russell).
IndicesGroupsMstar String The status of Morningstar ("MSTAR") indices trading hours. From the indicesGroups object: Contains the status of various index groups (e.g., MSCI, FTSE Russell).
IndicesGroupsMstarc String The status of Morningstar Customer ("MSTARC") indices trading hours. From the indicesGroups object: Contains the status of various index groups (e.g., MSCI, FTSE Russell).
IndicesGroupsNasdaq String The status of National Association of Securities Dealers Automated Quotations ("Nasdaq") indices trading hours. From the indicesGroups object: Contains the status of various index groups (e.g., MSCI, FTSE Russell).
IndicesGroupsSAndP String The status of Standard & Poor's ("S&P") indices trading hours. From the indicesGroups object: Contains the status of various index groups (e.g., MSCI, FTSE Russell).
IndicesGroupsSocieteGenerale String The status of Societe Generale indices trading hours. From the indicesGroups object: Contains the status of various index groups (e.g., MSCI, FTSE Russell).
Market String The status of the market as a whole.
Overnight Boolean Whether or not the market is in overnight hours (9:00 PM to 4:00 AM ET).
ServerTime Instant The current time of the server, returned as a date-time in RFC3339 format.
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
AfterHours afterHours
CurrenciesCrypto currencies.crypto
CurrenciesFx currencies.fx
EarlyHours earlyHours
ExchangesNasdaq exchanges.nasdaq
ExchangesNyse exchanges.nyse
ExchangesOtc exchanges.otc
IndicesGroupsCccy indicesGroups.cccy
IndicesGroupsCgi indicesGroups.cgi
IndicesGroupsDowJones indicesGroups.dow_jones
IndicesGroupsFtseRussell indicesGroups.ftse_russell
IndicesGroupsMsci indicesGroups.msci
IndicesGroupsMstar indicesGroups.mstar
IndicesGroupsMstarc indicesGroups.mstarc
IndicesGroupsNasdaq indicesGroups.nasdaq
IndicesGroupsSAndP indicesGroups.s_and_p
IndicesGroupsSocieteGenerale indicesGroups.societe_generale
Market market
Overnight overnight
ServerTime serverTime
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.