cx.h File Reference

#include "bastypes.h"

Data Structures

struct  TContingentLeg
 Contingent leg (a.k.a. protection leg). More...
struct  TFeeLeg
 Fee leg with fixed payments. More...

Enumerations

enum  TProtPayConv { PROT_PAY_DEF, PROT_PAY_MAT }
 Protection payment convention for CDS in case of default. More...
enum  TAccrualPayConv { ACCRUAL_PAY_NONE, ACCRUAL_PAY_ALL }
 Accrual payment convention for CDS in case of default. More...

Functions

TFeeLegJpmcdsFeeLegMakeEmpty (int nbDates)
 Memory allocator for TFeeLeg.
TContingentLegJpmcdsContingentLegMake (TDate startDate, TDate endDate, double notional, TProtPayConv payType, TBoolean protectStart)
 Constructor for TContingentLeg.
void JpmcdsFeeLegFree (TFeeLeg *p)
 Destructor for TFeeLeg.

Detailed Description


Enumeration Type Documentation

Accrual payment convention for CDS in case of default.

Enumerator:
ACCRUAL_PAY_NONE  No accrual in case of default.
ACCRUAL_PAY_ALL  Interest since the last accrual date is due in case of default.

Protection payment convention for CDS in case of default.

Enumerator:
PROT_PAY_DEF  Protection payment is due at default.
PROT_PAY_MAT  Protection payment is only due at the maturity of the protection leg.


Function Documentation

TFeeLeg* JpmcdsFeeLegMakeEmpty ( int  nbDates  ) 

Memory allocator for TFeeLeg.

Parameters:
nbDates Defines array size for accStartDates, accEndDates, payDates.


Distributed by BN Algorithms Ltd -- consulting in quantitative finance, mathematical algorithms and software implementations. CDS Home Page. For enquires contact webs@bnikolic.co.uk.
This documentation is derived from ISDA CDS Standard Model version 1.7. You can get a copy of the original ISDA code at www.bnikolic.co.uk. This is a derivative work under the terms of the ISDA CDS Standard Model Public License. BN Algorithms Ltd licenses this work to you solely for on-screen viewing on your own computer. Making copies and further distribution of this work is prohibited.
This documentation is provided "as-is", without warranty of any kind, either expressed or implied, including, without limitation, warranties that the documentation is free of defects, merchantable, fit for a particular purpose or non-infringing. the entire risk as to the quality of the documentation is with you. Should this documentation prove defective in any respect, you (not the licensor) assume the cost of any necessary correction. This disclaimer of warranty constitutes an essential part of this license.