quantdata.massive.tickers.data#
quantdata.massive.tickers.data#
Build underlying tick-level data from Massive: unadjusted trades, weighted mid-price tape, and 1-second trade bars.
- quantdata.massive.tickers.data.build_unadjusted_trades(underlying, d, *, client=None)[source]#
Unadjusted trades for
underlyingond, filtered to RTH session[open, close].- Returns:
Columns: ts_ns (Datetime[ns, NY]), price (Float32), size (Float32), trade_code (UInt32)
- Return type:
pl.DataFrame
- quantdata.massive.tickers.data.build_unadjusted_spot_wmid(underlying, d, *, trades=None, client=None)[source]#
Weighted mid-price tape for
underlyingond, suitable for asof-joins.The tape is initialised at session open and close with the unadjusted open/close from
/v1/open-closeso a spot price is always available. Quote wmid and trade prices are interleaved; trades win on identical timestamps.- Returns:
Columns: u_ts_ns (Datetime[ns, NY]), spot (Float32), is_trade (Boolean)
- Return type:
pl.DataFrame
- quantdata.massive.tickers.data.build_1s_trade_bars(underlying, d, *, trades=None, client=None)[source]#
Per-second OHLCV trade bars for
underlyingond.Bin semantics:
all bins except last:
[t, t+1s)last bin:
[close_dt-1s, close_dt](inclusive close)
- Returns:
Columns: dt_ns, second_bin_ix, bin_type, open, close, high, low, last_trade, num_trades, vwap, log_cash_volume, log_volume, date, underlying, is_half_day
- Return type:
pl.DataFrame