deephaven_massive.namespaces
deephaven_massive.namespaces ¶
The namespace classes: the objects that hold a session's datasets, such as m.stocks.
A session groups its datasets by asset class or topic, and each group is a namespace: m.stocks
holds the stock datasets, m.options the options datasets, and so on. Each method of a
namespace is one dataset and returns a query of it. You reach a namespace through a session and
never construct one; import its class from here only to annotate your own code, such as a
helper that takes m.stocks and reads one symbol's trades:
from deephaven.table import Table
import deephaven_massive as dm
from deephaven_massive.namespaces import StocksNamespace
def trades(stocks: StocksNamespace, symbol: str) -> Table:
return stocks.trades(symbol).append_only()
m = dm.MassiveSession()
apple = trades(m.stocks, "AAPL")
Each class is named for its path on the session:
| Class | Reached as |
|---|---|
StocksNamespace |
m.stocks |
StocksFinancialsNamespace |
m.stocks.financials |
StocksFilingsNamespace |
m.stocks.filings |
OptionsNamespace |
m.options |
FuturesNamespace |
m.futures |
IndicesNamespace |
m.indices |
ForexNamespace |
m.forex |
CryptoNamespace |
m.crypto |
ReferenceNamespace |
m.reference |
IndicatorsNamespace |
m.indicators |
EconomyNamespace |
m.economy |
PartnersNamespace |
m.partners |
PartnersBenzingaNamespace |
m.partners.benzinga |
PartnersEtfGlobalNamespace |
m.partners.etf_global |
PartnersTmxNamespace |
m.partners.tmx |
PartnersFableNamespace |
m.partners.fable |
help() on a class describes its datasets, and dm.datasets() lists every dataset with its
query methods. The classes of the queries are in deephaven_massive.queries.
Classes¶
CryptoNamespace ¶
CryptoNamespace(session: MassiveSession)
The crypto datasets, reached as m.crypto.
Each method returns a query of one dataset, and together they cover trades, quotes, bars, each
pair's last trade and previous day's bar, fair market value, snapshots, movers, and each pair's
daily open and close. A method reads nothing, so it never blocks. You can call it from
any thread.
You reach it through a session and never construct it. Import it as
from deephaven_massive.namespaces import CryptoNamespace to annotate your own code.
Example
import deephaven_massive as dm
m = dm.MassiveSession()
btc = m.crypto.trades("X:BTCUSD").last_by()
daily = m.crypto.bars(["X:BTCUSD", "X:ETHUSD"], dm.Timespan.DAY).history(
"2026-10-01", "2026-10-31"
)
Bind the namespace to the session it belongs to.
Users reach a namespace through its session, such as m.stocks, and never construct
one. The namespace keeps the session's core, which its dataset methods pass to the
shared factory, and not the session itself.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
session
|
MassiveSession
|
The session the namespace belongs to. |
required |
Methods:¶
trades ¶
trades(symbols: SymbolsLike, *, on_error: ErrorPolicy | None = None) -> StreamHistoryQuery
Trades of crypto pairs, tick by tick, from the exchanges Massive aggregates.
Each row holds one trade on one exchange. Timestamp is the exchange's own time, and Date
is its UTC date. For each pair's latest trade alone, use last_trade().
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Crypto pairs, such as |
required |
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
StreamHistoryQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/crypto.trades.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
live = m.crypto.trades(["X:BTCUSD", "X:ETHUSD"]).append_only()
last_trade ¶
last_trade(symbols: SymbolsLike, *, on_error: ErrorPolicy | None = None) -> FetchQuery
The latest trade of each crypto pair.
Each row holds one pair's latest trade. A pair with no trade gets no row, and the library
logs a WARNING. Each poll sees only the trade that is latest at that moment; trades()
streams every trade.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Crypto pairs, such as |
required |
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/crypto.last_trade.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
last = m.crypto.last_trade(["X:BTCUSD", "X:ETHUSD"]).fetch()
quotes ¶
quotes(symbols: SymbolsLike, *, on_error: ErrorPolicy | None = None) -> StreamQuery
Quotes of crypto pairs: each exchange's best bid and ask, as they change.
Each row holds one exchange's best bid and ask for one pair. Massive serves no crypto quote
history and no last quote. For each pair's current state, poll snapshots().
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Crypto pairs, such as |
required |
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
StreamQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/crypto.quotes.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
book = m.crypto.quotes("X:BTCUSD").last_by(["Symbol", "Exchange"])
bars ¶
bars(symbols: SymbolsLike, timespan: Timespan, *, multiplier: int = 1, on_error: ErrorPolicy | None = None) -> StreamHistoryQuery | HistoryQuery
Open, high, low, close, and volume bars of crypto pairs, over any time window.
Each row is one bar of multiplier times timespan. Days are UTC days, and weeks run
Sunday to Saturday. Crypto has no splits, so there's no adjusted.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Crypto pairs, such as |
required |
timespan
|
Timespan
|
The bar's unit. Massive refuses |
required |
multiplier
|
int
|
Units per bar. |
1
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
StreamHistoryQuery | HistoryQuery
|
A |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
hourly = m.crypto.bars("X:BTCUSD", dm.Timespan.HOUR).history(
"2026-10-01", "2026-10-07"
)
previous_day_bar ¶
previous_day_bar(symbols: SymbolsLike, *, on_error: ErrorPolicy | None = None) -> FetchQuery
The previous UTC day's open, high, low, close, and volume of each crypto pair.
Each row holds one pair's bar of the previous complete UTC day. A pair with no bar gets no row, and the library logs a WARNING.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Crypto pairs, such as |
required |
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/crypto.previous_day_bar.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
yesterday = m.crypto.previous_day_bar("X:BTCUSD").fetch()
fmv ¶
fmv(symbols: SymbolsLike, *, on_error: ErrorPolicy | None = None) -> StreamQuery
Massive's fair market value of crypto pairs, streamed as it updates.
Each row holds one update of Massive's own price estimate. If Massive refuses the
subscription, the table fails with EntitlementError. It streams only, with no history.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Crypto pairs, such as |
required |
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
StreamQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/crypto.fmv.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
fair = m.crypto.fmv(["X:BTCUSD", "X:ETHUSD"]).last_by()
snapshots ¶
snapshots(symbols: SymbolsLike, *, on_error: ErrorPolicy | None = None) -> FetchQuery
The current state of crypto pairs: today's, the last minute's, and yesterday's bars.
Each row holds one pair's bar for today, its latest minute bar, and its previous day's bar.
It also holds the pair's last trade and today's change. Massive clears the snapshots daily
at midnight Eastern time and refills them as trades arrive. Poll this dataset for each
pair's state at once; a stream's last_by() starts empty.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Crypto pairs, such as |
required |
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/crypto.snapshots.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
latest = m.crypto.snapshots(["X:BTCUSD", "X:ETHUSD"]).poll(5)
movers ¶
movers(direction: Direction, *, on_error: ErrorPolicy | None = None) -> FetchQuery
The 20 crypto pairs that gained or lost the most since the previous day's close.
Each row holds one pair's snapshot, with the columns of snapshots(), ranked by percentage
change. Massive clears the list daily at midnight Eastern time. A poll() table keeps one
row per pair, so pairs leave as the ranking changes. The table can be the symbols of
another dataset, which then follows the list.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
direction
|
Direction
|
|
required |
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/crypto.movers.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
Example
gainers = m.crypto.movers(dm.Direction.GAINERS).poll(60)
trades = m.crypto.trades(gainers).append_only() # follows the top 20
daily_open_close ¶
daily_open_close(symbols: SymbolsLike, date: DateLike, *, on_error: ErrorPolicy | None = None) -> FetchQuery
The open and close prices of crypto pairs on one UTC day, with the trades behind them.
Each row holds one pair's open and close for the UTC day. OpenTrades and ClosingTrades
hold its first and last trades as JSON text. Past dates work for delisted pairs too.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Crypto pairs, such as |
required |
date
|
DateLike
|
The UTC day, as a date such as |
required |
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/crypto.daily_open_close.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
days = m.crypto.daily_open_close(["X:BTCUSD", "X:ETHUSD"], "2026-01-02").fetch()
EconomyNamespace ¶
EconomyNamespace(session: MassiveSession)
The US economic datasets, reached as m.economy.
Each method returns a query of one dataset, and together they cover Treasury yields, inflation,
inflation expectations, the labor market, and short-term funding conditions. They take no
symbols, and each row is one date of the series. A method reads nothing, so it never
blocks. You can call it from any thread.
You reach it through a session and never construct it. Import it as
from deephaven_massive.namespaces import EconomyNamespace to annotate your own code.
Example
import deephaven_massive as dm
m = dm.MassiveSession()
yields = m.economy.treasury_yields(start="2026-01-02").fetch()
Bind the namespace to the session it belongs to.
Users reach a namespace through its session, such as m.stocks, and never construct
one. The namespace keeps the session's core, which its dataset methods pass to the
shared factory, and not the session itself.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
session
|
MassiveSession
|
The session the namespace belongs to. |
required |
Methods:¶
treasury_yields ¶
treasury_yields(*, start: DateLike | None = None, end: DateLike | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
US Treasury yields at constant maturities from one month to 30 years, one row per day.
Each row holds one day's yields, one column per maturity, such as Yield10Year.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
start
|
DateLike | None
|
The first date. |
None
|
end
|
DateLike | None
|
The last date. |
None
|
sort
|
str | None
|
Any of Massive's field names, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters. |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/economy.treasury_yields.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- a bound is a time instead of a date, or the range ends before it starts;
- |
Example
yields = m.economy.treasury_yields(start="2026-01-02").fetch()
inflation ¶
inflation(*, start: DateLike | None = None, end: DateLike | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
US inflation: CPI, core CPI, and the PCE price indexes and spending, one row per month.
Each row holds one month's CPI, core CPI, and year-over-year CPI, and its PCE, core PCE, and PCE spending.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
start
|
DateLike | None
|
The first date. |
None
|
end
|
DateLike | None
|
The last date. |
None
|
sort
|
str | None
|
Any of Massive's field names, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters. |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/economy.inflation.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- a bound is a time instead of a date, or the range ends before it starts;
- |
Example
cpi = m.economy.inflation(start="2020-01-01").fetch()
inflation_expectations ¶
inflation_expectations(*, start: DateLike | None = None, end: DateLike | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
US inflation expectations from market prices and models, one row per day.
Each row holds one day's expected inflation over several horizons. Market-price columns,
such as Market10Year, sit beside model columns, such as Model10Year.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
start
|
DateLike | None
|
The first date. |
None
|
end
|
DateLike | None
|
The last date. |
None
|
sort
|
str | None
|
Any of Massive's field names, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters. |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/economy.inflation_expectations.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- a bound is a time instead of a date, or the range ends before it starts;
- |
Example
expected = m.economy.inflation_expectations(start="2026-01-02").fetch()
labor_market ¶
labor_market(*, start: DateLike | None = None, end: DateLike | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
US labor-market indicators: unemployment, participation, earnings, and job openings.
Each row holds one month's unemployment rate, labor force participation rate, average hourly earnings, and job openings.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
start
|
DateLike | None
|
The first date. |
None
|
end
|
DateLike | None
|
The last date. |
None
|
sort
|
str | None
|
Any of Massive's field names, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters. |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/economy.labor_market.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- a bound is a time instead of a date, or the range ends before it starts;
- |
Example
jobs = m.economy.labor_market(start="2020-01-01").fetch()
funding_conditions ¶
funding_conditions(*, start: DateLike | None = None, end: DateLike | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
US short-term funding conditions: policy, overnight, and repo rates, one row per day.
Each row holds one day's fed funds target range and effective rate, the overnight bank funding rate, SOFR, the tri-party general collateral rate, interest on reserve balances, commercial paper rates, and the Fed's repo amounts.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
start
|
DateLike | None
|
The first date. |
None
|
end
|
DateLike | None
|
The last date. |
None
|
sort
|
str | None
|
Any of Massive's field names, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters. |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/economy.funding_conditions.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- a bound is a time instead of a date, or the range ends before it starts;
- |
Example
rates = m.economy.funding_conditions(start="2026-01-02").fetch()
ForexNamespace ¶
ForexNamespace(session: MassiveSession)
The forex datasets, reached as m.forex.
Each method returns a query of one dataset, and together they cover quotes, bars, each pair's
last quote and previous day's bar, fair market value, snapshots, movers, and currency
conversion. A method reads nothing, so it never blocks. You can call it from any
thread.
You reach it through a session and never construct it. Import it as
from deephaven_massive.namespaces import ForexNamespace to annotate your own code.
Example
import deephaven_massive as dm
m = dm.MassiveSession()
rates = m.forex.quotes(["C:EURUSD", "C:GBPUSD"]).last_by()
Bind the namespace to the session it belongs to.
Users reach a namespace through its session, such as m.stocks, and never construct
one. The namespace keeps the session's core, which its dataset methods pass to the
shared factory, and not the session itself.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
session
|
MassiveSession
|
The session the namespace belongs to. |
required |
Methods:¶
quotes ¶
quotes(symbols: SymbolsLike, *, on_error: ErrorPolicy | None = None) -> StreamHistoryQuery
Foreign exchange quotes: the best bid and ask of each currency pair, tick by tick.
Each row holds one quote of Massive's feed, which combines prices from banks and trading
venues. Date is the UTC date of Timestamp. For each pair's latest quote alone, use
last_quote().
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Currency pairs, such as |
required |
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
StreamHistoryQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/forex.quotes.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
eur = m.forex.quotes("C:EURUSD").last_by()
last_quote ¶
last_quote(symbols: SymbolsLike, *, on_error: ErrorPolicy | None = None) -> FetchQuery
The latest best bid and ask of each currency pair.
Each row holds one pair's latest quote. A pair with no quote gets no row, and the library
logs a WARNING. Each poll sees only the quote that is latest at that moment; quotes()
streams every quote.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Currency pairs, such as |
required |
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/forex.last_quote.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
top = m.forex.last_quote(["C:EURUSD", "C:USDJPY"]).poll(5)
bars ¶
bars(symbols: SymbolsLike, timespan: Timespan, *, multiplier: int = 1, on_error: ErrorPolicy | None = None) -> StreamHistoryQuery | HistoryQuery
Aggregate bars of currency pairs: open, high, low, close, and volume per window.
Each row is one bar of multiplier times timespan. Days are UTC days, though the
interbank day rolls at 17:00 New York time. Weeks run Sunday to Saturday. Currency pairs
have no splits, so there's no adjusted. For each pair's previous day alone, use
previous_day_bar().
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Currency pairs, such as |
required |
timespan
|
Timespan
|
The bar's unit. Massive refuses |
required |
multiplier
|
int
|
Units per bar. |
1
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
StreamHistoryQuery | HistoryQuery
|
A |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
hourly = m.forex.bars("C:EURUSD", dm.Timespan.HOUR).history(
"2026-10-01", "2026-10-23"
)
previous_day_bar ¶
previous_day_bar(symbols: SymbolsLike, *, on_error: ErrorPolicy | None = None) -> FetchQuery
The previous UTC day's open, high, low, close, and volume of each currency pair.
Each row holds one pair's bar of the previous complete UTC day. A pair with no bar gets no row, and the library logs a WARNING.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Currency pairs, such as |
required |
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/forex.previous_day_bar.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
yesterday = m.forex.previous_day_bar("C:EURUSD").fetch()
fmv ¶
fmv(symbols: SymbolsLike, *, on_error: ErrorPolicy | None = None) -> StreamQuery
Massive's fair market value of each currency pair, streamed as it updates.
Each row holds one update of Massive's own real-time price estimate. It streams only, with no history.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Currency pairs, such as |
required |
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
StreamQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/forex.fmv.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
fair = m.forex.fmv(["C:EURUSD", "C:USDJPY"]).last_by()
snapshots ¶
snapshots(symbols: SymbolsLike, *, on_error: ErrorPolicy | None = None) -> FetchQuery
The current state of currency pairs: today's bar, the last minute, and the last quote.
Each row holds one pair's bars for today and the previous UTC day, and its latest minute bar. It also holds the pair's last quote and its change since the previous close.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Currency pairs, such as |
required |
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/forex.snapshots.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
latest = m.forex.snapshots(["C:EURUSD", "C:GBPUSD"]).poll(5)
movers ¶
movers(direction: Direction, *, on_error: ErrorPolicy | None = None) -> FetchQuery
The twenty currency pairs that gained or lost the most since the previous UTC close.
Each row holds one pair's snapshot, with the columns of snapshots(), ranked by percentage
change. Massive clears the list daily at midnight Eastern time and refills it as quotes
arrive, so the list can be empty just after midnight. A poll() table keeps one row per
pair, so pairs come and go as the ranking changes.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
direction
|
Direction
|
|
required |
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/forex.movers.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
Example
losers = m.forex.movers(dm.Direction.LOSERS).poll(60)
conversion ¶
conversion(from_currency: str, to_currency: str, *, amount: float = 1.0, precision: int = 2, on_error: ErrorPolicy | None = None) -> FetchQuery
An amount converted between two currencies at the latest quote.
The table has one row. It holds the converted amount, the amount you passed, and the last bid and ask the conversion used.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
from_currency
|
str
|
The code of the currency to convert from, such as |
required |
to_currency
|
str
|
The code of the currency to convert to, such as |
required |
amount
|
float
|
The amount to convert, any finite number; 1.0 by default. |
1.0
|
precision
|
int
|
The decimal places of the result; 2 by default. |
2
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/forex.conversion.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If a currency isn't a |
ValueError
|
If a currency is empty, or |
Example
usd = m.forex.conversion("AUD", "USD", amount=100.0, precision=4).fetch()
FuturesNamespace ¶
FuturesNamespace(session: MassiveSession)
The US futures datasets, reached as m.futures, for CME, CBOT, NYMEX, and COMEX contracts.
Each method returns a query of one dataset, and together they cover trades, quotes, bars,
snapshots, and the reference datasets of contracts, products, exchanges, market status, and
session schedules. A method reads nothing, so it never blocks, and you can call it from
any thread.
A symbol is a contract ticker, such as "ESZ5" for the December 2025 E-mini S&P 500. A futures
trading day is a session that ends at 17:00 Chicago time, and Date is that session.
A contract trades only until its last trade date, so a live table needs a current contract.
contracts() lists them. The tickers in this namespace's examples have expired. Their live
calls need a current contract in their place. Their history() calls read past dates and work
as written.
You reach it through a session and never construct it. Import it as
from deephaven_massive.namespaces import FuturesNamespace to annotate your own code.
Example
import deephaven_massive as dm
m = dm.MassiveSession()
active = m.futures.contracts(product_code="ES", filters={"active": True}).fetch()
es = m.futures.trades(active).last_by() # live
daily = m.futures.bars("ESZ5", dm.Timespan.SESSION).history("2025-01-02", "2025-03-31")
Bind the namespace to the session it belongs to.
Users reach a namespace through its session, such as m.stocks, and never construct
one. The namespace keeps the session's core, which its dataset methods pass to the
shared factory, and not the session itself.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
session
|
MassiveSession
|
The session the namespace belongs to. |
required |
Methods:¶
trades ¶
trades(symbols: SymbolsLike, *, venues: Set[FuturesVenue] | None = None, on_error: ErrorPolicy | None = None) -> StreamHistoryQuery
Trades of futures contracts, tick by tick.
Each row holds a trade's price, size, and the exchange's sequence numbers. Date is the
trading session, and a date bound of history() is a whole session. snapshots() gives
each contract's latest trade. history() of dm.ALL reads the flat files.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Contract tickers such as |
required |
venues
|
Set[FuturesVenue] | None
|
The exchanges whose flat files |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
StreamHistoryQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/futures.trades.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
past = m.futures.trades("ESZ5").history("2025-10-01", "2025-10-03")
quotes ¶
quotes(symbols: SymbolsLike, *, venues: Set[FuturesVenue] | None = None, on_error: ErrorPolicy | None = None) -> StreamHistoryQuery
Best bid and offer quotes of futures contracts, tick by tick.
Each row holds a top-of-book update: bid and ask prices, sizes, and the time of each side.
Date is the trading session, and a date bound of history() is a whole session.
snapshots() gives each contract's latest quote. history() of dm.ALL reads the flat
files.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Contract tickers such as |
required |
venues
|
Set[FuturesVenue] | None
|
The exchanges whose flat files |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
StreamHistoryQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/futures.quotes.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
active = m.futures.contracts(product_code="CL", filters={"active": True}).fetch()
book = m.futures.quotes(active).last_by()
bars ¶
bars(symbols: SymbolsLike, timespan: Timespan, *, multiplier: int = 1, venues: Set[FuturesVenue] | None = None, on_error: ErrorPolicy | None = None) -> StreamHistoryQuery | HistoryQuery
Open, high, low, close, and volume bars of futures contracts.
Each row is one bar of multiplier times timespan. Daily bars are
dm.Timespan.SESSION or dm.Timespan.DAY; both give one bar per trading session.
DAY bars are read from REST only, so for dm.ALL use SESSION, which flat files
serve. There is no previous_day_bar(). With dates, history() keeps a bar of a
session or longer only when all its sessions are in the range. The dataset's page,
linked below, says how each bar's window and Date are set.
Massive refuses a multiplier above its unit's maximum, such as 60 minutes, and the call
raises MassiveError. Use the next unit instead.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Contract tickers, a contracts table, or |
required |
timespan
|
Timespan
|
The bar's unit. |
required |
multiplier
|
int
|
Units per bar. |
1
|
venues
|
Set[FuturesVenue] | None
|
The exchanges whose flat files |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
StreamHistoryQuery | HistoryQuery
|
A |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
sessions = m.futures.bars("ESZ5", dm.Timespan.SESSION).history(
"2025-10-01", "2025-10-31"
)
snapshots ¶
snapshots(symbols: SymbolsLike, *, product_code: str | Sequence[str] | Table | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
The latest trade, quote, minute bar, and session of each futures contract.
Each row holds one contract's last trade, quote, and minute bar, and the open, high, low,
close, volume, and settlement of its current session. dm.ALL with product_code reads
every contract of those products.
A table of product codes is read value by value, each as if passed alone. A row of a
code the table doesn't hold follows the unrequested_symbols cause of on_error. A
live table is followed. In a static table, a failed code is left out and listed in
m.problems(), and the call fails when every code fails, or when a code's problem has a
cause set to dm.OnError.RAISE.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Contract tickers, a contracts table, or |
required |
product_code
|
str | Sequence[str] | Table | None
|
Only contracts of this product, such as |
None
|
sort
|
str | None
|
A field of the rows, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/futures.snapshots.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
es_curve = m.futures.snapshots(dm.ALL, product_code="ES").poll(5)
contracts ¶
contracts(symbols: SymbolsLike | None = None, *, product_code: str | Sequence[str] | Table | None = None, as_of: DateLike | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
The specification of every listed futures contract.
Each row holds one contract as of a date: its product, trading venue, first and last trade
dates, settlement date, tick sizes, and order-size limits. Symbol is the contract's
ticker, and a combo, such as a spread, has the Type combo. The table works as symbols
for trades(), quotes(), bars(), and snapshots().
A table of product codes is read value by value, each as if passed alone. A row of a
code the table doesn't hold follows the unrequested_symbols cause of on_error. A
live table is followed. In a static table, a failed code is left out and listed in
m.problems(), and the call fails when every code fails, or when a code's problem has a
cause set to dm.OnError.RAISE.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
Only these contracts; leave it out for every contract. |
None
|
product_code
|
str | Sequence[str] | Table | None
|
Only contracts of this product, such as |
None
|
as_of
|
DateLike | None
|
The day whose specifications to list; leave it out for today. |
None
|
sort
|
str | None
|
A field of the rows, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/futures.contracts.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
active = m.futures.contracts(product_code="ES", filters={"active": True}).fetch()
es = m.futures.trades(active).last_by()
products ¶
products(*, product_code: str | Sequence[str] | Table | None = None, as_of: DateLike | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
The specification of every futures product.
Each row holds one product as of a date, such as ES, the E-mini S&P 500. A row gives the
product's name, trading and clearing venues, sector and asset class, settlement method and
currency, price quotation, and unit of measure. The dataset takes no symbols and has no
Symbol column.
A table of product codes is read value by value, each as if passed alone. A row of a
code the table doesn't hold follows the unrequested_symbols cause of on_error. A
live table is followed. In a static table, a failed code is left out and listed in
m.problems(), and the call fails when every code fails, or when a code's problem has a
cause set to dm.OnError.RAISE.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
product_code
|
str | Sequence[str] | Table | None
|
Only this product, such as |
None
|
as_of
|
DateLike | None
|
The day whose specifications to list; leave it out for today. |
None
|
sort
|
str | None
|
A field of the rows, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A table of product codes caps every code's requests instead. |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/futures.products.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
energy = m.futures.products(filters={"asset_sub_class": "energy"}).fetch()
exchanges ¶
exchanges(*, limit: int | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
The exchanges and trading venues of US futures.
Each row holds one venue, such as the Chicago Mercantile Exchange: its id, name, acronym,
market identifier codes, type, locale, and web site. Massive offers no filter or sort here,
so the method takes none. The dataset takes no symbols and has no Symbol column.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
limit
|
int | None
|
The most rows to return, in total. |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/futures.exchanges.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If |
Example
venues = m.futures.exchanges().fetch()
market_status ¶
market_status(*, product_code: str | Sequence[str] | Table | None = None, limit: int | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
Whether each futures product is trading right now.
Each row holds one product's current market event, such as open, pause, or close, in
MarketEvent. It also gives the trading venue, the session, and when Massive evaluated it.
poll() keeps it current. Massive's only filter here is the product code, so the method
takes no filters, sort, or order. The dataset takes no symbols and has no Symbol
column.
A table of product codes is read value by value, each as if passed alone. A row of a
code the table doesn't hold follows the unrequested_symbols cause of on_error. A
live table is followed. In a static table, a failed code is left out and listed in
m.problems(), and the call fails when every code fails, or when a code's problem has a
cause set to dm.OnError.RAISE.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
product_code
|
str | Sequence[str] | Table | None
|
Only this product, such as |
None
|
limit
|
int | None
|
The most rows to return, in total. A table of product codes caps every code's requests instead. |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/futures.market_status.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
status = m.futures.market_status(product_code=["ES", "CL"]).poll(30)
schedules ¶
schedules(*, product_code: str | Sequence[str] | Table | None = None, start: DateLike | None = None, end: DateLike | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
The timed events of each futures product's trading sessions.
Each row holds one scheduled event of a product's session, such as pre_open, open, or
close, in Event. It also gives the event's time, its session's SessionEndDate, and the
trading venue. The events cover session hours, intraday breaks, and holiday changes. The
dataset takes no symbols and has no Symbol column.
A table of product codes is read value by value, each as if passed alone. A row of a
code the table doesn't hold follows the unrequested_symbols cause of on_error. A
live table is followed. In a static table, a failed code is left out and listed in
m.problems(), and the call fails when every code fails, or when a code's problem has a
cause set to dm.OnError.RAISE.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
product_code
|
str | Sequence[str] | Table | None
|
Only this product, such as |
None
|
start
|
DateLike | None
|
The first session, by |
None
|
end
|
DateLike | None
|
The last session, as a date. Leave it out to include sessions still to come. |
None
|
sort
|
str | None
|
A field of the rows. Without it, Massive sorts by |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A table of product codes caps every code's requests instead. |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/futures.schedules.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
week = m.futures.schedules(
product_code="ES", start="2025-12-22", end="2025-12-26"
).fetch()
IndicatorsNamespace ¶
IndicatorsNamespace(session: MassiveSession)
The technical indicator datasets, reached as m.indicators.
Each method returns a query of one dataset, and together they cover the simple and exponential
moving averages, the relative strength index, and the moving average convergence/divergence.
Massive computes them from its bars, for tickers of any asset class. A method reads nothing, so
it never blocks. You can call it from any thread.
You reach it through a session and never construct it. Import it as
from deephaven_massive.namespaces import IndicatorsNamespace to annotate your own code.
Example
import deephaven_massive as dm
m = dm.MassiveSession()
averages = m.indicators.sma(["AAPL", "X:BTCUSD"], start="2026-01-02").fetch()
hourly = m.indicators.macd("AAPL", timespan=dm.Timespan.HOUR, limit=100).fetch()
Bind the namespace to the session it belongs to.
Users reach a namespace through its session, such as m.stocks, and never construct
one. The namespace keeps the session's core, which its dataset methods pass to the
shared factory, and not the session itself.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
session
|
MassiveSession
|
The session the namespace belongs to. |
required |
Methods:¶
sma ¶
sma(symbols: SymbolsLike, window: int = 50, *, timespan: Timespan = Timespan.DAY, series_type: SeriesType = SeriesType.CLOSE, adjusted: bool = True, start: DateLike | None = None, end: DateLike | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
The simple moving average of a ticker's bars, one row per bar.
Each row holds the average for one bar, with the bar's start and end. Date is the bar's
day, in UTC for crypto and forex and in New York time for the rest. Pass start, or a
limit with the default newest-first order; without either, the call reads the whole
series.
A read through today includes the current bar's value, which changes until the bar ends.
t.where("TimestampEnd <= TimestampInsert") keeps only finished values. A poll() in
APPEND mode keeps the first value it reads of each bar, so a bar read before it ended
never gets its finished value. On a delayed plan, reading through today raises
dm.EntitlementError unless the subscription is in MassiveConfig.delayed_subscriptions.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Tickers of any asset class. |
required |
window
|
int
|
The number of bars averaged. |
50
|
timespan
|
Timespan
|
The bar size, |
DAY
|
series_type
|
SeriesType
|
The bar price the indicator is computed from. |
CLOSE
|
adjusted
|
bool
|
Split-adjusted bars. It has no effect on a crypto pair, which has no splits. |
True
|
start
|
DateLike | None
|
The first bar's start. |
None
|
end
|
DateLike | None
|
The end of the range, of the same kind as |
None
|
order
|
Order | None
|
The direction of the bars' times. The endpoints have no |
None
|
limit
|
int | None
|
The most rows for each symbol. |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters. |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/indicators.sma.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
sma = m.indicators.sma(["AAPL", "X:BTCUSD"], start="2026-01-02").fetch()
ema ¶
ema(symbols: SymbolsLike, window: int = 50, *, timespan: Timespan = Timespan.DAY, series_type: SeriesType = SeriesType.CLOSE, adjusted: bool = True, start: DateLike | None = None, end: DateLike | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
The exponential moving average of a ticker's bars, one row per bar.
Each row holds the average for one bar, with the bar's start and end. Date is the bar's
day, in UTC for crypto and forex and in New York time for the rest. Pass start, or a
limit with the default newest-first order; without either, the call reads the whole
series.
A read through today includes the current bar's value, which changes until the bar ends.
t.where("TimestampEnd <= TimestampInsert") keeps only finished values. A poll() in
APPEND mode keeps the first value it reads of each bar, so a bar read before it ended
never gets its finished value. On a delayed plan, reading through today raises
dm.EntitlementError unless the subscription is in MassiveConfig.delayed_subscriptions.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Tickers of any asset class. |
required |
window
|
int
|
The number of bars the average spans. |
50
|
timespan
|
Timespan
|
The bar size, |
DAY
|
series_type
|
SeriesType
|
The bar price the indicator is computed from. |
CLOSE
|
adjusted
|
bool
|
Split-adjusted bars. It has no effect on a crypto pair, which has no splits. |
True
|
start
|
DateLike | None
|
The first bar's start. |
None
|
end
|
DateLike | None
|
The end of the range, of the same kind as |
None
|
order
|
Order | None
|
The direction of the bars' times. The endpoints have no |
None
|
limit
|
int | None
|
The most rows for each symbol. |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters. |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/indicators.ema.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
ema = m.indicators.ema("AAPL", 20, start="2026-01-02", end="2026-06-30").fetch()
rsi ¶
rsi(symbols: SymbolsLike, window: int = 14, *, timespan: Timespan = Timespan.DAY, series_type: SeriesType = SeriesType.CLOSE, adjusted: bool = True, start: DateLike | None = None, end: DateLike | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
The relative strength index of a ticker's bars, from 0 to 100, one row per bar.
Each row holds the index for one bar, with the bar's start and end. Date is the bar's day,
in UTC for crypto and forex and in New York time for the rest. Pass start, or a limit
with the default newest-first order; without either, the call reads the whole series.
A read through today includes the current bar's value, which changes until the bar ends.
t.where("TimestampEnd <= TimestampInsert") keeps only finished values. A poll() in
APPEND mode keeps the first value it reads of each bar, so a bar read before it ended
never gets its finished value. On a delayed plan, reading through today raises
dm.EntitlementError unless the subscription is in MassiveConfig.delayed_subscriptions.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Tickers of any asset class. |
required |
window
|
int
|
The number of bars looked back over. |
14
|
timespan
|
Timespan
|
The bar size, |
DAY
|
series_type
|
SeriesType
|
The bar price the indicator is computed from. |
CLOSE
|
adjusted
|
bool
|
Split-adjusted bars. It has no effect on a crypto pair, which has no splits. |
True
|
start
|
DateLike | None
|
The first bar's start. |
None
|
end
|
DateLike | None
|
The end of the range, of the same kind as |
None
|
order
|
Order | None
|
The direction of the bars' times. The endpoints have no |
None
|
limit
|
int | None
|
The most rows for each symbol. |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters. |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/indicators.rsi.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
rsi = m.indicators.rsi("AAPL", timespan=dm.Timespan.HOUR, limit=100).fetch()
macd ¶
macd(symbols: SymbolsLike, *, short_window: int = 12, long_window: int = 26, signal_window: int = 9, timespan: Timespan = Timespan.DAY, series_type: SeriesType = SeriesType.CLOSE, adjusted: bool = True, start: DateLike | None = None, end: DateLike | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
The moving average convergence/divergence of a ticker's bars, one row per bar.
Each row holds one bar's MACD line in Value, its signal line in Signal, and their
difference in Histogram, with the bar's start and end. Date is the bar's day, in UTC for
crypto and forex and in New York time for the rest. Pass start, or a limit with the
default newest-first order; without either, the call reads the whole series.
A read through today includes the current bar's value, which changes until the bar ends.
t.where("TimestampEnd <= TimestampInsert") keeps only finished values. A poll() in
APPEND mode keeps the first value it reads of each bar, so a bar read before it ended
never gets its finished value. On a delayed plan, reading through today raises
dm.EntitlementError unless the subscription is in MassiveConfig.delayed_subscriptions.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Tickers of any asset class. |
required |
short_window
|
int
|
The bars of the fast exponential average. |
12
|
long_window
|
int
|
The bars of the slow exponential average. |
26
|
signal_window
|
int
|
The bars of the signal line's average. |
9
|
timespan
|
Timespan
|
The bar size, |
DAY
|
series_type
|
SeriesType
|
The bar price the indicator is computed from. |
CLOSE
|
adjusted
|
bool
|
Split-adjusted bars. It has no effect on a crypto pair, which has no splits. |
True
|
start
|
DateLike | None
|
The first bar's start. |
None
|
end
|
DateLike | None
|
The end of the range, of the same kind as |
None
|
order
|
Order | None
|
The direction of the bars' times. The endpoints have no |
None
|
limit
|
int | None
|
The most rows for each symbol. |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters. |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/indicators.macd.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
macd = m.indicators.macd("AAPL", start="2026-01-02", end="2026-06-30").fetch()
IndicesNamespace ¶
IndicesNamespace(session: MassiveSession)
The index datasets, reached as m.indices.
Each method returns a query of one dataset, and together they cover index values, bars, each
index's previous day's bar and daily open and close, and snapshots. Index symbols take the I:
prefix, such as I:SPX. A method reads nothing, so it never blocks. You can call it
from any thread.
You reach it through a session and never construct it. Import it as
from deephaven_massive.namespaces import IndicesNamespace to annotate your own code.
Example
import deephaven_massive as dm
m = dm.MassiveSession()
levels = m.indices.values(["I:SPX", "I:NDX"]).last_by()
daily = m.indices.bars("I:SPX", dm.Timespan.DAY).history("2026-10-01", "2026-10-30")
Bind the namespace to the session it belongs to.
Users reach a namespace through its session, such as m.stocks, and never construct
one. The namespace keeps the session's core, which its dataset methods pass to the
shared factory, and not the session itself.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
session
|
MassiveSession
|
The session the namespace belongs to. |
required |
Methods:¶
values ¶
values(symbols: SymbolsLike, *, on_error: ErrorPolicy | None = None) -> StreamHistoryQuery
Index levels, tick by tick, as computed by the index providers.
Each row holds one index's level at one instant. Massive has no REST history of index
values, so history() reads only the flat files, which need S3 keys. For each index's
current level, poll snapshots().
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Indices with the |
required |
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
StreamHistoryQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/indices.values.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
live = m.indices.values(["I:SPX", "I:VIX"]).last_by()
bars ¶
bars(symbols: SymbolsLike, timespan: Timespan, *, multiplier: int = 1, on_error: ErrorPolicy | None = None) -> StreamHistoryQuery | HistoryQuery
Open, high, low, and close index levels over fixed windows of time.
Each row is one bar of one index. Index bars come from index levels, so they have no volume
and no adjusted argument. A window in which the index didn't change has no bar. A bar of a
day or longer covers Chicago days, as Massive cuts them: it starts at Massive's stamp,
midnight in Chicago (01:00 New York time), and ends at midnight in Chicago after its last
day.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Indices with the |
required |
timespan
|
Timespan
|
The bar's unit. Massive refuses |
required |
multiplier
|
int
|
Units per bar. |
1
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
StreamHistoryQuery | HistoryQuery
|
A |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
daily = m.indices.bars("I:SPX", dm.Timespan.DAY).history("2026-10-26", "2026-10-30")
previous_day_bar ¶
previous_day_bar(symbols: SymbolsLike, *, on_error: ErrorPolicy | None = None) -> FetchQuery
The previous trading day's open, high, low, and close of each index.
Each row holds one index's bar of the previous complete session. Its volume columns are always null. An index with no bar gets no row, and the library logs a WARNING.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Indices with the |
required |
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/indices.previous_day_bar.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
prev = m.indices.previous_day_bar(["I:SPX", "I:NDX"]).fetch()
snapshots ¶
snapshots(symbols: SymbolsLike, *, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
The current state of each index: its level, its session so far, and its status.
Each row holds one index's level and its session's open, high, low, close, and change. It
also holds the market status and the index's name. An index Massive doesn't know gets no
row, and m.problems() lists it as unavailable_symbols. One your plan lacks gets no
row either, and m.problems() lists it as refused_symbols with Massive's answer. One
Massive answers with an error its documentation doesn't list gets no row either, listed
as undocumented_errors with Massive's answer.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Indices with the |
required |
sort
|
str | None
|
|
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/indices.snapshots.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
latest = m.indices.snapshots(["I:SPX", "I:NDX"]).poll(5)
daily_open_close ¶
daily_open_close(symbols: SymbolsLike, date: DateLike, *, on_error: ErrorPolicy | None = None) -> FetchQuery
One day's opening, closing, high, and low levels of each index.
Each row holds one index's levels for the day, with the window of an index day bar. It also holds the pre-market and after-hours levels where Massive has them.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Indices with the |
required |
date
|
DateLike
|
The day, as a date. A |
required |
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/indices.daily_open_close.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
day = m.indices.daily_open_close(["I:SPX", "I:NDX"], "2026-10-30").fetch()
OptionsNamespace ¶
OptionsNamespace(session: MassiveSession)
The US options datasets, reached as m.options.
Each method returns a query of one dataset. The datasets cover:
- market data: trades, quotes, bars, and fair market value;
- each contract's last trade, previous day's bar, and daily open and close;
- option chains, snapshots, and contract reference data;
- each contract's open interest and greeks, and each underlying's open interest, by trading day;
- the unusual trades Massive flags;
- OPRA's administrative messages.
A contract's ticker is O: followed by its OCC symbol, such as O:AAPL250117C00150000. A
method reads nothing, so it never blocks, and you can call it from any thread. You reach it
through a session and never construct it. Import it as
from deephaven_massive.namespaces import OptionsNamespace to annotate your own code.
Example
import deephaven_massive as dm
m = dm.MassiveSession()
calls = m.options.chain("AAPL", contract_type=dm.ContractType.CALL).fetch()
live = m.options.trades(calls.head(10)).append_only() # ten current contracts
Bind the namespace to the session it belongs to.
Users reach a namespace through its session, such as m.stocks, and never construct
one. The namespace keeps the session's core, which its dataset methods pass to the
shared factory, and not the session itself.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
session
|
MassiveSession
|
The session the namespace belongs to. |
required |
Methods:¶
trades ¶
trades(symbols: SymbolsLike, *, on_error: ErrorPolicy | None = None) -> StreamHistoryQuery
Trades of US-listed options contracts (OPRA), tick by tick.
Each row holds a trade's price, size, exchange, condition codes, and SIP timestamp.
history() of dm.ALL reads a day's flat file. One connection carries at most 1,000
contracts.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Option contracts, or |
required |
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
StreamHistoryQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/options.trades.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
from datetime import UTC, datetime, timedelta
contract = m.options.chain("AAPL", limit=1).fetch().view("Symbol")
hour = m.options.trades(contract).history(datetime.now(UTC) - timedelta(hours=1))
last_trade ¶
last_trade(symbols: SymbolsLike, *, on_error: ErrorPolicy | None = None) -> FetchQuery
The latest trade of each US-listed options contract.
Each row holds one contract's most recent trade. A contract with no trade is left out, and
the library logs a WARNING. snapshots() also gives each contract's last trade, on more
plans than this dataset. poll() misses any trade between two polls; trades() streams
every one.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Option contracts. |
required |
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/options.last_trade.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
contract = m.options.chain("AAPL", limit=1).fetch().view("Symbol")
last = m.options.last_trade(contract).fetch()
quotes ¶
quotes(symbols: SymbolsLike, *, on_error: ErrorPolicy | None = None) -> StreamHistoryQuery
Quotes of US-listed options contracts (OPRA), tick by tick.
Each row holds a quote's bid and ask prices, sizes, and exchanges, with its SIP timestamp.
snapshots() gives each contract's latest quote. history() of dm.ALL reads a day's flat
file. One connection carries at most 1,000 contracts.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Option contracts, or |
required |
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
StreamHistoryQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/options.quotes.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
contract = m.options.chain("AAPL", limit=1).fetch().view("Symbol")
book = m.options.quotes(contract).last_by()
bars ¶
bars(symbols: SymbolsLike, timespan: Timespan, *, multiplier: int = 1, adjusted: bool = True, on_error: ErrorPolicy | None = None) -> StreamHistoryQuery | HistoryQuery
Aggregate bars (open, high, low, close, volume) of US-listed options contracts.
Each row is one contract's bar of multiplier times timespan. The dataset's page, linked
below, says how each bar's window and Date are set.
- History is adjusted for splits of the underlying unless you pass
adjusted=False. Streams and flat files serve bars as traded. history()ofdm.ALLreads a day's flat file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Option contracts, or |
required |
timespan
|
Timespan
|
The bar's unit. Massive refuses |
required |
multiplier
|
int
|
Units per bar. |
1
|
adjusted
|
bool
|
Adjusts for splits of the underlying. |
True
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
StreamHistoryQuery | HistoryQuery
|
A |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
from deephaven_massive.queries import StreamHistoryQuery
contract = m.options.chain("AAPL", limit=1).fetch().view("Symbol")
bars = m.options.bars(contract, dm.Timespan.MINUTE)
assert isinstance(bars, StreamHistoryQuery) # 1-minute bars stream
minute = bars.append_only()
previous_day_bar ¶
previous_day_bar(symbols: SymbolsLike, *, adjusted: bool = True, on_error: ErrorPolicy | None = None) -> FetchQuery
The previous trading day's open, high, low, close, and volume of options contracts.
Each row holds one contract's bar of the previous completed session. A contract with no bar is left out, and the library logs a WARNING.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Option contracts. |
required |
adjusted
|
bool
|
Adjusts for splits of the underlying. |
True
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/options.previous_day_bar.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
contract = m.options.chain("AAPL", limit=1).fetch().view("Symbol")
previous = m.options.previous_day_bar(contract).fetch()
fmv ¶
fmv(symbols: SymbolsLike, *, on_error: ErrorPolicy | None = None) -> StreamQuery
Massive's fair market value of US-listed options contracts, streamed in real time.
Each row holds a contract's fair market value and when Massive computed it. It streams only, with no history. One connection carries at most 1,000 contracts.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Option contracts, or |
required |
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
StreamQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/options.fmv.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
contract = m.options.chain("AAPL", limit=1).fetch().view("Symbol")
fair = m.options.fmv(contract).last_by()
admin_messages ¶
admin_messages(*, on_error: ErrorPolicy | None = None) -> NoSymbolStreamHistoryQuery
OPRA's administrative messages, including FLEX trade notices, live and past.
Each row holds one message from one exchange: the text exactly as OPRA sends it in
Message, the exchange's ID in Exchange, and its sequence number and SIP timestamp.
The library never parses the text, so a FLEX trade's details stay in it, as in
Massive's sample TEXT CFLEX SPY LST PM EUR 4 LEGS 1 @ 733.36.
The call takes no symbols. The stream methods follow every exchange's messages live.
history() reads every exchange's past messages from Massive's archive. To keep one
exchange's messages, filter on Exchange. The rows have no Symbol column, so the
query has no last_by().
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
on_error
|
ErrorPolicy | None
|
What a bad row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
NoSymbolStreamHistoryQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/options.admin_messages.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
Example
notices = m.options.admin_messages().append_only()
flex = notices.where("Message.contains(`FLEX`)") # as in the CFLEX sample
past = m.options.admin_messages().history("2026-11-13", "2026-11-13")
chain ¶
chain(underlying: str | Table, *, contract_type: ContractType | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
The snapshot of every contract in one underlying's option chain.
Each row holds one contract's details, the session's prices, its last quote and trade, its
greeks, implied volatility, and open interest. Underlying is the instrument Massive links
the contract to, so an adjusted contract, such as one with root AAPL1, is listed beside
the standard ones. contracts() tells them apart: a standard contract has
SharesPerContract of 100.
A table of underlyings is read value by value. A row that isn't a stock or index ticker
follows the noncanonical_symbols cause of on_error, which skips and logs it by
default. A contract of an underlying the table doesn't hold follows its
unrequested_symbols cause, which leaves it out and lists it in m.problems(). A live
table is followed. In a static table, a failed underlying is left out and listed in
m.problems(), and the call fails when every underlying fails, or when an underlying's
problem has a cause set to dm.OnError.RAISE.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
underlying
|
str | Table
|
The underlying's exact Massive ticker, such as |
required |
contract_type
|
ContractType | None
|
|
None
|
sort
|
str | None
|
|
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A table of underlyings caps every underlying's requests instead. |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/options.chain.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
calls = m.options.chain("AAPL", contract_type=dm.ContractType.CALL).fetch()
snapshots ¶
snapshots(symbols: SymbolsLike, *, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
The current snapshot of each requested options contract, with its greeks.
Each row holds one contract's details, the session's prices, and its last quote, trade, and
minute bar. It also holds the contract's greeks, implied volatility, open interest, and fair
market value. dm.ALL lists every contract Massive has, which means millions of rows.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Option contracts, or |
required |
sort
|
str | None
|
|
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/options.snapshots.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
contract = m.options.chain("AAPL", limit=1).fetch().view("Symbol")
greeks = m.options.snapshots(contract).poll(5)
contracts ¶
contracts(underlying: str | Table | None = None, *, contract_type: ContractType | None = None, as_of: DateLike | None = None, expired: bool = False, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
Options contracts by underlying: call or put, exercise style, expiration, and strike.
Lists the contracts of one underlying, or of every underlying, so you can find their
tickers. To read contracts you can already name, use contract_details().
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
underlying
|
str | Table | None
|
Massive's exact ticker of the underlying, such as |
None
|
contract_type
|
ContractType | None
|
|
None
|
as_of
|
DateLike | None
|
The day whose contracts to list; leave it out for today. |
None
|
expired
|
bool
|
True asks Massive for expired contracts. |
False
|
sort
|
str | None
|
|
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A table of underlyings caps every underlying's rows separately instead. |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/options.contracts.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
listed = m.options.contracts("NVDA").fetch()
contract_details ¶
contract_details(symbols: SymbolsLike, *, as_of: DateLike | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
The options contracts you name: call or put, exercise style, expiration, and strike.
Reads each contract you name into the same columns as contracts(). Each contract is one
request. To find a contract's ticker first, list its underlying's contracts with
contracts().
By default, a contract Massive has no data for gets no row, and the log names it.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Option contracts to describe. |
required |
as_of
|
DateLike | None
|
Reads each contract as it stood on this day; leave it out for today. |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/options.contract_details.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
details = m.options.contract_details(
"O:AAPL250117C00150000", as_of="2025-01-02"
).fetch()
daily_open_close ¶
daily_open_close(symbols: SymbolsLike, date: DateLike, *, adjusted: bool = True, on_error: ErrorPolicy | None = None) -> FetchQuery
The open, high, low, close, and volume of each options contract on one day.
Each row holds one contract's day, with its pre-market and after-hours prices. Massive
doesn't say here whether the prices are adjusted, so the library can't check adjusted.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Option contracts. |
required |
date
|
DateLike
|
The trading day, as a date; a |
required |
adjusted
|
bool
|
Adjusts for splits of the underlying. |
True
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/options.daily_open_close.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
day = m.options.daily_open_close("O:AAPL250117C00150000", "2025-01-02").fetch()
open_interest ¶
open_interest(symbols: SymbolsLike | None = None, *, root: str | Sequence[str] | None = None, contract_type: ContractType | None = None, start: DateLike | None = None, end: DateLike | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
The open interest of each US-listed options contract at the end of each trading day.
Each row holds one contract's open interest on one trading day, as OPRA reports it, with
the contract's type, expiration, strike, OCC root, and underlying. Massive publishes a
day's figures the next morning, so the latest Date is the previous trading day. Leave
out symbols and narrow by root, contract_type, or filters to read many contracts.
Underlying is Massive's ticker, with I: for an index (I:SPX), as in
m.options.contracts(). To tell which roots are on an index, a session reads Massive's
list of index tickers once. A root whose underlying isn't on that list keeps its bare
ticker and costs nothing more. A root whose underlying is on it, such as SPX, costs one
request to Massive's Contract Overview the first time the session meets that root. If
Massive can't say, the library leaves the root's rows out and lists them in
m.problems() as unreadable_symbols.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
Option contracts; leave it out for every contract. |
None
|
root
|
str | Sequence[str] | None
|
An OCC root, such as |
None
|
contract_type
|
ContractType | None
|
|
None
|
start
|
DateLike | None
|
The first trading day. |
None
|
end
|
DateLike | None
|
The last trading day. |
None
|
sort
|
str | None
|
Any of Massive's field names, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/options.open_interest.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
weeklies = m.options.open_interest(root="SPXW", start="2026-11-13").fetch()
open_interest_by_underlying ¶
open_interest_by_underlying(symbols: SymbolsLike | None = None, *, start: DateLike | None = None, end: DateLike | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
Each underlying's open interest at the end of each trading day, calls and puts split out.
Each row holds one underlying's open interest on one trading day. The total covers
every root on the underlying, so SPX includes SPXW. Massive publishes a day's
figures the next morning, so the latest Date is the previous trading day.
Symbol is the underlying's ticker, with I: for an index, such as I:SPX. If the
library can't tell whether a ticker is a stock's or an index's, it leaves that ticker's
rows out and lists them in m.problems() as unreadable_symbols.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
Stock, ETF, or index tickers, such as |
None
|
start
|
DateLike | None
|
The first trading day. |
None
|
end
|
DateLike | None
|
The last trading day. |
None
|
sort
|
str | None
|
Any of Massive's field names, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/options.open_interest_by_underlying.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
positioning = m.options.open_interest_by_underlying(
["SPY", "I:SPX"], start="2026-11-13"
).fetch()
greeks ¶
greeks(symbols: SymbolsLike | None = None, *, underlying: str | Sequence[str] | None = None, contract_type: ContractType | None = None, start: DateLike | None = None, end: DateLike | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
The end-of-day greeks and implied volatility of each US-listed options contract.
Each row holds one contract's delta, gamma, theta, vega, rho, and implied volatility
for one trading day, with the inputs Massive's solver used: the NBBO bid, ask, and
midpoint 15 minutes before the close (OptionPrice, at QuoteTimestamp), the
underlying's price then (UnderlyingPrice, at UnderlyingTimestamp), the dividend
yield, the risk-free rate, the pricing model, and the exercise style, beside the day's
volume and the open interest published that morning. Massive takes the market's state at
15:45 ET (12:45 ET on an early close), so a day's rows arrive after its close, and a
contract Massive can't price keeps its row with null greeks. Leave out symbols and
narrow by underlying, contract_type, or filters to read many contracts.
Underlying is Massive's ticker, with I: for an index (I:SPX), as in
m.options.contracts(). To tell which roots are on an index, a session reads Massive's
list of index tickers once. A root whose underlying isn't on that list keeps its bare
ticker and costs nothing more. A root whose underlying is on it, such as SPX, costs one
request to Massive's Contract Overview the first time the session meets that root. If
Massive can't say, the library leaves the root's rows out and lists them in
m.problems() as unreadable_symbols.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
Option contracts; leave it out for every contract. |
None
|
underlying
|
str | Sequence[str] | None
|
The underlying's exact Massive ticker, such as |
None
|
contract_type
|
ContractType | None
|
|
None
|
start
|
DateLike | None
|
The first trading day. |
None
|
end
|
DateLike | None
|
The last trading day. |
None
|
sort
|
str | None
|
Any of Massive's field names, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/options.greeks.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
surface = m.options.greeks(
underlying="AMD", start="2026-10-29", end="2026-10-29"
).fetch()
exposure_by_underlying ¶
exposure_by_underlying(symbols: SymbolsLike | None = None, *, start: DateLike | None = None, end: DateLike | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
Each underlying's daily options exposure, with its gamma flip and call and put walls.
Each row sums one underlying's contracts on one trading day. It covers every root and
expiration, so SPX includes SPXW. Massive counts only standard contracts that
deliver 100 shares. ExcludedOpenInterest holds the open interest of the rest. Open
interest is for the trading session Date, and Massive publishes it the next morning.
The gamma and delta values are from 15 minutes before the close on Date. Massive
updates the data once a day.
Symbol is the underlying's ticker, with I: for an index, such as I:SPX. If the
library can't tell whether a ticker is a stock's or an index's, it leaves that ticker's
rows out and lists them in m.problems() as unreadable_symbols.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
Stock, ETF, or index tickers, such as |
None
|
start
|
DateLike | None
|
The first trading day. |
None
|
end
|
DateLike | None
|
The last trading day. |
None
|
sort
|
str | None
|
Any of Massive's field names, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters. |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/options.exposure_by_underlying.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
walls = m.options.exposure_by_underlying(
["SPY", "I:SPX"], start="2026-11-27"
).fetch()
exposure_by_strike ¶
exposure_by_strike(symbols: SymbolsLike | None = None, *, start: DateLike | None = None, end: DateLike | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
Each underlying's daily options exposure at each strike price, every expiration summed.
Each row sums one underlying's contracts at one strike price on one trading day. It
covers every root, so SPX includes SPXW. Massive counts only standard contracts
that deliver 100 shares. ExcludedOpenInterest holds the open interest of the rest.
Open interest is for the trading session Date, and Massive publishes it the next
morning. The gamma and delta values are from 15 minutes before the close on Date.
Massive updates the data once a day.
Symbol is the underlying's ticker, with I: for an index, such as I:SPX. If the
library can't tell whether a ticker is a stock's or an index's, it leaves that ticker's
rows out and lists them in m.problems() as unreadable_symbols.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
Stock, ETF, or index tickers, such as |
None
|
start
|
DateLike | None
|
The first trading day. |
None
|
end
|
DateLike | None
|
The last trading day. |
None
|
sort
|
str | None
|
Any of Massive's field names, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/options.exposure_by_strike.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
profile = m.options.exposure_by_strike(
"SPY", start="2026-11-27", end="2026-11-27"
).fetch()
exposure_by_expiration ¶
exposure_by_expiration(symbols: SymbolsLike | None = None, *, start: DateLike | None = None, end: DateLike | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
Each underlying's daily options exposure for each expiration date, with its max pain.
Each row sums one underlying's contracts that expire on ExpirationDate, as of the
trading day Date. It covers every root, so SPX includes SPXW. Massive counts only
standard contracts that deliver 100 shares. ExcludedOpenInterest holds the open
interest of the rest. Open interest is for the trading session Date, and Massive
publishes it the next morning. The gamma and delta values are from 15 minutes before
the close on Date. Massive updates the data once a day.
Symbol is the underlying's ticker, with I: for an index, such as I:SPX. If the
library can't tell whether a ticker is a stock's or an index's, it leaves that ticker's
rows out and lists them in m.problems() as unreadable_symbols.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
Stock, ETF, or index tickers, such as |
None
|
start
|
DateLike | None
|
The first trading day. |
None
|
end
|
DateLike | None
|
The last trading day. |
None
|
sort
|
str | None
|
Any of Massive's field names, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/options.exposure_by_expiration.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
pins = m.options.exposure_by_expiration(
"AAPL",
start="2026-11-27",
end="2026-11-27",
filters={"expiration_date_lte": "2026-12-31"},
).fetch()
unusual_trades ¶
unusual_trades(symbols: SymbolsLike | None = None, *, start: DateLike | None = None, end: DateLike | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
Large trades and sweeps of US-listed options contracts, flagged by Massive.
Each row is one trade that meets at least one of Massive's unusual-activity cases.
Flags names every case the trade meets:
block_premium: a notional premium (price x size x 100) of $100,000 or more;block_size: 1,000 contracts or more;iso: an intermarket sweep.
Massive leaves out cancels, late reports, and compression trades. poll() appends each
new trade.
Underlying is Massive's ticker, with I: for an index (I:SPX), as in
m.options.contracts(). To tell which roots are on an index, a session reads Massive's
list of index tickers once. A root whose underlying isn't on that list keeps its bare
ticker and costs nothing more. A root whose underlying is on it, such as SPX, costs one
request to Massive's Contract Overview the first time the session meets that root. If
Massive can't say, the library leaves the root's rows out and lists them in
m.problems() as unreadable_symbols.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
Option contracts; leave it out for every contract. |
None
|
start
|
DateLike | None
|
The first instant, or the first day. |
None
|
end
|
DateLike | None
|
The instant after the last, or the last day. |
None
|
sort
|
str | None
|
Any of Massive's field names, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters. The range
|
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/options.unusual_trades.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
unusual = m.options.unusual_trades(limit=100).poll(60)
PartnersBenzingaNamespace ¶
PartnersBenzingaNamespace(session: MassiveSession)
The Benzinga datasets, reached as m.partners.benzinga.
Each method returns a query of one dataset, and together they cover analyst profiles and their
firms, analyst insights, rating actions and their consensus, bull and bear cases, corporate
guidance, earnings, and news. A method reads nothing, so it never blocks. You can call
it from any thread.
You reach it through a session and never construct it. Import it as
from deephaven_massive.namespaces import PartnersBenzingaNamespace to annotate your own code.
Example
import deephaven_massive as dm
m = dm.MassiveSession()
upgrades = m.partners.benzinga.ratings(
["AAPL", "MSFT"], filters={"rating_action": "upgrades"}
).fetch()
Bind the namespace to the session it belongs to.
Users reach a namespace through its session, such as m.stocks, and never construct
one. The namespace keeps the session's core, which its dataset methods pass to the
shared factory, and not the session itself.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
session
|
MassiveSession
|
The session the namespace belongs to. |
required |
Methods:¶
analysts ¶
analysts(*, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
Benzinga's profiles of sell-side analysts, with each analyst's firm and track record.
Each row holds an analyst's name, firm, ratings issued, and performance measures. The
success rate and the average return are two of the measures. The rows describe people, so
the dataset takes no symbols and has no Symbol. Select analysts with filters, such as by
full_name or firm_name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sort
|
str | None
|
Any field of the rows, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/partners.benzinga.analysts.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
top = m.partners.benzinga.analysts(
sort="smart_score", order=dm.Order.DESC, limit=50
).fetch()
analyst_insights ¶
analyst_insights(symbols: SymbolsLike | None = None, *, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
Benzinga analyst insights on US stocks: a rating, a price target, and the reason.
Each row holds an insight's stock, firm, rating and rating action, price target, and Date.
It also holds the analyst's rationale. Symbol is null on a row Benzinga sends without a
ticker. The dataset has no start or end, so narrow the dates with filters, such as
date_gte.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
US stock tickers. Leave it out for every ticker; |
None
|
sort
|
str | None
|
Any field of the rows, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/partners.benzinga.analyst_insights.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
insights = m.partners.benzinga.analyst_insights("NVDA").fetch()
ratings ¶
ratings(symbols: SymbolsLike | None = None, *, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
Analyst rating and price-target actions on US stocks, as reported by Benzinga.
Each row holds one analyst's action, such as an upgrade, a downgrade, a reiteration, or a
price-target change. The row has the previous and new rating and target, and the action's
Date. Symbol is null on a row Benzinga sends without a ticker. The dataset has no
start or end, so narrow the dates with filters, such as date_gte.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
US stock tickers. Leave it out for every ticker; |
None
|
sort
|
str | None
|
Any field of the rows, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/partners.benzinga.ratings.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
live = m.partners.benzinga.ratings(["AAPL", "MSFT"]).poll(60)
consensus_ratings ¶
consensus_ratings(symbols: SymbolsLike, *, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
The consensus of analyst ratings and price targets for each US stock, from Benzinga.
Each row holds one stock's count of each rating and its consensus rating. It also holds the
stock's consensus, high, and low price targets, and its number of analysts. The consensus
covers every rating Benzinga holds. A date filter limits it to the ratings of a range. The
dataset has no limit.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
US stock tickers. |
required |
filters
|
Mapping[str, FilterValue] | None
|
The range of the ratings to count, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/partners.benzinga.consensus_ratings.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
recent = m.partners.benzinga.consensus_ratings(
"AAPL", filters={"date_gte": "2026-01-01", "date_lt": "2026-07-01"}
).fetch()
bulls_bears_say ¶
bulls_bears_say(symbols: SymbolsLike | None = None, *, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
Benzinga's bull case and bear case summaries for US stocks.
Each row holds a stock's bull case and bear case as text. LastUpdated says when they last
changed. Symbol is null on a row Benzinga sends without a ticker.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
US stock tickers. Leave it out for every ticker; |
None
|
sort
|
str | None
|
Any field of the rows, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/partners.benzinga.bulls_bears_say.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
cases = m.partners.benzinga.bulls_bears_say(["TSLA"]).fetch()
guidance ¶
guidance(symbols: SymbolsLike | None = None, *, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
Earnings and revenue guidance issued by US companies, as reported by Benzinga.
Each row holds one guidance release: the stock, the fiscal period, the guided EPS and
revenue ranges with the previous ones, and its Date. Positioning says whether the figure
is the primary one. Symbol is null on a row Benzinga sends without a ticker. The dataset
has no start or end, so narrow the dates with filters, such as date_gte.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
US stock tickers. Leave it out for every ticker; |
None
|
sort
|
str | None
|
Any field of the rows, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/partners.benzinga.guidance.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
outlook = m.partners.benzinga.guidance("AAPL").fetch()
earnings ¶
earnings(symbols: SymbolsLike | None = None, *, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
Earnings announcements of US companies from Benzinga, with estimates and surprises.
Each row holds one announcement, past or scheduled: the stock, the fiscal period, and the
date and time, with whether they're confirmed. It also holds the estimated, actual, and
previous EPS and revenue, with their surprises. Symbol is null on a row Benzinga sends
without a ticker. The dataset has no start or end, so narrow the dates with filters,
such as date_gte.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
US stock tickers. Leave it out for every ticker; |
None
|
sort
|
str | None
|
Any field of the rows, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/partners.benzinga.earnings.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
upcoming = m.partners.benzinga.earnings(filters={"date_gte": "2026-11-01"}).fetch()
firms ¶
firms(*, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
The research firms behind Benzinga's analyst ratings.
Each row holds a firm's Benzinga id, name, currency, and last update. Join its BenzingaId
to the BenzingaFirmId of ratings(), analyst_insights(), or analysts() to name the
firm of a rating, an insight, or an analyst. The rows describe firms, so the dataset takes
no symbols and has no Symbol.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sort
|
str | None
|
Any field of the rows, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/partners.benzinga.firms.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
firms = m.partners.benzinga.firms().fetch()
news ¶
news(symbols: SymbolsLike | None = None, *, start: DateLike | None = None, end: DateLike | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
Benzinga news articles, with headline, teaser, body, and the tickers each one names.
Each row holds one article with its publication Timestamp. Tickers lists every ticker an
article names. symbols selects the articles that name any of yours. An article appears
once for each of your tickers it names, with that ticker in Symbol. A poll() adds only
articles it hasn't seen, so it needs a start or a limit.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
US stock tickers. Leave it out for every article; |
None
|
start
|
DateLike | None
|
The earliest publication time. |
None
|
end
|
DateLike | None
|
The end of the range. |
None
|
sort
|
str | None
|
Any field of the rows, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/partners.benzinga.news.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
feed = m.partners.benzinga.news(["AAPL", "NVDA"], start="2026-11-02").poll(30)
PartnersEtfGlobalNamespace ¶
PartnersEtfGlobalNamespace(session: MassiveSession)
The ETF Global datasets, reached as m.partners.etf_global.
Each method returns a query of one dataset, and together they cover scores, holdings, fund
flows, profiles, and classifications of US-listed ETFs. Each row belongs to one fund, named by
its ticker in Symbol. EffectiveDate is the date the data is valid for. ProcessedDate is
when ETF Global processed the row. Some issuers publish weeks late, and a later processing can
restate an effective date. The datasets have no start or end, so narrow the dates with
filters, such as effective_date_gte. A method reads nothing, so it never blocks.
You can call it from any thread.
You reach it through a session and never construct it. Import it as
from deephaven_massive.namespaces import PartnersEtfGlobalNamespace to annotate your own code.
Example
import deephaven_massive as dm
m = dm.MassiveSession()
spy = m.partners.etf_global.constituents(
"SPY", filters={"effective_date": "2026-09-18"}
).fetch()
Bind the namespace to the session it belongs to.
Users reach a namespace through its session, such as m.stocks, and never construct
one. The namespace keeps the session's core, which its dataset methods pass to the
shared factory, and not the session itself.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
session
|
MassiveSession
|
The session the namespace belongs to. |
required |
Methods:¶
analytics ¶
analytics(symbols: SymbolsLike | None = None, *, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
ETF Global's quantitative risk, reward, and quality scores for US-listed ETFs.
Each row holds a fund's risk and reward scores, its quant grade and total score, and their
components, on one EffectiveDate.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
ETF tickers. Leave it out for every fund; |
None
|
sort
|
str | None
|
Any field of the rows, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/partners.etf_global.analytics.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
scores = m.partners.etf_global.analytics(["SPY", "QQQ"]).fetch()
constituents ¶
constituents(symbols: SymbolsLike | None = None, *, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
The holdings of US-listed ETFs from ETF Global, one row per fund, date, and holding.
Each row holds a security the fund in Symbol holds on an EffectiveDate: its ticker in
ConstituentTicker, its name and identifiers, its rank by weight, and its weight, market
value, and shares. A fund holds hundreds of securities on many dates, so filter by date.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
ETF tickers. Leave it out for every fund; |
None
|
sort
|
str | None
|
Any field of the rows, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/partners.etf_global.constituents.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
spy = m.partners.etf_global.constituents(
"SPY", filters={"effective_date": "2026-09-18"}
).fetch()
fund_flows ¶
fund_flows(symbols: SymbolsLike | None = None, *, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
Daily fund flows, net asset value, and shares outstanding of US-listed ETFs.
Each row holds the money that flowed into or out of a fund on an EffectiveDate. It also
holds the fund's net asset value and shares outstanding that day.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
ETF tickers. Leave it out for every fund; |
None
|
sort
|
str | None
|
Any field of the rows, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/partners.etf_global.fund_flows.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
flows = m.partners.etf_global.fund_flows(["SPY", "IVV", "VOO"]).fetch()
profiles ¶
profiles(symbols: SymbolsLike | None = None, *, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
ETF Global's profiles of US ETFs: issuer, fees, assets, trading, and exposures.
Each row holds a fund's issuer, inception, fees, assets under management, holdings count,
and trading activity on an EffectiveDate. Each of its exposures, such as by sector or
currency, is a column of JSON text.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
ETF tickers. Leave it out for every fund; |
None
|
sort
|
str | None
|
Any field of the rows, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/partners.etf_global.profiles.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
profile = m.partners.etf_global.profiles("ARKK").fetch()
taxonomies ¶
taxonomies(symbols: SymbolsLike | None = None, *, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
ETF Global's classification of US-listed ETFs by strategy, structure, and exposure.
Each row holds a fund's asset class, category, focus, region, objective, selection and
weighting methods, leverage, rebalancing, ESG, and tax classification on an EffectiveDate.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
ETF tickers. Leave it out for every fund; |
None
|
sort
|
str | None
|
Any field of the rows, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/partners.etf_global.taxonomies.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
kinds = m.partners.etf_global.taxonomies(["SPY", "TQQQ"]).fetch()
PartnersFableNamespace ¶
PartnersFableNamespace(session: MassiveSession)
The Fable Data datasets, reached as m.partners.fable.
Each method returns a query of one dataset. Fable Data totals a consumer panel's card and
open-banking spending per merchant and day. The panel covers six European countries: the UK,
Germany, France, Italy, Spain, and Austria. Fable maps about 3,500 merchants to their parent
companies. About 250 of those are US public companies with tickers. To join the two datasets,
match an aggregate's Name to a hierarchy row's LookupName. The tickers are Bloomberg's, such
as "AMZN US", not Massive's. So neither dataset takes symbols; filter with filters
instead. A method reads nothing, so it never blocks. You can call it from any thread.
You reach it through a session and never construct it. Import it as
from deephaven_massive.namespaces import PartnersFableNamespace to annotate your own code.
Example
import deephaven_massive as dm
m = dm.MassiveSession()
amazon = m.partners.fable.merchant_aggregates(
start="2026-06-01", filters={"parent_name": "Amazon Inc"}
).fetch()
Bind the namespace to the session it belongs to.
Users reach a namespace through its session, such as m.stocks, and never construct
one. The namespace keeps the session's core, which its dataset methods pass to the
shared factory, and not the session itself.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
session
|
MassiveSession
|
The session the namespace belongs to. |
required |
Methods:¶
merchant_aggregates ¶
merchant_aggregates(*, start: DateLike | None = None, end: DateLike | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
Daily European consumer spending per merchant, from Fable Data's transaction panel.
Each row holds a merchant's spending and its transaction and account counts. It also holds
the panel sizes that normalize them. A row covers one transaction day, consumer country,
channel, and panel. Amounts are in the row's TransactionCurrency, EUR or GBP. A restated
day comes back with a later PublishedDate.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
start
|
DateLike | None
|
The first transaction day. |
None
|
end
|
DateLike | None
|
The last transaction day. |
None
|
sort
|
str | None
|
Any field of the rows, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/partners.fable.merchant_aggregates.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- a bound isn't a date;
- the range ends before it starts;
- |
Example
uk = m.partners.fable.merchant_aggregates(
start="2026-06-01", filters={"user_country": "UK"}
).fetch()
merchant_hierarchy ¶
merchant_hierarchy(*, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
Fable Data's map from merchants to parent companies, tickers, and industries.
Each row holds a merchant's names, its parent companies with their Bloomberg tickers,
whether it's listed, and its sector and industry. A row covers one period, from ActiveFrom
to ActiveTo. 0001-01-01 and 9999-12-31 mark a period with no start or no end. For a
point-in-time map, join an aggregate's Name to LookupName on a day inside the period.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sort
|
str | None
|
Any field of the rows, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/partners.fable.merchant_hierarchy.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
listed = m.partners.fable.merchant_hierarchy(
filters={"listing_status": "public"}
).fetch()
PartnersNamespace ¶
PartnersNamespace(session: MassiveSession)
The datasets Massive resells from its partners, reached as m.partners.
Each partner has its own namespace, whose methods each return a query of one dataset:
m.partners.benzinga: analyst ratings, earnings, guidance, and news.m.partners.etf_global: ETF analytics, holdings, flows, and profiles.m.partners.tmx: corporate events.m.partners.fable: European consumer spending.
Their methods read nothing, so they never block. You can call them from any thread.
You reach it through a session and never construct it. Import it as
from deephaven_massive.namespaces import PartnersNamespace to annotate your own code.
Example
import deephaven_massive as dm
m = dm.MassiveSession()
ratings = m.partners.benzinga.ratings("AAPL").fetch()
Create the namespace and its four vendor namespaces, for the session it is on.
Users reach it as m.partners and never construct it.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
session
|
MassiveSession
|
The session the namespace belongs to. |
required |
Attributes¶
benzinga
property
¶
benzinga: PartnersBenzingaNamespace
Every Benzinga dataset: analysts, firms, ratings, insights, guidance, and news.
etf_global
property
¶
etf_global: PartnersEtfGlobalNamespace
Every ETF Global dataset: analytics, constituents, flows, profiles, taxonomies.
fable
property
¶
fable: PartnersFableNamespace
The Fable Data datasets: European consumer spending by merchant.
PartnersTmxNamespace ¶
PartnersTmxNamespace(session: MassiveSession)
The TMX dataset, reached as m.partners.tmx.
Its one method returns a query of corporate events from TMX's Wall Street Horizon calendar. The
calendar covers companies worldwide: earnings dates and calls, dividends, splits, conferences,
and shareholder meetings. The method reads nothing, so it never blocks. You can call it
from any thread.
You reach it through a session and never construct it. Import it as
from deephaven_massive.namespaces import PartnersTmxNamespace to annotate your own code.
Example
import deephaven_massive as dm
m = dm.MassiveSession()
events = m.partners.tmx.corporate_events(
["AAPL"], start="2026-07-01", end="2026-09-30"
).fetch()
Bind the namespace to the session it belongs to.
Users reach a namespace through its session, such as m.stocks, and never construct
one. The namespace keeps the session's core, which its dataset methods pass to the
shared factory, and not the session itself.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
session
|
MassiveSession
|
The session the namespace belongs to. |
required |
Methods:¶
corporate_events ¶
corporate_events(symbols: SymbolsLike | None = None, *, start: DateLike | None = None, end: DateLike | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
Corporate events from TMX: earnings dates, dividends, conferences, and more.
Each row holds an event's company: its ticker in Symbol, and its name, ISIN, and venue. It
also holds the event's type, name, status, scheduled Date, and announcement link. The
calendar is global, so tickers stay exactly as TMX writes them. A company without a ticker
has a null Symbol and keeps its Isin.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
Tickers as TMX writes them. Leave it out for every event; |
None
|
start
|
DateLike | None
|
The first event day. |
None
|
end
|
DateLike | None
|
The last event day. |
None
|
sort
|
str | None
|
Any field of the rows, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/partners.tmx.corporate_events.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
events = m.partners.tmx.corporate_events("AAPL", start="2026-07-01").fetch()
ReferenceNamespace ¶
ReferenceNamespace(session: MassiveSession)
The reference datasets across asset classes, reached as m.reference.
Each method returns a query of one dataset, and together they cover tickers and their details,
types, events, and related companies, news, the exchanges, the trade and quote condition codes,
the market status, and the market holidays. A method reads nothing, so it never blocks.
You can call it from any thread.
You reach it through a session and never construct it. Import it as
from deephaven_massive.namespaces import ReferenceNamespace to annotate your own code.
Example
import deephaven_massive as dm
m = dm.MassiveSession()
details = m.reference.ticker_details(["AAPL", "MSFT"]).fetch()
headlines = m.reference.news("AAPL", start="2026-11-01").poll(60)
Bind the namespace to the session it belongs to.
Users reach a namespace through its session, such as m.stocks, and never construct
one. The namespace keeps the session's core, which its dataset methods pass to the
shared factory, and not the session itself.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
session
|
MassiveSession
|
The session the namespace belongs to. |
required |
Methods:¶
tickers ¶
tickers(symbols: SymbolsLike | None = None, *, market: Market | None = None, ticker_type: TickerType | None = None, exchange: str | None = None, cusip: str | None = None, cik: str | None = None, as_of: DateLike | None = None, active: bool = True, search: str | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
Tickers of stocks, OTC securities, indices, forex, and crypto, with listing details.
Each row holds one ticker's name, market, type, primary exchange, and identifiers. Massive
lists no options or futures here. With symbols left out, the call lists every ticker that
matches the other arguments.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
Tickers to look up. Leave it out for every ticker; |
None
|
market
|
Market | None
|
The market to list, a |
None
|
ticker_type
|
TickerType | None
|
The type, a |
None
|
exchange
|
str | None
|
The primary exchange's MIC, such as |
None
|
cusip
|
str | None
|
The CUSIP to look up. |
None
|
cik
|
str | None
|
The SEC Central Index Key to look up. |
None
|
as_of
|
DateLike | None
|
The day the listing is as of. Leave it out for today. |
None
|
active
|
bool
|
True, the default, lists tickers traded on |
True
|
search
|
str | None
|
Text to match against the ticker and the company name. |
None
|
sort
|
str | None
|
Any of Massive's field names, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
Per ticker when tickers are named, else in total. |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters. |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/reference.tickers.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
etfs = m.reference.tickers(ticker_type=dm.TickerType.ETF, limit=100).fetch()
ticker_details ¶
ticker_details(symbols: SymbolsLike, *, as_of: DateLike | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
One ticker's company and listing details: address, branding, shares, and more.
Each row holds one ticker's company details. A ticker Massive doesn't know gets no row, and the library logs a WARNING.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Tickers of any asset class. |
required |
as_of
|
DateLike | None
|
The day the details are as of. Leave it out for the latest. |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/reference.ticker_details.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
details = m.reference.ticker_details(["AAPL", "MSFT"]).fetch()
ticker_types ¶
ticker_types(*, asset_class: AssetClass | None = None, locale: Locale | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
The ticker type codes Massive uses, such as CS for common stock, with their names.
Each row holds one type's code, its description, its asset class, and its locale. The codes
are the values of dm.TickerType, which tickers() filters by.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
asset_class
|
AssetClass | None
|
The asset class whose types to list. Leave it out for every class. Massive lists no futures types. |
None
|
locale
|
Locale | None
|
The locale whose types to list. Leave it out for both. |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/reference.ticker_types.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If |
Example
types = m.reference.ticker_types(asset_class=dm.AssetClass.STOCKS).fetch()
ticker_events ¶
ticker_events(symbols: SymbolsLike, *, types: Sequence[str] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
The timeline of a ticker's events, such as ticker changes, one row per event.
Each row holds the event's date and type. A symbol may also be a CUSIP or a Composite FIGI,
and Symbol holds the identifier you asked about.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Tickers of any asset class, CUSIPs, or Composite FIGIs. |
required |
types
|
Sequence[str] | None
|
The event types to include, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/reference.ticker_events.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
events = m.reference.ticker_events("META").fetch()
related_companies ¶
related_companies(symbols: SymbolsLike, *, on_error: ErrorPolicy | None = None) -> FetchQuery
The companies Massive relates to a ticker, from news and returns data, one row each.
Symbol is the related company, and Underlying is the ticker you asked about.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
The tickers to find related companies of. |
required |
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/reference.related_companies.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
peers = m.reference.related_companies("AAPL").fetch()
news ¶
news(symbols: SymbolsLike | None = None, *, start: DateLike | None = None, end: DateLike | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
News articles about tickers, with their publishers and sentiment insights.
Each row holds one article's headline, publisher, publication time, and Massive's sentiment
insights. An article lists every ticker it names in Tickers. It appears once under each of
your tickers it names, in Symbol. When you name tickers, sort, order, and limit
apply to each ticker's articles. The default order is newest first.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
The tickers whose articles to read. Leave it out for every article; |
None
|
start
|
DateLike | None
|
The earliest publication time. |
None
|
end
|
DateLike | None
|
The latest publication time. |
None
|
sort
|
str | None
|
Each ticker's sort field. |
None
|
order
|
Order | None
|
Each ticker's direction of |
None
|
limit
|
int | None
|
Articles per ticker, or in total without |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters. |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/reference.news.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
headlines = m.reference.news(["AAPL", "MSFT"], limit=50).poll(60)
exchanges ¶
exchanges(*, asset_class: AssetClass | None = None, locale: Locale | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
The exchanges, trade reporting facilities, and SIPs Massive knows, with their codes.
Each row holds one venue's id, name, type, MIC, and asset class. The ids are the exchange codes that trades and quotes carry.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
asset_class
|
AssetClass | None
|
The asset class whose exchanges to list. Leave it out for every class. Massive lists no index exchanges. |
None
|
locale
|
Locale | None
|
The locale whose exchanges to list. Leave it out for both. |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/reference.exchanges.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If |
Example
venues = m.reference.exchanges(asset_class=dm.AssetClass.STOCKS).fetch()
conditions ¶
conditions(*, asset_class: AssetClass | None = None, data_type: ConditionDataType | None = None, condition_id: int | None = None, sip: Sip | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
The trade and quote condition codes, with what each means and how it updates bars.
Each row holds one condition's id, name, and the SIP codes it maps to. It also says whether
a trade with the condition updates a bar's high and low, open and close, and volume. Massive
lists two different conditions under one stocks quote id, so a poll() table keeps every
distinct row.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
asset_class
|
AssetClass | None
|
The asset class whose conditions to list. Leave it out for every class. Massive lists no futures or index conditions. |
None
|
data_type
|
ConditionDataType | None
|
The kind of data the conditions apply to. Leave it out for every kind. |
None
|
condition_id
|
int | None
|
One condition's id. Leave it out for every condition. |
None
|
sip
|
Sip | None
|
The SIP whose condition codes to list. Leave it out for every SIP. |
None
|
sort
|
str | None
|
Any of Massive's field names, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters. |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/reference.conditions.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
codes = m.reference.conditions(asset_class=dm.AssetClass.STOCKS).fetch()
market_status ¶
market_status(*, on_error: ErrorPolicy | None = None) -> FetchQuery
Whether the markets are open now, by exchange, currency market, and index group.
The table has one row, with a column for each exchange, currency market, and index group. A
poll() table keeps the latest status in that row.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/reference.market_status.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
Example
status = m.reference.market_status().poll(60)
market_holidays ¶
market_holidays(*, on_error: ErrorPolicy | None = None) -> FetchQuery
The upcoming market holidays and early closes, one row per exchange and day.
Each row holds the holiday's name and the exchange's status that day, with its open and close times on an early close.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/reference.market_holidays.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
Example
holidays = m.reference.market_holidays().fetch()
StocksFilingsNamespace ¶
StocksFilingsNamespace(session: MassiveSession)
The SEC filing datasets, reached as m.stocks.filings.
Each method returns a query of one dataset, and together they cover the EDGAR filing index, 10-K
sections, 8-K text and disclosures, and risk factors. They also cover institutional holdings
from Form 13-F, insider ownership and transactions from Forms 3 and 4, and Massive's daily
insider summaries. The last two methods return the taxonomies that classify risk factors and
disclosures.
A poll() of a filings dataset adds only rows it hasn't seen, and it needs a start or a
limit. The two insider summaries and the two taxonomies replace their rows at each poll
instead. A method reads nothing, so it never blocks, and you can call it from any
thread.
You reach it through a session and never construct it. Import it as
from deephaven_massive.namespaces import StocksFilingsNamespace to annotate your own code.
Example
import deephaven_massive as dm
m = dm.MassiveSession()
reports = m.stocks.filings.index(form_type="8-K", start="2026-06-01").fetch()
Bind the namespace to the session it belongs to.
Users reach a namespace through its session, such as m.stocks, and never construct
one. The namespace keeps the session's core, which its dataset methods pass to the
shared factory, and not the session itself.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
session
|
MassiveSession
|
The session the namespace belongs to. |
required |
Methods:¶
index ¶
index(symbols: SymbolsLike | None = None, *, form_type: str | None = None, start: DateLike | None = None, end: DateLike | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
The index of SEC EDGAR filings by US-listed companies, one row per filing and filer.
Each row holds a filing's form type, filer CIK, issuer, ticker, filing date, and EDGAR URL.
A filing with several filers appears once under each filer's CIK, as in EDGAR's index. A
filing whose company has no ticker has a null Symbol.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
Stock tickers; leave it out for every filer. |
None
|
form_type
|
str | None
|
The SEC form type, such as |
None
|
start
|
DateLike | None
|
The first filing date. |
None
|
end
|
DateLike | None
|
The last filing date. |
None
|
sort
|
str | None
|
Any of Massive's field names, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/stocks.filings.index.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type, such as a form type that isn't a |
ValueError
|
If:
- |
Example
annual = m.stocks.filings.index("AAPL", form_type="10-K").fetch()
sections_10k ¶
sections_10k(symbols: SymbolsLike | None = None, *, start: DateLike | None = None, end: DateLike | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
The text of sections of 10-K annual reports, one row per filing and section.
Each row holds one section of a company's 10-K, such as the business description. It also
holds the company's ticker and CIK, the period end, and the filing date. A filing whose
company has no ticker has a null Symbol.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
Stock tickers; leave it out for every filer. |
None
|
start
|
DateLike | None
|
The first filing date. |
None
|
end
|
DateLike | None
|
The last filing date. |
None
|
sort
|
str | None
|
Any of Massive's field names, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/stocks.filings.sections_10k.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
business = m.stocks.filings.sections_10k(
"AAPL", filters={"section": "business"}
).fetch()
text_8k ¶
text_8k(symbols: SymbolsLike | None = None, *, start: DateLike | None = None, end: DateLike | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
The item text of 8-K current reports, one row per filing and filer.
Each row holds the text of the items a company reported on an 8-K or an amendment. It also
holds the company's ticker and CIK, the form type, and the filing date. A joint 8-K of
several co-registrants can appear once under each filer's CIK. A filing whose company has no
ticker has a null Symbol.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
Stock tickers; leave it out for every filer. |
None
|
start
|
DateLike | None
|
The first filing date. |
None
|
end
|
DateLike | None
|
The last filing date. |
None
|
sort
|
str | None
|
Any of Massive's field names, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/stocks.filings.text_8k.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
reports = m.stocks.filings.text_8k("TSLA", start="2026-01-01").fetch()
disclosures_8k ¶
disclosures_8k(symbols: SymbolsLike | None = None, *, start: DateLike | None = None, end: DateLike | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
Disclosures in 8-K current reports, classified by category, one row per disclosure.
Each row holds one disclosure of an 8-K: its primary, secondary, and tertiary categories,
the supporting text, and the filing's accession number and date. The categories come from
disclosure_taxonomy(). A filing that lists several of your tickers appears once for each,
named in Symbol.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
Tickers whose filings to return; leave it out for every filing. |
None
|
start
|
DateLike | None
|
The first filing date. |
None
|
end
|
DateLike | None
|
The last filing date. |
None
|
sort
|
str | None
|
Any of Massive's field names, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/stocks.filings.disclosures_8k.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
disclosures = m.stocks.filings.disclosures_8k(
["AAPL", "MSFT"], start="2026-01-01"
).fetch()
risk_factors ¶
risk_factors(symbols: SymbolsLike | None = None, *, start: DateLike | None = None, end: DateLike | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
Risk factors disclosed in company filings, classified by category, one row each.
Each row holds one risk factor a company disclosed: its primary, secondary, and tertiary
categories, the supporting text, and the filing date. The categories come from
risk_factor_taxonomy(). A filing whose company has no ticker has a null Symbol.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
Stock tickers; leave it out for every filer. |
None
|
start
|
DateLike | None
|
The first filing date. |
None
|
end
|
DateLike | None
|
The last filing date. |
None
|
sort
|
str | None
|
Any of Massive's field names, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/stocks.filings.risk_factors.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
risks = m.stocks.filings.risk_factors("AAPL").fetch()
institutional_holdings ¶
institutional_holdings(*, filer_cik: str | Sequence[str] | None = None, start: DateLike | None = None, end: DateLike | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
Holdings that institutional managers report on Form 13-F, one row per position.
Each row holds one security that an institutional investment manager held at a quarter's
end. It has the security's issuer, CUSIP, share count, market value, and voting authority.
FilerCik names the manager, and the row also holds the filing's accession number and date.
Rows name a CUSIP, not a ticker, so the dataset takes no symbols. Select managers with
filer_cik.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filer_cik
|
str | Sequence[str] | None
|
The manager's SEC CIK, as text with its leading zeros, such as
|
None
|
start
|
DateLike | None
|
The first filing date. |
None
|
end
|
DateLike | None
|
The last filing date. |
None
|
sort
|
str | None
|
Any of Massive's field names, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters. |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/stocks.filings.institutional_holdings.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type, such as an |
ValueError
|
If:
- a sequence of CIKs is empty;
- a bound isn't a date, or |
Example
berkshire = m.stocks.filings.institutional_holdings(filer_cik="0001067983").fetch()
initial_insider_ownership ¶
initial_insider_ownership(symbols: SymbolsLike | None = None, *, issuer_cik: str | Sequence[str] | None = None, owner_cik: str | Sequence[str] | None = None, start: DateLike | None = None, end: DateLike | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
Initial insider ownership statements (SEC Form 3), one row per reported holding.
Each row holds a security that an officer, director, or 10% owner held on becoming an
insider. It has the issuer and owner CIKs and names, the owner's role, the security, and the
shares owned. A filing that lists several of your tickers appears once for each, named in
Symbol.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
Tickers whose filings to return; leave it out for every filing. |
None
|
issuer_cik
|
str | Sequence[str] | None
|
The company's SEC CIK, as text with its leading zeros, or a sequence of them; leave it out for every company. |
None
|
owner_cik
|
str | Sequence[str] | None
|
The insider's SEC CIK, or a sequence of them; leave it out for every insider. |
None
|
start
|
DateLike | None
|
The first filing date. |
None
|
end
|
DateLike | None
|
The last filing date. |
None
|
sort
|
str | None
|
Any of Massive's field names, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters. |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/stocks.filings.initial_insider_ownership.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type, such as an |
ValueError
|
If:
- |
Example
insiders = m.stocks.filings.initial_insider_ownership(
"NVDA", start="2025-01-01"
).fetch()
insider_transactions ¶
insider_transactions(symbols: SymbolsLike | None = None, *, issuer_cik: str | Sequence[str] | None = None, owner_cik: str | Sequence[str] | None = None, start: DateLike | None = None, end: DateLike | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
Insider transactions (SEC Form 4), one row per reported transaction or holding.
Each row holds a purchase, sale, grant, or exercise that an officer, director, or 10% owner
reported, or a holding reported beside them. It has the transaction code, date, shares, and
price, the shares owned afterward, and the issuer and owner. A filing that lists several of
your tickers appears once for each, named in Symbol.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
Tickers whose filings to return; leave it out for every filing. |
None
|
issuer_cik
|
str | Sequence[str] | None
|
The company's SEC CIK, as text with its leading zeros, or a sequence of them; leave it out for every company. |
None
|
owner_cik
|
str | Sequence[str] | None
|
The insider's SEC CIK, or a sequence of them; leave it out for every insider. |
None
|
start
|
DateLike | None
|
The first filing date. |
None
|
end
|
DateLike | None
|
The last filing date. |
None
|
sort
|
str | None
|
Any of Massive's field names, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/stocks.filings.insider_transactions.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type, such as an |
ValueError
|
If:
- |
Example
trades = m.stocks.filings.insider_transactions("AAPL", start="2026-01-01").fetch()
insider_activity ¶
insider_activity(symbols: SymbolsLike | None = None, *, issuer_cik: str | Sequence[str] | None = None, start: DateLike | None = None, end: DateLike | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
Open-market insider purchases and sales, summed per company and transaction day.
Directors, officers, and holders of over 10% are insiders, and they report each trade on SEC
Form 4 or 5. Massive sums one company's insider buys and sells of one day into one row. The
row holds counts, shares, and dollar values, and the part traded under a prearranged Rule
10b5-1 plan. NetShares and NetValue hold the net, which is negative for net selling. The
totals cover the company, not each share class. A row that lists several of your tickers
appears once for each, named in Symbol. A poll() revises a day in place when a late
filing changes it. insider_transactions() returns the Form 4 lines themselves.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
Tickers whose companies to return; leave it out for every company. |
None
|
issuer_cik
|
str | Sequence[str] | None
|
The company's SEC CIK, as text with its leading zeros, or a sequence of them; leave it out for every company. |
None
|
start
|
DateLike | None
|
The first transaction date. |
None
|
end
|
DateLike | None
|
The last transaction date. |
None
|
sort
|
str | None
|
Any of Massive's field names, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Takes no key today, since the arguments above cover every endpoint parameter.
Any key raises |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/stocks.filings.insider_activity.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type, such as an |
ValueError
|
If:
- |
Example
activity = m.stocks.filings.insider_activity("NVDA", start="2026-01-01").fetch()
insider_holdings ¶
insider_holdings(symbols: SymbolsLike | None = None, *, issuer_cik: str | Sequence[str] | None = None, owner_cik: str | Sequence[str] | None = None, start: DateLike | None = None, end: DateLike | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
Each company's insiders and the shares each one holds now, one row per insider.
Massive combines one insider's Form 3, 4, and 5 filings for one company into one current
row. The row holds the owner, roles, and title, and the first and latest filing dates. It
also holds the shares owned directly, indirectly, and in total, as filed, without split
adjustment or derivatives. OwnershipPct is in percent, so 0.0198 means 0.0198%. An
OldestPositionDate far behind LastFilingDate warns that a position may be stale. A row
that lists several of your tickers appears once for each, named in Symbol. A poll()
updates an insider's row in place when a new filing arrives.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
Tickers whose companies' insiders to return; leave it out for every company.
|
None
|
issuer_cik
|
str | Sequence[str] | None
|
The company's SEC CIK, as text with its leading zeros, or a sequence of them; leave it out for every company. |
None
|
owner_cik
|
str | Sequence[str] | None
|
The insider's SEC CIK, or a sequence of them; leave it out for every insider. One insider's CIK lists every company where that person is an insider. |
None
|
start
|
DateLike | None
|
The first |
None
|
end
|
DateLike | None
|
The last |
None
|
sort
|
str | None
|
Any of Massive's field names, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Takes no key today, since the arguments above cover every endpoint parameter.
Any key raises |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/stocks.filings.insider_holdings.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type, such as an |
ValueError
|
If:
- |
Example
insiders = m.stocks.filings.insider_holdings("NVDA").fetch()
one_person = m.stocks.filings.insider_holdings(owner_cik="0001588670").fetch()
risk_factor_taxonomy ¶
risk_factor_taxonomy(*, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
The taxonomy that classifies filing risk factors, one row per category.
Each row holds one tertiary category of the risk-factor classification. It also holds the
category's primary and secondary parents, its description, and the taxonomy version.
risk_factors() takes its categories from this taxonomy. The dataset takes no symbols.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sort
|
str | None
|
Any of Massive's field names, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/stocks.filings.risk_factor_taxonomy.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
categories = m.stocks.filings.risk_factor_taxonomy().fetch()
disclosure_taxonomy ¶
disclosure_taxonomy(*, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
The taxonomy that classifies 8-K disclosures, one row per category.
Each row holds one tertiary category of the 8-K disclosure classification. It also holds the
category's primary and secondary parents, its description, and the taxonomy version.
disclosures_8k() takes its categories from this taxonomy. The dataset takes no symbols.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sort
|
str | None
|
Any of Massive's field names, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/stocks.filings.disclosure_taxonomy.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
categories = m.stocks.filings.disclosure_taxonomy().fetch()
StocksFinancialsNamespace ¶
StocksFinancialsNamespace(session: MassiveSession)
The financial statement datasets, reached as m.stocks.financials.
Each method returns a query of one dataset, and together they cover the balance sheets, income
statements, and cash flow statements that companies file with the SEC, and Massive's valuation
ratios. A method reads nothing, so it never blocks, and you can call it from any
thread.
You reach it through a session and never construct it. Import it as
from deephaven_massive.namespaces import StocksFinancialsNamespace to annotate your own code.
Example
import deephaven_massive as dm
m = dm.MassiveSession()
annual = m.stocks.financials.balance_sheets("AAPL", timeframe=dm.Timeframe.ANNUAL)
sheets = annual.fetch()
Bind the namespace to the session it belongs to.
Users reach a namespace through its session, such as m.stocks, and never construct
one. The namespace keeps the session's core, which its dataset methods pass to the
shared factory, and not the session itself.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
session
|
MassiveSession
|
The session the namespace belongs to. |
required |
Methods:¶
balance_sheets ¶
balance_sheets(symbols: SymbolsLike | None = None, *, timeframe: Timeframe | None = None, start: DateLike | None = None, end: DateLike | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
Balance sheets of US public companies, one row per filer and reporting period.
Each row holds a company's assets, liabilities, and equity at the end of a quarter or fiscal
year, as filed with the SEC. A filing that lists several of your tickers appears once for
each, named in Symbol.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
Tickers whose filings to return; leave it out for every filing. |
None
|
timeframe
|
Timeframe | None
|
|
None
|
start
|
DateLike | None
|
The first period end date. |
None
|
end
|
DateLike | None
|
The last period end date. |
None
|
sort
|
str | None
|
Any of Massive's field names, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/stocks.financials.balance_sheets.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type, such as a |
ValueError
|
If:
- |
Example
annual = m.stocks.financials.balance_sheets(
"AAPL", timeframe=dm.Timeframe.ANNUAL
).fetch()
income_statements ¶
income_statements(symbols: SymbolsLike | None = None, *, timeframe: Timeframe | None = None, start: DateLike | None = None, end: DateLike | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
Income statements of US public companies, one row per filer and reporting period.
Each row holds a company's revenue, expenses, earnings, and per-share figures, as filed with
the SEC. The period is a quarter, a fiscal year, or the trailing twelve months. A filing
that lists several of your tickers appears once for each, named in Symbol.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
Tickers whose filings to return; leave it out for every filing. |
None
|
timeframe
|
Timeframe | None
|
|
None
|
start
|
DateLike | None
|
The first period end date. |
None
|
end
|
DateLike | None
|
The last period end date. |
None
|
sort
|
str | None
|
Any of Massive's field names, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/stocks.financials.income_statements.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type, such as a |
ValueError
|
If:
- |
Example
annual = m.stocks.financials.income_statements(
"NVDA", timeframe=dm.Timeframe.ANNUAL
).fetch()
cash_flow_statements ¶
cash_flow_statements(symbols: SymbolsLike | None = None, *, timeframe: Timeframe | None = None, start: DateLike | None = None, end: DateLike | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
Cash flow statements of US public companies, one row per filer and reporting period.
Each row holds a company's operating, investing, and financing cash flows, as filed with the
SEC. The period is a quarter, a fiscal year, or the trailing twelve months. A filing that
lists several of your tickers appears once for each, named in Symbol.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
Tickers whose filings to return; leave it out for every filing. |
None
|
timeframe
|
Timeframe | None
|
|
None
|
start
|
DateLike | None
|
The first period end date. |
None
|
end
|
DateLike | None
|
The last period end date. |
None
|
sort
|
str | None
|
Any of Massive's field names, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/stocks.financials.cash_flow_statements.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type, such as a |
ValueError
|
If:
- |
Example
flows = m.stocks.financials.cash_flow_statements("AAPL", start="2024-01-01").fetch()
ratios ¶
ratios(symbols: SymbolsLike | None = None, *, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
Daily valuation, profitability, liquidity, and leverage ratios of US stocks.
Each row holds one ticker's ratios as of its Date, such as price to earnings, return on
equity, and debt to equity. Massive computes them for the most recent trading day only, so
the dataset has no start or end.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
Stock tickers; leave it out for every ticker. |
None
|
sort
|
str | None
|
Any of Massive's field names, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/stocks.financials.ratios.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
cheap = m.stocks.financials.ratios(filters={"price_to_earnings_lt": 10}).fetch()
StocksNamespace ¶
StocksNamespace(session: MassiveSession)
The US stock datasets, reached as m.stocks.
Each method returns a query of one dataset, and together they cover trades, quotes, bars, each
stock's last trade and quote, previous day's bar, and daily open and close, limit up-limit
down bands, imbalances, fair market value, snapshots, movers, dividends, splits, IPOs, short
interest, short volume, and free float. m.stocks.financials holds the financial
statements, and m.stocks.filings the SEC filings. A method reads nothing, so it never
blocks, and you can call it from any thread.
You reach it through a session and never construct it. Import it as
from deephaven_massive.namespaces import StocksNamespace to annotate your own code.
Example
import deephaven_massive as dm
m = dm.MassiveSession()
live = m.stocks.trades(["AAPL", "MSFT"]).last_by()
daily = m.stocks.bars("AAPL", dm.Timespan.DAY).history("2026-01-02", "2026-06-30")
Create the namespace and its two nested namespaces, for the session m.stocks is on.
Users reach it as m.stocks and never construct it.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
session
|
MassiveSession
|
The session the namespace belongs to. |
required |
Attributes¶
financials
property
¶
financials: StocksFinancialsNamespace
The financial statements and valuation ratios, reached as m.stocks.financials.
filings
property
¶
filings: StocksFilingsNamespace
The SEC filings and the insider data built from them, reached as m.stocks.filings.
Methods:¶
trades ¶
trades(symbols: SymbolsLike, *, on_error: ErrorPolicy | None = None) -> StreamHistoryQuery
Trades of US-listed stocks, tick by tick.
Each row holds one trade reported to the SIP. Timestamp is the SIP's time. Streams and
flat-file history take dm.ALL. REST history needs named tickers. For only each symbol's
latest trade, use last_trade().
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Stock tickers, or |
required |
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
StreamHistoryQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/stocks.trades.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
recent = m.stocks.trades(["AAPL", "MSFT"]).ring(10_000)
friday = m.stocks.trades("AAPL").history("2026-10-30", "2026-10-30")
last_trade ¶
last_trade(symbols: SymbolsLike, *, on_error: ErrorPolicy | None = None) -> FetchQuery
The latest trade of each US-listed stock.
Each row holds one symbol's most recent trade. A symbol with no trade is left out, and the
library logs a WARNING. Each poll sees only the trade that is latest at that moment. For
every trade, stream trades().
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Stock tickers. |
required |
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/stocks.last_trade.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
last = m.stocks.last_trade(["AAPL", "MSFT"]).fetch()
quotes ¶
quotes(symbols: SymbolsLike, *, on_error: ErrorPolicy | None = None) -> StreamHistoryQuery
National best bid and offer quotes of US-listed stocks, tick by tick.
Each row holds one NBBO update. Timestamp is the SIP's time. Streams and flat-file history
take dm.ALL. REST history needs named tickers. For only each symbol's latest NBBO, use
last_quote().
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Stock tickers, or |
required |
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
StreamHistoryQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/stocks.quotes.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
top = m.stocks.quotes(["AAPL", "SPY"]).last_by()
last_quote ¶
last_quote(symbols: SymbolsLike, *, on_error: ErrorPolicy | None = None) -> FetchQuery
The latest national best bid and offer of each US-listed stock.
Each row holds one symbol's most recent NBBO. A symbol with no quote is left out, and the
library logs a WARNING. Each poll sees only the quote that is latest at that moment. For
every quote, stream quotes().
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Stock tickers. |
required |
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/stocks.last_quote.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
spreads = m.stocks.last_quote(["AAPL", "SPY"]).poll(5)
bars ¶
bars(symbols: SymbolsLike, timespan: Timespan, *, multiplier: int = 1, adjusted: bool = True, on_error: ErrorPolicy | None = None) -> StreamHistoryQuery | HistoryQuery
Aggregate bars (open, high, low, close, volume) of US-listed stocks.
Each row is one bar of multiplier times timespan. The dataset's page, linked below, says
how each bar's window and Date are set.
- History is split-adjusted unless you pass
adjusted=False. Streams and flat files serve bars as traded. - With
dm.ALL,history()reads one-day bars. It also reads one-minute bars from flat files whenadjusted=False.history()of any other bar ofdm.ALLraisesValueError. - For only the previous day's bar, use
previous_day_bar().
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Stock tickers, or |
required |
timespan
|
Timespan
|
The bar's unit. Massive refuses |
required |
multiplier
|
int
|
Units per bar. |
1
|
adjusted
|
bool
|
Adjusts volume as well as prices. |
True
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
StreamHistoryQuery | HistoryQuery
|
A |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If |
Example
from deephaven_massive.queries import StreamHistoryQuery
week = m.stocks.bars("AAPL", dm.Timespan.DAY).history("2026-10-26", "2026-10-30")
minute = m.stocks.bars(["AAPL", "MSFT"], dm.Timespan.MINUTE)
assert isinstance(minute, StreamHistoryQuery) # 1-minute bars stream
live = minute.append_only()
previous_day_bar ¶
previous_day_bar(symbols: SymbolsLike, *, adjusted: bool = True, on_error: ErrorPolicy | None = None) -> FetchQuery
The previous trading day's bar (open, high, low, close, volume) of US stocks.
Each row holds one symbol's bar of the previous completed session. A symbol with no bar is left out, and the library logs a WARNING. The dataset's page says how the bar is stamped.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Stock tickers. |
required |
adjusted
|
bool
|
Adjusts volume as well as prices. |
True
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/stocks.previous_day_bar.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
previous = m.stocks.previous_day_bar(["AAPL", "MSFT"]).fetch()
luld ¶
luld(symbols: SymbolsLike, *, on_error: ErrorPolicy | None = None) -> StreamQuery
Limit up-limit down price bands of US-listed stocks, as they change.
Each row holds one band update from the SIP, with its upper and lower price limits. The bands only stream, so there's no history.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Stock tickers, or |
required |
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
StreamQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/stocks.luld.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
bands = m.stocks.luld(dm.ALL).last_by()
imbalances ¶
imbalances(symbols: SymbolsLike, *, on_error: ErrorPolicy | None = None) -> StreamQuery
Net order imbalances of US-listed stocks ahead of opening and closing auctions.
Each row holds one imbalance message, with the auction's type and time and the imbalance quantity. Imbalances only stream, so there's no history.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Stock tickers, or |
required |
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
StreamQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/stocks.imbalances.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
closing = m.stocks.imbalances(["AAPL", "MSFT"]).append_only()
fmv ¶
fmv(symbols: SymbolsLike, *, on_error: ErrorPolicy | None = None) -> StreamQuery
Massive's fair market value estimate of US-listed stocks, as it updates.
Each row holds one fair market value and the time Massive computed it. It streams only, with no history.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Stock tickers, or |
required |
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
StreamQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/stocks.fmv.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
fair = m.stocks.fmv(["AAPL"]).last_by()
snapshots ¶
snapshots(symbols: SymbolsLike, *, include_otc: bool = False, on_error: ErrorPolicy | None = None) -> FetchQuery
Current market snapshots of US-listed stocks, one row per ticker.
Each row holds a ticker's state now: the day's bar, the previous day's bar, the latest minute bar, the last trade and quote, and the day's change.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Stock tickers, or |
required |
include_otc
|
bool
|
True to include OTC securities. |
False
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/stocks.snapshots.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
latest = m.stocks.snapshots(["AAPL", "MSFT", "NVDA"]).poll(5)
movers ¶
movers(direction: Direction, *, include_otc: bool = False, on_error: ErrorPolicy | None = None) -> FetchQuery
The twenty US stocks with the largest percentage move today, up or down.
Each row holds one mover's full snapshot, as snapshots() returns it. In a poll() table,
a ticker that leaves the list leaves the table.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
direction
|
Direction
|
|
required |
include_otc
|
bool
|
True to include OTC securities. |
False
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/stocks.movers.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
Example
gainers = m.stocks.movers(dm.Direction.GAINERS).poll(60)
daily_open_close ¶
daily_open_close(symbols: SymbolsLike, date: DateLike, *, adjusted: bool = True, on_error: ErrorPolicy | None = None) -> FetchQuery
The open, close, and pre- and after-market prices of US stocks on one day.
Each row holds one ticker's session on date. A symbol with no session that day, such as on
a holiday, is left out, and the library logs a WARNING.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike
|
Stock tickers. |
required |
date
|
DateLike
|
The trading day, as a date. |
required |
adjusted
|
bool
|
Adjusts volume as well as prices. Massive doesn't report the basis of these prices, so the library can't check it. |
True
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/stocks.daily_open_close.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ValueError
|
If:
- |
Example
friday = m.stocks.daily_open_close(["AAPL", "MSFT"], "2026-10-30").fetch()
dividends ¶
dividends(symbols: SymbolsLike | None = None, *, start: DateLike | None = None, end: DateLike | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
Cash dividends of US-listed stocks, one row per distribution.
Each row holds a dividend's ex-dividend, record, pay, and declaration dates, its cash amount as declared and split-adjusted, its currency, its frequency, and its distribution type.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
Stock tickers; leave it out for every ticker. |
None
|
start
|
DateLike | None
|
The first ex-dividend date. |
None
|
end
|
DateLike | None
|
The last ex-dividend date. |
None
|
sort
|
str | None
|
Any of Massive's field names, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. With a watchlist, |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/stocks.dividends.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
dividends = m.stocks.dividends(["AAPL", "MSFT"], start="2024-01-01").fetch()
splits ¶
splits(symbols: SymbolsLike | None = None, *, start: DateLike | None = None, end: DateLike | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
Stock splits, reverse splits, and stock dividends of US-listed stocks.
Each row holds one split's ExecutionDate, its ratio of SplitFrom to SplitTo, its
adjustment type, and its HistoricalAdjustmentFactor. To adjust a price from day D,
multiply it by the factor of the first split executed after D. Bars' history() already
returns split-adjusted prices unless you pass adjusted=False.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
Stock tickers; leave it out for every ticker. |
None
|
start
|
DateLike | None
|
The first execution date. |
None
|
end
|
DateLike | None
|
The last execution date. |
None
|
sort
|
str | None
|
Any of Massive's field names, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/stocks.splits.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
nvidia = m.stocks.splits("NVDA", start="2024-01-01").fetch()
ipos ¶
ipos(symbols: SymbolsLike | None = None, *, start: DateLike | None = None, end: DateLike | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
Initial public offerings on US exchanges, upcoming and past, one row per offering.
Each row holds an offering's issuer, ticker, dates, status, price range, final price, and
shares offered. A poll() table updates each offering in place as its status changes. If
Massive renames an issuer during an offering, the old row stays beside the new one.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
Stock tickers; leave it out for every offering. |
None
|
start
|
DateLike | None
|
The first listing date. |
None
|
end
|
DateLike | None
|
The last listing date. |
None
|
sort
|
str | None
|
Any of Massive's field names, such as |
None
|
order
|
Order | None
|
The direction of the rows. Here it works without |
None
|
limit
|
int | None
|
The most rows: in total for |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/stocks.ipos.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
upcoming = m.stocks.ipos(filters={"ipo_status": "pending"}).fetch()
short_interest ¶
short_interest(symbols: SymbolsLike | None = None, *, start: DateLike | None = None, end: DateLike | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
Short interest of US-listed stocks, one row per ticker and FINRA settlement date.
Each row holds the shares sold short and not yet covered on a settlement date, the average daily volume, and the days to cover. Short interest is reported to FINRA twice a month.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
Stock tickers; leave it out for every ticker. |
None
|
start
|
DateLike | None
|
The first settlement date. |
None
|
end
|
DateLike | None
|
The last settlement date. |
None
|
sort
|
str | None
|
Any of Massive's field names, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/stocks.short_interest.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
gamestop = m.stocks.short_interest("GME", start="2025-01-01").fetch()
short_volume ¶
short_volume(symbols: SymbolsLike | None = None, *, start: DateLike | None = None, end: DateLike | None = None, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
Daily short sale volume of US-listed stocks, one row per ticker and trading day.
Each row holds a day's short volume, the total volume, the short volume ratio, and the breakdown by venue that FINRA publishes.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
Stock tickers; leave it out for every ticker. |
None
|
start
|
DateLike | None
|
The first trading day. |
None
|
end
|
DateLike | None
|
The last trading day. |
None
|
sort
|
str | None
|
Any of Massive's field names, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/stocks.short_volume.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
shorts = m.stocks.short_volume(["AAPL", "TSLA"], start="2026-10-01").fetch()
share_float ¶
share_float(symbols: SymbolsLike | None = None, *, sort: str | None = None, order: Order | None = None, limit: int | None = None, filters: Mapping[str, FilterValue] | None = None, on_error: ErrorPolicy | None = None) -> FetchQuery
The free float of US-listed stocks: the latest count of shares the public can trade.
Each row holds one ticker's most recent free float, its percentage of shares outstanding,
and the date it took effect. Massive offers no date filter here, so there's no start or
end.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbols
|
SymbolsLike | None
|
Stock tickers; leave it out for every ticker. |
None
|
sort
|
str | None
|
Any of Massive's field names, such as |
None
|
order
|
Order | None
|
The direction of |
None
|
limit
|
int | None
|
The most rows to return, in total. A watchlist's |
None
|
filters
|
Mapping[str, FilterValue] | None
|
Further endpoint parameters, such as |
None
|
on_error
|
ErrorPolicy | None
|
What a bad symbol or row does in this call ( |
None
|
Returns:
| Type | Description |
|---|---|
FetchQuery
|
A query. Its columns, plans, and methods: https://github.com/deephaven-examples/deephaven-massive/blob/main/docs/datasets/stocks.share_float.md. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument has the wrong type. |
ValueError
|
If:
- |
Example
floats = m.stocks.share_float(["AAPL", "MSFT"]).fetch()