m.stocks.daily_open_close¶
The open, close, and pre- and after-market prices of US stocks on one day.
Call it from a session m, made with dm.MassiveSession():
m.stocks.daily_open_close(symbols, date, *, adjusted=True, 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 perSymbol
Arguments¶
A linked argument follows its rule under shared arguments on the dataset index.
| Argument | Description |
|---|---|
symbols |
Stock tickers. dm.ALL is refused; for every ticker's bar of one day, use m.stocks.bars(dm.ALL, dm.Timespan.DAY).history(day, day). |
date |
The trading day, as a date. |
adjusted |
Adjusts volume as well as prices. Massive doesn't report the basis of these prices, so the library can't check it. |
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 | Daily Ticker Summary (OHLC) (REST) |
|---|---|
| Stocks Basic | End-of-day, 2 years |
| Stocks Starter | 15-minute delayed, 5 years |
| Stocks Developer | 15-minute delayed, 10 years |
| Stocks Advanced | Real-time, All history |
| Stocks Business | Real-time, All history |
Columns¶
| Column | Type | Description |
|---|---|---|
Symbol |
String | The row's instrument, as Massive's ticker. From REST symbol: "The exchange symbol that this item is traded under." |
Date |
String | The day the summary covers, as ISO yyyy-MM-dd text: a New York calendar day. From REST from: "The requested date." |
TimestampStart |
Instant | The start of the day the summary covers, as an Instant: 00:00 New York time of Date. |
TimestampEnd |
Instant | The exclusive end of the day the summary covers, as an Instant: 00:00 New York time of the next day. 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. |
Open |
double | The open price for the symbol in the given time period. Split-adjusted when the query's adjusted is True, the default, served only by REST: a price from before a split is restated in the split's terms (divided by its ratio), so it is not the price that traded. With adjusted=False, from the flat files, and on the WebSocket it is as traded. One history() never mixes the two, and Massive never adjusts for cash dividends. |
High |
double | The highest price for the symbol in the given time period. Split-adjusted when the query's adjusted is True, the default, served only by REST: a price from before a split is restated in the split's terms (divided by its ratio), so it is not the price that traded. With adjusted=False, from the flat files, and on the WebSocket it is as traded. One history() never mixes the two, and Massive never adjusts for cash dividends. |
Low |
double | The lowest price for the symbol in the given time period. Split-adjusted when the query's adjusted is True, the default, served only by REST: a price from before a split is restated in the split's terms (divided by its ratio), so it is not the price that traded. With adjusted=False, from the flat files, and on the WebSocket it is as traded. One history() never mixes the two, and Massive never adjusts for cash dividends. |
Close |
double | The close price for the symbol in the given time period. Split-adjusted when the query's adjusted is True, the default, served only by REST: a price from before a split is restated in the split's terms (divided by its ratio), so it is not the price that traded. With adjusted=False, from the flat files, and on the WebSocket it is as traded. One history() never mixes the two, and Massive never adjusts for cash dividends. |
Volume |
double | The trading volume of the symbol in the given time period. Split-adjusted like the prices when the query's adjusted is True, the default, served only by REST: a volume from before a split is restated in the split's terms (multiplied by its ratio). With adjusted=False, from the flat files, and on the WebSocket it is as traded. |
AfterHours |
double | The close price of the ticker symbol in after hours trading. Split-adjusted when the query's adjusted is True, the default, served only by REST: a price from before a split is restated in the split's terms (divided by its ratio), so it is not the price that traded. With adjusted=False, from the flat files, and on the WebSocket it is as traded. One history() never mixes the two, and Massive never adjusts for cash dividends. |
Otc |
Boolean | Whether or not this aggregate is for an OTC ticker. This field will be left off if false. |
PreMarket |
double | The open price of the ticker symbol in pre-market trading. Split-adjusted when the query's adjusted is True, the default, served only by REST: a price from before a split is restated in the split's terms (divided by its ratio), so it is not the price that traded. With adjusted=False, from the flat files, and on the WebSocket it is as traded. One history() never mixes the two, and Massive never adjusts for cash dividends. |
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 |
symbol |
Date |
from |
TimestampStart |
|
TimestampEnd |
|
Open |
open |
High |
high |
Low |
low |
Close |
close |
Volume |
volume |
AfterHours |
afterHours |
Otc |
otc |
PreMarket |
preMarket |
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.