Component 
Resolution  Swap Pricing 




Function Definition 
oSWPir2_CFM_FL(ValueDate, SettlementDate, EffectiveDate, FirstCpnDate, PenultCpnDate, MaturityDate, PastResetRate, CouponMargin, Notional, NotionalPayment, PaymentFreq, BusDayConv, AccrualBasis, DateGen, InterpMethod, ZeroCurve, Holidays) Generates the cash flow map for the floating leg of a custom 1 interest rate swap. Returns a table consisting of eight columns; Leg, Effective Date, Maturity Date, Rate, Notional Amount, Coupon Amount, Total Cash Flow, and Present Value of Cash Flow. 




Swap Types 




Function Parameters 



Parameters 
Description 

Parameter Type 

Restrictions 

. 

ValueDate 

The valuation date of the floating leg. 

Date 

ValDate < SettleDate 

SettlementDate 

The date on which the trade will settle. This is typically 13 business days after the trade. 

Date 

SettleDate < MatDate 

EffectiveDate 

The first date from which interest begins to accrue. 

Date 

EffDate < MatDate 

FirstCpnDate 

The date that the first coupon is paid (if floating leg does not have an odd first period, leave blank). 

Date 

F.C.D > EffDate 

PenultCpnDate 

The date that the penultimate coupon is paid (if floating leg does not have an odd last period, leave blank). 

Date 

P.C.D > EffDate 

MaturityDate 

The maturity date of the floating leg. 

Date 

As above. 

PastResetRate 

The rate observed at the previous rate reset date. 

Double 

PastResetRate >= 0 

CouponMargin 

The margin, in basis points, that is added to each rate reset. 

Curve 

If the coupon rate is constant at each rate reset, then enter a single value, otherwise a series (1 for each rate reset) of rates is required. 

Notional 

The notional value of the floating leg at each rate reset date. 

Curve 

If the notional is constant at each rate reset, then enter a single value, otherwise a series (1 for each rate reset) of notionals is required. 

NotionalPayment 

Defines the treatment of the notional payment from a valuation point of view. 

Enumerated Constant 

1  Notional Only 

PaymentFreq 

Frequency of the coupon payment. 

Enumerated Constant 

1  Annual 

BusDayConv 

Business day convention. Used to determine the start and end date of each coupon payment period. 

Enumerated Constant 

1  No Adjustment 

AccrualBasis 

Basis for determining coupon amounts and accrued interest. 

Enumerated Constant 

1  Act/Act (actual) 

DateGen 

Determines if the rate reset cycle is computed backwards from the maturity date or forwards from the effective date. 

Enumerated Constant 

1  Maturity Date 

InterpMethod 

Method used to calculate rates and discount factors from the supplied zero curve. 

Enumerated Constant 

1  Discount Factors 

ZeroCurve 

The zero curve that is used to project cash flows for the floating leg, and to discount all cashflows for both legs. 

Curve 



Holidays 

Schedule of nonbusiness days (excluding weekends) 

Date Range 

Leave blank if not applicable 








Copyright 2013 Hedgebook Ltd.