quantdata.volume_curves.curve_bins#

Aggregate minute bars into time buckets and merge with calendar data.

Change requested: - Remove the need for prev_dt in this file. - fetch_minute_bars() now returns dt minutes PLUS (optionally) a single extra row

with minute_idx = -1 representing the previous day’s last regular-session minute.

  • We use that -1 row ONLY to seed the first return for dt.

  • Everything else remains based on dt only.

quantdata.volume_curves.curve_bins.curve_def(start, end, bucket_minutes)[source]#

The only point of this function is to generate the ‘curve_def’ file.

quantdata.volume_curves.curve_bins.ticker_curve_bins(ticker, start, end, bucket_minutes=15, client=None, num_workers=-2, threading=False, verbose=<cdxcore.verbose.Context object>)[source]#

Generates bucketed features for each day in (start..end] (i.e. uses previous day for seeding returns).

Note: The first trading day in the range cannot include an overnight seed unless you fetched the prior day. We therefore start from the second trading day (len(trading_days)-1 rows), consistent with your previous logic.