FIXBKDisplayLeg2





http://www.QuantTools.com
CapeTools Leg Portfolio function list

Welcome | Documentation format | QuantTools Groups | QuantTools Categories | Licence

Key TAGs | Excel Index | API Index



Returns a range of extended information regarding the indicated leg.

The function requires the input of a fixed rate leg portfolio object which must have been constructed via the FixedLegPortfolio() function.

This function would have returned a string 'KEY' which is to be passed to the 'FIXBookKey' parameter of this function.



Note: Within Excel, the function is named - CT.BOOK.FIXBKDisplayLeg2




High level graphic of FIXBKDisplayLeg2() function with parameters. Blue square node is the actual function with the parameters ordered.



Parameter Description


  1. FIXBookKey parameter

    Key Handle to an already constructed Leg Portfolio (Book) object.
  2. FIXDealID parameter

    The Swap deal ID to query for.


Extended information

Function Syntax

VB Syntax


Variant CTLegPortfolio.FIXBKDisplayLeg2( _
String FIXBookKey, _
String FIXDealID)


Excel Spreadsheet Syntax


=CT.BOOK.FIXBKDisplayLeg2(
Excel String Cell FIXBookKey,
Excel String Cell FIXDealID)


C++ Syntax


static CTRangeDataCPP FIXBKDisplayLeg2(
std::string FIXBookKey,
std::string FIXDealID);


DotNET Syntax


CTRangeData CTLegPortfolioSA.FIXBKDisplayLeg2(
System.String FIXBookKey,
System.String FIXDealID);

Parameter data types

ArgNameArgTypeIsKey
FIXBookKeyStringTRUE
FIXDealIDStringFALSE


Example Inputs

The first column represents the name of the parameters. The second column specifies whether the parameters are optional or not. Finally the last column provides some sample input data.
Function call input string-keys are always in the format : "NAME.EXTTAG.TICKER" The "EXTTAG.TICKER" part is determined from the output of other, capetools, object creation functions.


ArgNameIsOptional (Excel only)Example
FIXBookKeyFALSEFIXBookKeyNAME.EXTTAG.TICKER (from a function call)
FIXDealIDFALSEFIX-123456


Example function usage


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.


If you are accessing this functrion via the MiniXL libraries, this function is present within the CT.QL.IRPortfolio20 MiniXL Excel Addin.

Within our Excel Example Addin Generator, we have used the following QuantTools sub-functions in order to prepare the arguments needed to call the FIXBKDisplayLeg2() function. If you are executing this function via the MiniXL libraries, the module addin name, (in brackets, to the right of the sub-functions listed below), indicates the MiniXL library in which the sub-function is held. You will need to load this library into your Excel session (along with any other libraries that the sub-function call within the addin requires (ie - CT.QT.Utils20 addin in almost all cases) in order for the example to compute successfully.

These are the financial QuantTools sub-function calls that are used within the examples :





The objects generated by these sub-functions are inter-connected in the following way :




The following four examples demostrate calling this function within a Microsoft .NET environment

The following four examples demostrate calling this function within a non .NET environment

The following is a sample output from executing the FIXBKDisplayLeg2() function call


Example
GearingNotional (EUR)StartEndPayAccrualDaysResetTimesPayTimesCoverageCouponsDCFLegPayments (EUR)Principal Exchange (EUR)Principal Payments (EUR)Total Amount (EUR)Discounted LegPayments (EUR)Discounted Principal Exchange (EUR)Discounted Principal Payments (EUR)Discounted Total Amount (EUR)
15e+00738376384673846791-0.482192-0.2328770.2493150000000000
15e+00738467385583855891-0.2328770.01643840.2493150.05120.9994316382470063824763788300637883
15e+007385583864938649910.01643840.2657530.2493150.05120.9906646382470063824763228800632288
15e+007386493874138741920.2657530.5178080.2520550.05120.9817726452600064526063349900633499
15e+007387413883138831900.5178080.7643840.2465750.05120.9729476312330063123361415600614156
15e+007388313892238922910.7643841.01370.2493150.05120.963386382470063824761487400614874
15e+007389223901439014921.01371.265750.2520550.05120.9542216452600064526061572100615721
15e+007390143910639106921.265751.517810.2520550.05120.9451486452600064526060986600609866
15e+007391063919639196901.517811.764380.2465750.05120.9363556312330063123359105800591058
15e+007391963928739287911.764382.01370.2493150.05120.9275486382470063824759200400592004
15e+007392873937939379922.01372.265750.2520550.05120.918676452600064526059278100592781
15e+007393793947139471922.265752.517810.2520550.05120.9098776452600064526058710800587108
15e+007394713956239562912.517812.767120.2493150.05120.9012636382470063824757522800575228
15e+007395623965339653912.767123.016440.2493150.05120.892736382470063824756978200569782
15e+007396533974539745923.016443.268490.2520550.05120.8841856452600064526057052900570529
15e+007397453983939839943.268493.526030.2575340.05120.8755396592880065928857723200577232
15e+007398393992739927883.526033.767120.2410960.05120.8675216172050061720553543900535439
15e+007399274001840018913.767124.016440.2493150.05120.8593086382470063824754845000548450
15e+007400184011240112944.016444.273970.2575340.05120.8509056592880065928856099100560991
15e+007401124020340203914.273974.523290.2493150.05120.8428496382470063824753794500537945



Copyright (c) 2003-2007 CapeTools - All Rights Reserved.