Record Class DeltaHedger.Config
java.lang.Object
java.lang.Record
com.quantfinlib.hedging.DeltaHedger.Config
- Record Components:
deltaBand- rebalance only when |target - held| delta exceeds this (0 = every step)transactionCostBps- cost per rebalance trade, in bps of traded notional
- Enclosing class:
DeltaHedger
-
Constructor Summary
ConstructorsConstructorDescriptionConfig(double deltaBand, double transactionCostBps) Creates an instance of aConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thedeltaBandrecord component.final booleanIndicates whether some other object is "equal to" this one.static DeltaHedger.Configevery(double transactionCostBps) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.doubleReturns the value of thetransactionCostBpsrecord component.
-
Constructor Details
-
Config
public Config(double deltaBand, double transactionCostBps) Creates an instance of aConfigrecord class.- Parameters:
deltaBand- the value for thedeltaBandrecord componenttransactionCostBps- the value for thetransactionCostBpsrecord component
-
-
Method Details
-
every
-
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. -
deltaBand
-
transactionCostBps
public double transactionCostBps()Returns the value of thetransactionCostBpsrecord component.- Returns:
- the value of the
transactionCostBpsrecord component
-