m.stocks.imbalances¶
Net order imbalances of US-listed stocks ahead of opening and closing auctions.
Call it from a session m, made with dm.MassiveSession():
m.stocks.imbalances(symbols, *, on_error=None)
- Methods:
blink(),append_only(),ring(capacity),last_by(by='Symbol') - Read from: WebSocket
Arguments¶
A linked argument follows its rule under shared arguments on the dataset index.
| Argument | Description |
|---|---|
symbols |
Stock tickers, or dm.ALL for every ticker. |
on_error |
What a bad symbol or row does in this call (dm.ErrorPolicy). None, the default, takes each cause from the session's MassiveConfig.on_error. |
Plans¶
How recent the data is on each of Massive's plans, and how far back its history goes, as Massive's pages state them.
| Plan | Net Order Imbalance (NOI) (WebSocket) |
|---|---|
| Stocks Basic | Not included |
| Stocks Starter | Not included |
| Stocks Developer | Not included |
| Stocks Advanced | Not included |
| Imbalances Expansion | Real-time |
| Stocks Business | Not included |
| Imbalances Expansion Business | Real-time |
Columns¶
| Column | Type | Description |
|---|---|---|
Symbol |
String | The row's instrument, as Massive's ticker. From WebSocket T: "The ticker symbol for the given stock." |
Date |
String | The trading day of the row, as ISO yyyy-MM-dd text: the New York date of Timestamp. |
Timestamp |
Instant | The row's event time. From WebSocket t: "The Timestamp in Unix Ns." |
AuctionTime |
long | The time that the auction is planned to take place in the format (hour x 100) + minutes in Eastern Standard Time, for example 930 would be 9:30 am EST, and 1600 would be 4:00 pm EST. |
AuctionType |
String | The auction type. O - Early Opening Auction (non-NYSE only) M - Core Opening Auction H - Reopening Auction (Halt Resume) C - Closing Auction P - Extreme Closing Imbalance (NYSE only) R - Regulatory Closing Imbalance (NYSE only) |
SymbolSequence |
long | The symbol sequence. |
Exchange |
long | The exchange ID. See Exchanges (https://massive.com/docs/rest/stocks/market-operations/exchanges) for Massive's mapping of exchange IDs. |
ImbalanceQuantity |
long | The imbalance quantity. |
PairedQuantity |
long | The paired quantity. |
BookClearingPrice |
double | The book clearing price. |
TimestampInsert |
Instant | When the library received the row, by the local clock. Rows that arrive together share it. It isn't Massive's time, and later rows can carry earlier times. |
Massive fields
The Massive field behind each column, by source. An empty cell means the source doesn't carry the column, or the library computes it.
| Column | WebSocket field |
|---|---|
Symbol |
T |
Date |
|
Timestamp |
t |
AuctionTime |
at |
AuctionType |
a |
SymbolSequence |
i |
Exchange |
x |
ImbalanceQuantity |
o |
PairedQuantity |
p |
BookClearingPrice |
b |
TimestampInsert |
Massive's documentation¶
The plan tables and most column descriptions are Massive's, from its documentation as fetched on 2026-12-01, with a few corrected where Massive's are wrong. The library writes its own descriptions of the columns it names or computes, such as Symbol and TimestampInsert.