You can configure LUSID to compound interest for instruments that can have a floating leg:
InterestRateSwap
(alsoInterestRateSwaption
)ComplexBond with a
FloatSchedule
CapFloor
EquitySwap
FundingLeg
You should do this if there are multiple reset rates in a payment period, for example an interest rate swap that references an overnight index such as SOFR Index but pays quarterly. If you do not, LUSID expects one reset rate per payment period.
To compound interest, specify the Compounding
object in the economic definition of an instrument, and choose one of the following CompoundingMethod
fields:
Averaging
Calculates an arithmetic average of the reset rates in the payment period.
Additionally set the
AveragingMethod
field toWeighted
to calculate an average weighted by the number of days the rate is applicable for, or elseUnweighted
.Do not set the
SpreadCompoundingMethod
field.
Compounding
Calculates a compound rate from the reset rates in the payment period.
Additionally set the
SpreadCompoundingMethod
field to:Straight
to include the spread in the rate used in each compound period. That is, in each compound period, the rate used to calculate current period interest, and for compounding prior period interest, is the sum of the reset rate and the spread. Defined as 'Compounding' in the 2006 ISDA Definitions.Flat
to not include the spread in the compounding rate, but instead use the spread for simple interest in each compound period. That is, in each compound period, interest is accrued at a rate which is the sum of the reset rate and the spread, and interest accrued from prior periods is compounded at the reset rate (without the spread). Defined as 'Flat Compounding' in the 2006 ISDA Definitions.SpreadExclusive
to not include the spread in the compounding period, but instead use the spread for simple interest for the whole accrual period. That is, in each compound period, the rate used to calculate current period interest, and for compounding prior period interest, is the reset rate. The spread is then applied for the entire accrual period without compounding.
Do not set the
AveragingMethod
field.
CompoundedIndex
Calculates a compound rate from a pre-computed compound index such as SOFR Index.
Additionally set the
SpreadCompoundingMethod
field toSpreadExclusive
.Do not set the
AveragingMethod
field.