Swap Legs (all swap types)

Last updated 9 November 2026

Function reference › Interest Rate Derivatives › Additional Functions

3 GIAnalyzer functions for Excel. Optional arguments are shown in [brackets].

GIA_IRD_Swaps_LastResetDate

Returns the last reset date of the reference interest rate in the floating leg of the swap.

GIA_IRD_Swaps_LastResetDate(EDate, EfDate, CFr, DR, VDate)

Returns: Last reset date of the reference interest rate in the floating leg of the swap

ArgumentUseDescription
EDateRequiredThe expiry date.
EfDateRequiredThe effective date.
CFrRequiredThe frequency of coupons (Annual, SemiAnnual, Quarterly, Monthly)
DRRequiredThe date rolling method. Non-business days are Saturdays and Sundays; holidays are not supported (Following, ModifiedFollowing, Previous, ModifiedPrevious, NoAdjustment)
VDateRequiredThe value date.

See also: GIA_IRD_Swaps_RiskOfLeg, GIA_IRD_Swaps_ValueOfLeg

GIA_IRD_Swaps_RiskOfLeg

Returns the risk measures (DV01, Macaulay Duration, Modified Duration) of the individual leg in all types of interest swaps supported in the GIAnalyzer, except OIS and TRS.

GIA_IRD_Swaps_RiskOfLeg(SwapType, LegType, EDate, NE0, NE1, FPPD, FrPP, PPP, DR, Notional, RateFix, Sp, LR, EfDate, CFr, DaysCF, DCurveDates, DCurveRates, FCurveDates, FCurveRates, VDate, SDate, Comp, Days, Interp, RM)

Returns: Risk measures (DV01, Macaulay Duration, Modified Duration) of the individual leg in all types of interest swaps supported in the GIAnalyzer, except OIS and TRS

ArgumentUseDescription
SwapTypeRequiredThe type of a swap. See the documentation for full description.
LegTypeRequiredThe type of a swap leg (Pay, Receive).
EDateRequiredThe expiry date.
NE0RequiredWhether the notional amount is being exchanged at the start. (Yes, No)
NE1RequiredWhether the notional amount is being exchanged at expiry. (Yes, No)
FPPDRequiredThe first date of the principal payment.
FrPPRequiredThe frequency of principal payments (Annual, SemiAnnual, Quarterly, Monthly)
PPPRequiredThe percent of the principal in each payment.
DRRequiredThe date rolling method. Non-business days are Saturdays and Sundays; holidays are not supported (Following, ModifiedFollowing, Previous, ModifiedPrevious, NoAdjustment)
NotionalRequiredThe notional amount.
RateFixRequiredThe rate in the fixed leg of the swap.
SpRequiredThe spread (in basis points) in the floating leg of the swap.
LRRequiredThe last reset rate of the reference interest rate in the floating leg of the swap.
EfDateRequiredThe effective date.
CFrRequiredThe frequency of coupons (Annual, SemiAnnual, Quarterly, Monthly)
DaysCFRequiredThe time basis method in the cash flow calculation (act/360, act/365, act/act, 30E/360, 30I/360)
DCurveDatesRequiredThe array of dates in the interest rate curve used for discounting cash flows.
DCurveRatesRequiredThe array of rates in the interest rate curve used for discounting cash flows.
FCurveDatesRequiredThe array of dates in the interest rate curve used for calculating forward interest rates.
FCurveRatesRequiredThe array of rates in the interest rate curve used for calculating forward interest rates.
VDateRequiredThe value date.
SDateRequiredThe spot date.
CompRequiredThe compounding basis of the interest rates (Annual, SemiAnnual, Quarterly, Monthly, Simple, Continuous)
DaysRequiredThe time basis of the interest rates (act/360, act/365, act/act, 30E/360, 30I/360)
InterpRequiredThe interpolation method (Linear, LogLinear, CubicSpline, Exponential)
RMRequiredThe risk measure type (DV01, MacaulayDuration, ModifiedDuration)

See also: GIA_IRD_Swaps_LastResetDate, GIA_IRD_Swaps_ValueOfLeg

GIA_IRD_Swaps_ValueOfLeg

Returns the value of the individual leg in all types of interest swaps supported in the GIAnalyzer, except the OIS and TRS.

GIA_IRD_Swaps_ValueOfLeg(SwapType, LegType, EDate, NE0, NE1, FPPD, FrPP, PPP, DR, Notional, RateFix, Sp, LR, EfDate, CFr, DaysCF, DCurveDates, DCurveRates, FCurveDates, FCurveRates, VDate, SDate, Comp, Days, Interp)

Returns: Value of the individual leg in all types of interest swaps supported in the GIAnalyzer, except the OIS and TRS

ArgumentUseDescription
SwapTypeRequiredThe type of a swap. See the documentation for full description.
LegTypeRequiredThe type of a swap leg (Pay, Receive).
EDateRequiredThe expiry date.
NE0RequiredWhether the notional amount is being exchanged at the start. (Yes, No)
NE1RequiredWhether the notional amount is being exchanged at expiry. (Yes, No)
FPPDRequiredThe first date of the principal payment.
FrPPRequiredThe frequency of principal payments (Annual, SemiAnnual, Quarterly, Monthly)
PPPRequiredThe percent of the principal in each payment.
DRRequiredThe date rolling method. Non-business days are Saturdays and Sundays; holidays are not supported (Following, ModifiedFollowing, Previous, ModifiedPrevious, NoAdjustment)
NotionalRequiredThe notional amount.
RateFixRequiredThe rate in the fixed leg of the swap.
SpRequiredThe spread (in basis points) in the floating leg of the swap.
LRRequiredThe last reset rate of the reference interest rate in the floating leg of the swap.
EfDateRequiredThe effective date.
CFrRequiredThe frequency of coupons (Annual, SemiAnnual, Quarterly, Monthly)
DaysCFRequiredThe time basis method in the cash flow calculation (act/360, act/365, act/act, 30E/360, 30I/360)
DCurveDatesRequiredThe array of dates in the interest rate curve used for discounting cash flows.
DCurveRatesRequiredThe array of rates in the interest rate curve used for discounting cash flows.
FCurveDatesRequiredThe array of dates in the interest rate curve used for calculating forward interest rates.
FCurveRatesRequiredThe array of rates in the interest rate curve used for calculating forward interest rates.
VDateRequiredThe value date.
SDateRequiredThe spot date.
CompRequiredThe compounding basis of the interest rates (Annual, SemiAnnual, Quarterly, Monthly, Simple, Continuous)
DaysRequiredThe time basis of the interest rates (act/360, act/365, act/act, 30E/360, 30I/360)
InterpRequiredThe interpolation method (Linear, LogLinear, CubicSpline, Exponential)

See also: GIA_IRD_Swaps_LastResetDate, GIA_IRD_Swaps_RiskOfLeg