Creates a discount curve from Tenors (or Dates) and discount factor inputs.
Whether using Tenors or Dates, the first point must be a date value equal to the ValueDate value (passed into the 'ValueDate' parameter of this function) and must have a discount value of 1. Further points most have discount value inputs of decreasing value but values greater than 0. This curve can be used for retrieving forward rates, discount factors and zero rates.
Can also be used to price market instruments, deposits, futures, FRAs, CMS and Swap rates.
This function requires the input of a IndexKey template object key, which must have been produced via a call to
CreateDepoTemplate(). This function would have returned a string 'KEY' which is to be passed to the 'DepoIndex' parameter of this function.
This function requires the input of a SWAP IndexKey template object key, which must have been produced via a call to
CreateSwapTemplate(). This function would have returned a string 'KEY' which is to be passed to the 'Swap Index' parameter of this function.
This function requires the input of a Calendar object key, which must have been produced via a call to one of the Calendar creation functions present within the
CapeTools Calendars category of functions.
These functions would have returned a string 'KEY' which is to be passed to the 'Cal' parameter of this function.
For the 'DayCount' and 'BusDayConv' parameters, please refer to the large number of enumeration functions present within the
CapeTools Enums category of functions.
The
CapeTools Enums category of functions return correct string codes that can be passed to parameters taking fixed string values defined by the library (ie - DayCount codes, frequency codes, currency codes, compounding codes, business day convention codes etc...).
You can thus execute these enumeration functions which return the proper code, instead of trying to remember the string code needed or making spelling mistakes which can be difficult to debug.
This function creates an object and returns a string-key value to represent this created object.
The TAG value of the string-key returned (second part of the key) is : "DYC2"
The C# example below contains all the sub-function calls leading up to this function call. As a result, the example can contain a lot of code.
The VB.NET, J#, C++.NET, Java, Excel VBA, Visual Basic 6 (via COM) and C++ examples below contain function code stubs for the calls leading up to this function call. However, the function call for this function is displayed.
You can easily reproduce the stub functions code from the
C# example.
Copyright (c) 2003-2007 CapeTools - All Rights Reserved.