Class VwapScheduler

java.lang.Object
com.quantfinlib.execution.VwapScheduler

public final class VwapScheduler extends Object
VWAP schedule design: allocates child slices proportionally to an expected intraday volume profile (e.g. from com.quantfinlib.ml.IntradayLiquidityForecaster), so participation tracks the market's own volume curve.
  • Method Details

    • schedule

      public static List<Slice> schedule(long totalQty, double[] volumeProfile, long durationMillis)
      Parameters:
      totalQty - parent order quantity
      volumeProfile - expected volume per bucket (any positive scale)
      durationMillis - total execution window; slice i starts at i * duration / buckets
    • allocateProportionally

      public static long[] allocateProportionally(long total, double[] weights)
      Largest-remainder proportional allocation: integer quantities that sum exactly to total, proportional to weights.