CashFlows - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Finance

  

CashFlows

  

return the set of cash flows for a bond or a swap

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

CashFlows(instrument, date)

Parameters

instrument

-

swap or bond; financial instrument

date

-

a string containing a date specification in a format recognized by ParseDate or a date data structure; date

Description

• 

The CashFlows command returns the set of cash flows for a swap or a bond to occur after the given date.

Examples

withFinance:

First set the global evaluation date.

SetEvaluationDateJanuary 02, 2006:

EvaluationDate

January 2, 2006

(1)

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

Schedule1ScheduleJanuary 03, 2007,January 03, 2010,Monthly

Schedule1moduleend module

(2)

Schedule2ScheduleJanuary 03, 2006,January 03, 2010,Quarterly

Schedule2moduleend module

(3)

Rate10.05

Rate10.05

(4)

Rate2BenchmarkRate0.03

Rate2moduleend module

(5)

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

Swap1InterestRateSwap1000,Rate1,Schedule1,Rate2,Schedule2,0.03

Swap1moduleend module

(6)

Swap2InterestRateSwap1000,Rate2,Schedule2,Rate1,Schedule1,0.03

Swap2moduleend module

(7)

Here is the set of cash flows for the paying leg of each swap.

PayingLeg1CashFlowsSwap1,paying

PayingLeg14.246575342 on 'February 3, 2007',3.835616438 on 'March 3, 2007',4.246575342 on 'April 3, 2007',4.109589041 on 'May 3, 2007',4.246575342 on 'June 3, 2007',4.109589041 on 'July 3, 2007',4.246575342 on 'August 3, 2007',4.246575342 on 'September 3, 2007',4.109589041 on 'October 3, 2007',4.246575342 on 'November 3, 2007',4.109589041 on 'December 3, 2007',4.245826783 on 'January 3, 2008',4.234972678 on 'February 3, 2008',3.961748634 on 'March 3, 2008',4.234972678 on 'April 3, 2008',4.098360656 on 'May 3, 2008',4.234972678 on 'June 3, 2008',4.098360656 on 'July 3, 2008',4.234972678 on 'August 3, 2008',4.234972678 on 'September 3, 2008',4.098360656 on 'October 3, 2008',4.234972678 on 'November 3, 2008',4.098360656 on 'December 3, 2008',4.235721237 on 'January 3, 2009',4.246575342 on 'February 3, 2009',3.835616438 on 'March 3, 2009',4.246575342 on 'April 3, 2009',4.109589041 on 'May 3, 2009',4.246575342 on 'June 3, 2009',4.109589041 on 'July 3, 2009',4.246575342 on 'August 3, 2009',4.246575342 on 'September 3, 2009',4.109589041 on 'October 3, 2009',4.246575342 on 'November 3, 2009',4.109589041 on 'December 3, 2009',4.246575342 on 'January 3, 2010'

(8)

PayingLeg2CashFlowsSwap2,paying

PayingLeg214.82194787 on 'April 3, 2006',14.98694508 on 'July 3, 2006',15.15194910 on 'October 3, 2006',15.15194910 on 'January 3, 2007',14.82194787 on 'April 3, 2007',14.98694508 on 'July 3, 2007',15.15194910 on 'October 3, 2007',15.15127369 on 'January 3, 2008',14.94592054 on 'April 3, 2008',14.94592054 on 'July 3, 2008',15.11047204 on 'October 3, 2008',15.11114744 on 'January 3, 2009',14.82194787 on 'April 3, 2009',14.98694508 on 'July 3, 2009',15.15194910 on 'October 3, 2009',15.15194910 on 'January 3, 2010'

(9)

Here is the set of cash flows for the receiving leg.

ReceivingLeg1CashFlowsSwap1,receiving

ReceivingLeg114.82194787 on 'April 3, 2006',14.98694508 on 'July 3, 2006',15.15194910 on 'October 3, 2006',15.15194910 on 'January 3, 2007',14.82194787 on 'April 3, 2007',14.98694508 on 'July 3, 2007',15.15194910 on 'October 3, 2007',15.15127369 on 'January 3, 2008',14.94592054 on 'April 3, 2008',14.94592054 on 'July 3, 2008',15.11047204 on 'October 3, 2008',15.11114744 on 'January 3, 2009',14.82194787 on 'April 3, 2009',14.98694508 on 'July 3, 2009',15.15194910 on 'October 3, 2009',15.15194910 on 'January 3, 2010'

(10)

ReceivingLeg2CashFlowsSwap2,receiving

ReceivingLeg24.246575342 on 'February 3, 2007',3.835616438 on 'March 3, 2007',4.246575342 on 'April 3, 2007',4.109589041 on 'May 3, 2007',4.246575342 on 'June 3, 2007',4.109589041 on 'July 3, 2007',4.246575342 on 'August 3, 2007',4.246575342 on 'September 3, 2007',4.109589041 on 'October 3, 2007',4.246575342 on 'November 3, 2007',4.109589041 on 'December 3, 2007',4.245826783 on 'January 3, 2008',4.234972678 on 'February 3, 2008',3.961748634 on 'March 3, 2008',4.234972678 on 'April 3, 2008',4.098360656 on 'May 3, 2008',4.234972678 on 'June 3, 2008',4.098360656 on 'July 3, 2008',4.234972678 on 'August 3, 2008',4.234972678 on 'September 3, 2008',4.098360656 on 'October 3, 2008',4.234972678 on 'November 3, 2008',4.098360656 on 'December 3, 2008',4.235721237 on 'January 3, 2009',4.246575342 on 'February 3, 2009',3.835616438 on 'March 3, 2009',4.246575342 on 'April 3, 2009',4.109589041 on 'May 3, 2009',4.246575342 on 'June 3, 2009',4.109589041 on 'July 3, 2009',4.246575342 on 'August 3, 2009',4.246575342 on 'September 3, 2009',4.109589041 on 'October 3, 2009',4.246575342 on 'November 3, 2009',4.109589041 on 'December 3, 2009',4.246575342 on 'January 3, 2010'

(11)

maptt:−amount,PayingLeg1

4.246575342,3.835616438,4.246575342,4.109589041,4.246575342,4.109589041,4.246575342,4.246575342,4.109589041,4.246575342,4.109589041,4.245826783,4.234972678,3.961748634,4.234972678,4.098360656,4.234972678,4.098360656,4.234972678,4.234972678,4.098360656,4.234972678,4.098360656,4.235721237,4.246575342,3.835616438,4.246575342,4.109589041,4.246575342,4.109589041,4.246575342,4.246575342,4.109589041,4.246575342,4.109589041,4.246575342

(12)

maptt:−amount,PayingLeg2

14.82194787,14.98694508,15.15194910,15.15194910,14.82194787,14.98694508,15.15194910,15.15127369,14.94592054,14.94592054,15.11047204,15.11114744,14.82194787,14.98694508,15.15194910,15.15194910

(13)

Compatibility

• 

The Finance[CashFlows] 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]