Generic Functions (IRS, OIS, CCS and basis swaps)

Last updated 9 November 2026

Function reference › Interest Rate Derivatives › Additional Functions

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

GIA_IRD_Generic_KRArray

Returns the KR array of an IRS, OIS, CCS or Basis Swap.

GIA_IRD_Generic_KRArray(T1, T2, EDtS, EDtO, NE0, NE1, FPPD, PFr, PPP, DR, PFl, PN, PFx, PSp, PEfD, PCFr, PDays, RFl, RN, RFx, RSp, REfD, RCfr, RDays, PCComp, PCDays, RCComp, RCDays, Vol, VolT, PDDs, PDRs, PFDs, PFRs, RDDs, RDRs, RFDs, RFRs, PHDs, PHRs, RHDs, RHRs, VDt, SDt, Int, S, CurP, OT, OC)

Returns: KR array of an IRS, OIS, CCS or Basis Swap

ArgumentUseDescription
T1RequiredThe type of IRD (Option, Swap, Bond ).
T2RequiredThe type of IRD (IRS, IRSLeg, OIS, OISLeg, CCS, CCSLeg, BasisSwap, FRA, Cap, Floor, Payer, Receiver).
EDtSRequiredThe expiry date of the IRD.
EDtORequiredThe expiry date of an option if the IRD Is a Swaption.
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.
PFrRequiredThe 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)
PFlRequiredThe type of floating interest rate in the pay leg (RFR, IBOR).
PNRequiredThe notional amount in the pay leg.
PFxRequiredThe fixed rate in the pay leg.
PSpRequiredThe spread (In basis points) In the pay leg.
PEfDRequiredThe effective date of the pay leg.
PCFrRequiredThe coupon frequency in the pay leg.
PDaysRequiredThe time basis method in the pay leg (act/360, act/365, act/act, 30E/360, 30I/360)
RFlRequiredThe type of floating interest rate in the receive leg (RFR, IBOR).
RNRequiredThe notional amount in the receive leg.
RFxRequiredThe fixed rate in the receive leg.
RSpRequiredThe spread (In basis points) In the receive leg.
REfDRequiredThe effective date of the receive leg.
RCfrRequiredThe coupon frequency in the receive leg.
RDaysRequiredThe time basis method in the receive leg (act/360, act/365, act/act, 30E/360, 30I/360)
PCCompRequiredThe compounding in the pay leg's interest rate curves (Annual, SemiAnnual, Quarterly, Monthly, Simple, Continuous)
PCDaysRequiredThe time basis method in the pay leg's interest rate curve (act/360, act/365, act/act, 30E/360, 30I/360)
RCCompRequiredThe compounding in the receive leg's interest rate curves (Annual, SemiAnnual, Quarterly, Monthly, Simple, Continuous)
RCDaysRequiredThe time basis method in the receive leg's interest rate curve (act/360, act/365, act/act, 30E/360, 30I/360)
VolRequiredThe volatility of the underlying asset.
VolTRequiredThe type of volatility (Lognormal, Normal)
PDDsRequiredThe array of dates in the interest rate curve used for discounting cash flows in the pay leg.
PDRsRequiredThe array of rates in the interest rate curve used for discounting cash flows in the pay leg.
PFDsRequiredThe array of dates in the interest rate curve used for calculating forward interest rates in the pay leg.
PFRsRequiredThe array of rates in the interest rate curve used for calculating forward interest rates in the pay leg.
RDDsRequiredThe array of dates in the interest rate curve used for discounting cash flows in the receive leg.
RDRsRequiredThe array of rates in the interest rate curve used for discounting cash flows in the receive leg.
RFDsRequiredThe array of dates in the interest rate curve used for calculating forward interest rates in the receive leg.
RFRsRequiredThe array of rates in the interest rate curve used for calculating forward interest rates in the receive leg.
PHDsRequiredThe array of dates of historical rates of the reference interest rate in the pay leg.
PHRsRequiredThe array of historical rates of the reference interest rate in the pay leg.
RHDsRequiredThe array of dates of historical rates of the reference interest rate in the receive leg.
RHRsRequiredThe array of historical rates of the reference interest rate in the receive leg.
VDtRequiredThe value date.
SDtRequiredThe spot date.
IntRequiredThe interpolation method (Linear, LogLinear, CubicSpline, Exponential)
SRequiredThe FX spot rate.
CurPRequiredWhether the currency of the pay leg is base or counter (Base, Counter)
OTRequiredThe output type of the value/risk. (PayLeg, ReceiveLeg, Total)
OCRequiredThe currency in which the value is expressed (Base, Counter, Own

See also: GIA_IRD_Generic_KRArrayFromRow, GIA_IRD_Generic_Risk, GIA_IRD_Generic_RiskFromRow, GIA_IRD_Generic_Value, GIA_IRD_Generic_ValueFromRow

GIA_IRD_Generic_KRArrayFromRow

Returns the KR array of an IRS, OIS, CCS or Basis Swap

GIA_IRD_Generic_KRArrayFromRow(PortfolioEntry, PayDCurveDates, PayDCurveRates, PayFCurveDates, PayFCurveRates, RecDCurveDates, RecDCurveRates, RecFCurveDates, RecFCurveRates, PayHDates, PayHRates, RecHDates, RecHRates, VDate, SDate, Interp, S, CurP, OT, OC)

Returns: KR array of an IRS, OIS, CCS or Basis Swap

ArgumentUseDescription
PortfolioEntryRequiredThe array of IRD parameters.
PayDCurveDatesRequiredThe array of dates in the interest rate curve used for discounting cash flows in the pay leg.
PayDCurveRatesRequiredThe array of rates in the interest rate curve used for discounting cash flows in the pay leg.
PayFCurveDatesRequiredThe array of dates in the interest rate curve used for calculating forward interest rates in the pay leg.
PayFCurveRatesRequiredThe array of rates in the interest rate curve used for calculating forward interest rates in the pay leg.
RecDCurveDatesRequiredThe array of dates in the interest rate curve used for discounting cash flows in the receive leg.
RecDCurveRatesRequiredThe array of rates in the interest rate curve used for discounting cash flows in the receive leg.
RecFCurveDatesRequiredThe array of dates in the interest rate curve used for calculating forward interest rates in the receive leg.
RecFCurveRatesRequiredThe array of rates in the interest rate curve used for calculating forward interest rates in the receive leg.
PayHDatesRequiredThe array of dates of historical rates of the reference interest rate in the pay leg.
PayHRatesRequiredThe array of historical rates of the reference interest rate in the pay leg.
RecHDatesRequiredThe array of dates of historical rates of the reference interest rate in the receive leg.
RecHRatesRequiredThe array of historical rates of the reference interest rate in the receive leg.
VDateRequiredThe value date.
SDateRequiredThe spot date.
InterpRequiredThe interpolation method (Linear, LogLinear, CubicSpline, Exponential)
SRequiredThe FX spot rate.
CurPRequiredWhether the currency of the pay leg is base or counter (Base, Counter)
OTRequiredThe output type of the value/risk. (PayLeg, ReceiveLeg, Total)
OCRequiredThe currency in which the value is expressed (Base, Counter, Own)

See also: GIA_IRD_Generic_KRArray, GIA_IRD_Generic_Risk, GIA_IRD_Generic_RiskFromRow, GIA_IRD_Generic_Value, GIA_IRD_Generic_ValueFromRow

GIA_IRD_Generic_Risk

Returns the value of an IRS, OIS, CCS, Basis Swap, FRA, Cap/Floor or Swaption.

GIA_IRD_Generic_Risk(T1, T2, EDtS, EDtO, NE0, NE1, FPPD, PFr, PPP, DR, PFl, PN, PFx, PSp, PEfD, PCFr, PDays, RFl, RN, RFx, RSp, REfD, RCfr, RDays, PCComp, PCDays, RCComp, RCDays, Vol, VolT, PDDs, PDRs, PFDs, PFRs, RDDs, RDRs, RFDs, RFRs, PHDs, PHRs, RHDs, RHRs, VDt, SDt, Int, S, CurP, RM, OT, OC, StartTerm, EndTerm, Appr)

Returns: Value of an IRS, OIS, CCS, Basis Swap, FRA, Cap/Floor or Swaption

ArgumentUseDescription
T1RequiredThe type of IRD (Option, Swap, Bond ).
T2RequiredThe type of IRD (IRS, IRSLeg, OIS, OISLeg, CCS, CCSLeg, BasisSwap, FRA, Cap, Floor, Payer, Receiver).
EDtSRequiredThe expiry date of the IRD.
EDtORequiredThe expiry date of an option if the IRD Is a Swaption.
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.
PFrRequiredThe 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)
PFlRequiredThe type of floating interest rate in the pay leg (RFR, IBOR).
PNRequiredThe notional amount in the pay leg.
PFxRequiredThe fixed rate in the pay leg.
PSpRequiredThe spread (In basis points) In the pay leg.
PEfDRequiredThe effective date of the pay leg.
PCFrRequiredThe coupon frequency in the pay leg.
PDaysRequiredThe time basis method in the pay leg (act/360, act/365, act/act, 30E/360, 30I/360)
RFlRequiredThe type of floating interest rate in the receive leg (RFR, IBOR).
RNRequiredThe notional amount in the receive leg.
RFxRequiredThe fixed rate in the receive leg.
RSpRequiredThe spread (In basis points) In the receive leg.
REfDRequiredThe effective date of the receive leg.
RCfrRequiredThe coupon frequency in the receive leg.
RDaysRequiredThe time basis method in the receive leg (act/360, act/365, act/act, 30E/360, 30I/360)
PCCompRequiredThe compounding in the pay leg's interest rate curves (Annual, SemiAnnual, Quarterly, Monthly, Simple, Continuous)
PCDaysRequiredThe time basis method in the pay leg's interest rate curve (act/360, act/365, act/act, 30E/360, 30I/360)
RCCompRequiredThe compounding in the receive leg's interest rate curves (Annual, SemiAnnual, Quarterly, Monthly, Simple, Continuous)
RCDaysRequiredThe time basis method in the receive leg's interest rate curve (act/360, act/365, act/act, 30E/360, 30I/360)
VolRequiredThe volatility of the underlying asset.
VolTRequiredThe type of volatility (Lognormal, Normal)
PDDsRequiredThe array of dates in the interest rate curve used for discounting cash flows in the pay leg.
PDRsRequiredThe array of rates in the interest rate curve used for discounting cash flows in the pay leg.
PFDsRequiredThe array of dates in the interest rate curve used for calculating forward interest rates in the pay leg.
PFRsRequiredThe array of rates in the interest rate curve used for calculating forward interest rates in the pay leg.
RDDsRequiredThe array of dates in the interest rate curve used for discounting cash flows in the receive leg.
RDRsRequiredThe array of rates in the interest rate curve used for discounting cash flows in the receive leg.
RFDsRequiredThe array of dates in the interest rate curve used for calculating forward interest rates in the receive leg.
RFRsRequiredThe array of rates in the interest rate curve used for calculating forward interest rates in the receive leg.
PHDsRequiredThe array of dates of historical rates of the reference interest rate in the pay leg.
PHRsRequiredThe array of historical rates of the reference interest rate in the pay leg.
RHDsRequiredThe array of dates of historical rates of the reference interest rate in the receive leg.
RHRsRequiredThe array of historical rates of the reference interest rate in the receive leg.
VDtRequiredThe value date.
SDtRequiredThe spot date.
IntRequiredThe interpolation method (Linear, LogLinear, CubicSpline, Exponential)
SRequiredThe FX spot rate.
CurPRequiredWhether the currency of the pay leg is base or counter (Base, Counter)
RMRequiredThe risk measure type (DV01, MacaulayDuration, ModifiedDuration, KR01, BucketDV01, KRDuration, BucketDuration)
OTRequiredThe output type of the value/risk. (PayLeg, ReceiveLeg, Total)
OCRequiredThe currency in which the value is expressed (Base, Counter, Own)
StartTermRequiredThe starting term for Bucket and Key Rate measures.
EndTermRequiredThe ending term for Bucket and Key Rate measures.
ApprRequiredThe OIS float leg approximation type (None, DFRatio)

See also: GIA_IRD_Generic_KRArray, GIA_IRD_Generic_KRArrayFromRow, GIA_IRD_Generic_RiskFromRow, GIA_IRD_Generic_Value, GIA_IRD_Generic_ValueFromRow

GIA_IRD_Generic_RiskFromRow

Returns the value of an IRS, OIS, CCS, Basis Swap, FRA, Cap/Floor or Swaption.

GIA_IRD_Generic_RiskFromRow(PortfolioEntry, PayDCurveDates, PayDCurveRates, PayFCurveDates, PayFCurveRates, RecDCurveDates, RecDCurveRates, RecFCurveDates, RecFCurveRates, PayHDates, PayHRates, RecHDates, RecHRates, VDate, SDate, Interp, S, CurP, RM, OT, OC, StartTerm, EndTerm, Appr)

Returns: Value of an IRS, OIS, CCS, Basis Swap, FRA, Cap/Floor or Swaption

ArgumentUseDescription
PortfolioEntryRequiredThe array of IRD parameters.
PayDCurveDatesRequiredThe array of dates in the interest rate curve used for discounting cash flows in the pay leg.
PayDCurveRatesRequiredThe array of rates in the interest rate curve used for discounting cash flows in the pay leg.
PayFCurveDatesRequiredThe array of dates in the interest rate curve used for calculating forward interest rates in the pay leg.
PayFCurveRatesRequiredThe array of rates in the interest rate curve used for calculating forward interest rates in the pay leg.
RecDCurveDatesRequiredThe array of dates in the interest rate curve used for discounting cash flows in the receive leg.
RecDCurveRatesRequiredThe array of rates in the interest rate curve used for discounting cash flows in the receive leg.
RecFCurveDatesRequiredThe array of dates in the interest rate curve used for calculating forward interest rates in the receive leg.
RecFCurveRatesRequiredThe array of rates in the interest rate curve used for calculating forward interest rates in the receive leg.
PayHDatesRequiredThe array of dates of historical rates of the reference interest rate in the pay leg.
PayHRatesRequiredThe array of historical rates of the reference interest rate in the pay leg.
RecHDatesRequiredThe array of dates of historical rates of the reference interest rate in the receive leg.
RecHRatesRequiredThe array of historical rates of the reference interest rate in the receive leg.
VDateRequiredThe value date.
SDateRequiredThe spot date.
InterpRequiredThe interpolation method (Linear, LogLinear, CubicSpline, Exponential)
SRequiredThe FX spot rate.
CurPRequiredWhether the currency of the pay leg is base or counter (Base, Counter)
RMRequiredThe risk measure type (DV01, MacaulayDuration, ModifiedDuration, KR01, BucketDV01, KRDuration, BucketDuration)
OTRequiredThe output type of the value/risk. (PayLeg, ReceiveLeg, Total)
OCRequiredThe currency in which the value is expressed (Base, Counter, Own)
StartTermRequiredThe starting term for Bucket and Key Rate measures.
EndTermRequiredThe ending term for Bucket and Key Rate measures.
ApprRequiredThe OIS float leg approximation type (None, DFRatio)

See also: GIA_IRD_Generic_KRArray, GIA_IRD_Generic_KRArrayFromRow, GIA_IRD_Generic_Risk, GIA_IRD_Generic_Value, GIA_IRD_Generic_ValueFromRow

GIA_IRD_Generic_Value

Returns the value of an IRS, OIS, CCS, Basis Swap, FRA, Cap/Floor or Swaption.

GIA_IRD_Generic_Value(T1, T2, EDtS, EDtO, NE0, NE1, FPPD, PFr, PPP, DR, PFl, PN, PFx, PSp, PEfD, PCFr, PDays, RFl, RN, RFx, RSp, REfD, RCfr, RDays, PCComp, PCDays, RCComp, RCDays, Vol, VolT, PDDs, PDRs, PFDs, PFRs, RDDs, RDRs, RFDs, RFRs, PHDs, PHRs, RHDs, RHRs, VDt, SDt, Int, S, CurP, OT, OC, Appr)

Returns: Value of an IRS, OIS, CCS, Basis Swap, FRA, Cap/Floor or Swaption

ArgumentUseDescription
T1RequiredThe type of IRD (Option, Swap, Bond ).
T2RequiredThe type of IRD (IRS, IRSLeg, OIS, OISLeg, CCS, CCSLeg, BasisSwap, FRA, Cap, Floor, Payer, Receiver).
EDtSRequiredThe expiry date of the IRD.
EDtORequiredThe expiry date of an option if the IRD Is a Swaption.
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.
PFrRequiredThe 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)
PFlRequiredThe type of floating interest rate in the pay leg (RFR, IBOR).
PNRequiredThe notional amount in the pay leg.
PFxRequiredThe fixed rate in the pay leg.
PSpRequiredThe spread (In basis points) In the pay leg.
PEfDRequiredThe effective date of the pay leg.
PCFrRequiredThe coupon frequency in the pay leg.
PDaysRequiredThe time basis method in the pay leg (act/360, act/365, act/act, 30E/360, 30I/360)
RFlRequiredThe type of floating interest rate in the receive leg (RFR, IBOR).
RNRequiredThe notional amount in the receive leg.
RFxRequiredThe fixed rate in the receive leg.
RSpRequiredThe spread (In basis points) In the receive leg.
REfDRequiredThe effective date of the receive leg.
RCfrRequiredThe coupon frequency in the receive leg.
RDaysRequiredThe time basis method in the receive leg (act/360, act/365, act/act, 30E/360, 30I/360)
PCCompRequiredThe compounding in the pay leg's interest rate curves (Annual, SemiAnnual, Quarterly, Monthly, Simple, Continuous)
PCDaysRequiredThe time basis method in the pay leg's interest rate curve (act/360, act/365, act/act, 30E/360, 30I/360)
RCCompRequiredThe compounding in the receive leg's interest rate curves (Annual, SemiAnnual, Quarterly, Monthly, Simple, Continuous)
RCDaysRequiredThe time basis method in the receive leg's interest rate curve (act/360, act/365, act/act, 30E/360, 30I/360)
VolRequiredThe volatility of the underlying asset.
VolTRequiredThe type of volatility (Lognormal, Normal)
PDDsRequiredThe array of dates in the interest rate curve used for discounting cash flows in the pay leg.
PDRsRequiredThe array of rates in the interest rate curve used for discounting cash flows in the pay leg.
PFDsRequiredThe array of dates in the interest rate curve used for calculating forward interest rates in the pay leg.
PFRsRequiredThe array of rates in the interest rate curve used for calculating forward interest rates in the pay leg.
RDDsRequiredThe array of dates in the interest rate curve used for discounting cash flows in the receive leg.
RDRsRequiredThe array of rates in the interest rate curve used for discounting cash flows in the receive leg.
RFDsRequiredThe array of dates in the interest rate curve used for calculating forward interest rates in the receive leg.
RFRsRequiredThe array of rates in the interest rate curve used for calculating forward interest rates in the receive leg.
PHDsRequiredThe array of dates of historical rates of the reference interest rate in the pay leg.
PHRsRequiredThe array of historical rates of the reference interest rate in the pay leg.
RHDsRequiredThe array of dates of historical rates of the reference interest rate in the receive leg.
RHRsRequiredThe array of historical rates of the reference interest rate in the receive leg.
VDtRequiredThe value date.
SDtRequiredThe spot date.
IntRequiredThe interpolation method (Linear, LogLinear, CubicSpline, Exponential)
SRequiredThe FX spot rate.
CurPRequiredWhether the currency of the pay leg is base or counter (Base, Counter)
OTRequiredThe output type of the value/risk. (PayLeg, ReceiveLeg, Total)
OCRequiredThe currency in which the value is expressed (Base, Counter, Own
ApprRequiredThe OIS float leg approximation type (None, DFRatio)

See also: GIA_IRD_Generic_KRArray, GIA_IRD_Generic_KRArrayFromRow, GIA_IRD_Generic_Risk, GIA_IRD_Generic_RiskFromRow, GIA_IRD_Generic_ValueFromRow

GIA_IRD_Generic_ValueFromRow

Returns the value of an IRS, OIS, CCS, Basis Swap, FRA, Cap / Floor or Swaption.

GIA_IRD_Generic_ValueFromRow(PortfolioEntry, PayDCurveDates, PayDCurveRates, PayFCurveDates, PayFCurveRates, RecDCurveDates, RecDCurveRates, RecFCurveDates, RecFCurveRates, PayHDates, PayHRates, RecHDates, RecHRates, VDate, SDate, Interp, S, CurP, OT, OC, ApproximationType)

Returns: Value of an IRS, OIS, CCS, Basis Swap, FRA, Cap / Floor or Swaption

ArgumentUseDescription
PortfolioEntryRequiredThe array of IRD parameters.
PayDCurveDatesRequiredThe array of dates in the interest rate curve used for discounting cash flows in the pay leg.
PayDCurveRatesRequiredThe array of rates in the interest rate curve used for discounting cash flows in the pay leg.
PayFCurveDatesRequiredThe array of dates in the interest rate curve used for calculating forward interest rates in the pay leg.
PayFCurveRatesRequiredThe array of rates in the interest rate curve used for calculating forward interest rates in the pay leg.
RecDCurveDatesRequiredThe array of dates in the interest rate curve used for discounting cash flows in the receive leg.
RecDCurveRatesRequiredThe array of rates in the interest rate curve used for discounting cash flows in the receive leg.
RecFCurveDatesRequiredThe array of dates in the interest rate curve used for calculating forward interest rates in the receive leg.
RecFCurveRatesRequiredThe array of rates in the interest rate curve used for calculating forward interest rates in the receive leg.
PayHDatesRequiredThe array of dates of historical rates of the reference interest rate in the pay leg.
PayHRatesRequiredThe array of historical rates of the reference interest rate in the pay leg.
RecHDatesRequiredThe array of dates of historical rates of the reference interest rate in the receive leg.
RecHRatesRequiredThe array of historical rates of the reference interest rate in the receive leg.
VDateRequiredThe value date.
SDateRequiredThe spot date.
InterpRequiredThe interpolation method (Linear, LogLinear, CubicSpline, Exponential)
SRequiredThe FX spot rate.
CurPRequiredWhether the currency of the pay leg is base or counter (Base, Counter)
OTRequiredThe output type of the value/risk. (PayLeg, ReceiveLeg, Total)
OCRequiredThe currency in which the value is expressed (Base, Counter, Own)
ApproximationTypeRequiredThe OIS float leg approximation type (None, DFRatio)

See also: GIA_IRD_Generic_KRArray, GIA_IRD_Generic_KRArrayFromRow, GIA_IRD_Generic_Risk, GIA_IRD_Generic_RiskFromRow, GIA_IRD_Generic_Value