Skip to content

m.crypto.daily_open_close

The open and close prices of crypto pairs on one UTC day, with the trades behind them.

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

m.crypto.daily_open_close(symbols, date, *, 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 per Symbol

Dataset index

Arguments

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

Argument Description
symbols Crypto pairs, such as X:BTCUSD. dm.ALL is refused; for every pair's bar of one day, use m.crypto.bars(dm.ALL, dm.Timespan.DAY).history(day, day).
date The UTC day, as a date such as "2026-01-02". A datetime or an instant is refused.
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)
Currencies Basic End-of-day, 2 years
Currencies Starter Real-time, All history
Currencies Business Real-time, All history

Columns

Column Type Description
Symbol String The row's instrument, as Massive's ticker. From REST symbol: "The symbol pair that was evaluated from the request."
Date String The day the summary covers, as ISO yyyy-MM-dd text: a UTC calendar day. From REST day: "The date requested."
TimestampStart Instant The start of the day the summary covers, as an Instant: 00:00 UTC of Date. A summary whose IsUtc is false covers its date's day in a zone Massive does not name, so its window is the widest that day has in any zone: from 14 hours before 00:00 UTC of Date to 12 hours after 00:00 UTC of the next day, with a WARNING.
TimestampEnd Instant The exclusive end of the day the summary covers, as an Instant: 00:00 UTC of the next day. A summary whose IsUtc is false covers its date's day in a zone Massive does not name, so its window is the widest that day has in any zone: from 14 hours before 00:00 UTC of Date to 12 hours after 00:00 UTC of the next day, with a WARNING. 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.
Close double The close price for the symbol in the given time period.
ClosingTrades String An array of results containing the requested data. The column holds Massive's value as JSON text.
IsUtc Boolean Whether or not the timestamps are in UTC timezone.
OpenTrades String An array of results containing the requested data. The column holds Massive's value as JSON text.
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 day
TimestampStart
TimestampEnd
Open open
Close close
ClosingTrades closingTrades
IsUtc isUTC
OpenTrades openTrades
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.