Record Class PortfolioExecutor.Config
java.lang.Object
java.lang.Record
com.quantfinlib.execution.PortfolioExecutor.Config
- Record Components:
maxNetNotional- leg-balance band: |filled buys − filled sells| (projected through this interval) stays within this; +∞ disablesmaxIntervalNotional- total basket demand per interval; +∞ disables
- Enclosing class:
PortfolioExecutor
public static record PortfolioExecutor.Config(double maxNetNotional, double maxIntervalNotional)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionConfig(double maxNetNotional, double maxIntervalNotional) Creates an instance of aConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of themaxIntervalNotionalrecord component.doubleReturns the value of themaxNetNotionalrecord component.final StringtoString()Returns a string representation of this record class.static PortfolioExecutor.ConfigNo portfolio constraints: children pass through untouched.
-
Constructor Details
-
Config
public Config(double maxNetNotional, double maxIntervalNotional) Creates an instance of aConfigrecord class.- Parameters:
maxNetNotional- the value for themaxNetNotionalrecord componentmaxIntervalNotional- the value for themaxIntervalNotionalrecord component
-
-
Method Details
-
unconstrained
No portfolio constraints: children pass through untouched. -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
maxNetNotional
public double maxNetNotional()Returns the value of themaxNetNotionalrecord component.- Returns:
- the value of the
maxNetNotionalrecord component
-
maxIntervalNotional
public double maxIntervalNotional()Returns the value of themaxIntervalNotionalrecord component.- Returns:
- the value of the
maxIntervalNotionalrecord component
-