FairSpread - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


Finance

  

FairSpread

  

return the fair spread of interest rate swap

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

FairSpread(swap, discountrate)

Parameters

swap

-

swap data structure; interest rate swap

discount

-

non-negative constant of a yield term structure; discount rate

Description

• 

The FairSpread command returns the fair spread of the given interest rate swap.

Examples

> 

with⁡Finance:

> 

SetEvaluationDate⁡January 02, 2007:

> 

EvaluationDate⁡

January 2, 2007

(1)

Consider two payment schedules. The first one consists of payments of 5% of the nominal every month between January 3, 2008 and January 3, 2018. The second one consists of payments of 3% of the nominal every quarter between January 3, 2010 and January 3, 2015.

> 

Schedule1≔Schedule⁡January 03, 2008,January 03, 2018,Monthly

Schedule1 ≔ moduleend module

(2)
> 

Schedule2≔Schedule⁡January 03, 2010,January 03, 2015,Quarterly

Schedule2 ≔ moduleend module

(3)
> 

Rate1≔0.05

Rate1≔0.05

(4)
> 

Rate2≔BenchmarkRate⁡0.03

Rate2 ≔ moduleend module

(5)

Consider two simple swaps that exchange the first set of payments with the second set.

> 

Swap1≔InterestRateSwap⁡1000,Rate1,Schedule1,Rate2,Schedule2,0.03

Swap1 ≔ moduleend module

(6)
> 

Swap2≔InterestRateSwap⁡1000,Rate2,Schedule2,Rate1,Schedule1,0.03

Swap2 ≔ moduleend module

(7)
> 

DiscountRate≔0.05

DiscountRate≔0.05

(8)
> 

NetPresentValue⁡Swap1,DiscountRate

−146.0132438

(9)
> 

NetPresentValue⁡Swap2,DiscountRate

146.0132438

(10)
> 

Spread1≔FairSpread⁡Swap1,DiscountRate

Spread1≔0.06859218772

(11)
> 

Spread2≔FairSpread⁡Swap2,DiscountRate

Spread2≔0.06859218772

(12)

Consider the same simple swaps that use the fair spread.

> 

Swap3≔InterestRateSwap⁡1000,Rate1,Schedule1,Rate2,Schedule2,Spread1

Swap3 ≔ moduleend module

(13)
> 

Swap4≔InterestRateSwap⁡1000,Rate1,Schedule1,Rate2,Schedule2,Spread2

Swap4 ≔ moduleend module

(14)
> 

NetPresentValue⁡Swap3,DiscountRate

−8.455060652×10−9

(15)
> 

NetPresentValue⁡Swap4,DiscountRate

−8.455060652×10−9

(16)

Compatibility

• 

The Finance[FairSpread] command was introduced in Maple 15.

• 

For more information on Maple 15 changes, see Updates in Maple 15.

See Also

Finance[CompoundFactor]

Finance[DiscountFactor]

Finance[FixedRateCoupon]

Finance[InArrearIndexedCoupon]

Finance[ParCoupon]

Finance[SimpleCashFlow]

Finance[UpFrontIndexedCoupon]

Finance[ZeroCurve]