#include "cx.h"
#include "stub.h"
Functions | |
EXPORT int | JpmcdsCdsoneUpfrontCharge (TDate today, TDate valueDate, TDate benchmarkStartDate, TDate stepinDate, TDate startDate, TDate endDate, double couponRate, TBoolean payAccruedOnDefault, TDateInterval *dateInterval, TStubMethod *stubType, long accrueDCC, long badDayConv, char *calendar, TCurve *discCurve, double oneSpread, double recoveryRate, TBoolean payAccruedAtStart, double *upfrontCharge) |
Computes the upfront charge for a flat spread par curve. | |
EXPORT int | JpmcdsCdsoneSpread (TDate today, TDate valueDate, TDate benchmarkStartDate, TDate stepinDate, TDate startDate, TDate endDate, double couponRate, TBoolean payAccruedOnDefault, TDateInterval *dateInterval, TStubMethod *stubType, long accrueDCC, long badDayConv, char *calendar, TCurve *discCurve, double upfrontCharge, double recoveryRate, TBoolean payAccruedAtStart, double *oneSpread) |
Computes the flat spread required to match the upfront charge. |
EXPORT int JpmcdsCdsoneSpread | ( | TDate | today, | |
TDate | valueDate, | |||
TDate | benchmarkStartDate, | |||
TDate | stepinDate, | |||
TDate | startDate, | |||
TDate | endDate, | |||
double | couponRate, | |||
TBoolean | payAccruedOnDefault, | |||
TDateInterval * | dateInterval, | |||
TStubMethod * | stubType, | |||
long | accrueDCC, | |||
long | badDayConv, | |||
char * | calendar, | |||
TCurve * | discCurve, | |||
double | upfrontCharge, | |||
double | recoveryRate, | |||
TBoolean | payAccruedAtStart, | |||
double * | oneSpread | |||
) |
Computes the flat spread required to match the upfront charge.
benchmarkStartDate | start date of benchmark CDS for internal clean spread bootstrapping | |
startDate | CDS start date, can be in the past |
EXPORT int JpmcdsCdsoneUpfrontCharge | ( | TDate | today, | |
TDate | valueDate, | |||
TDate | benchmarkStartDate, | |||
TDate | stepinDate, | |||
TDate | startDate, | |||
TDate | endDate, | |||
double | couponRate, | |||
TBoolean | payAccruedOnDefault, | |||
TDateInterval * | dateInterval, | |||
TStubMethod * | stubType, | |||
long | accrueDCC, | |||
long | badDayConv, | |||
char * | calendar, | |||
TCurve * | discCurve, | |||
double | oneSpread, | |||
double | recoveryRate, | |||
TBoolean | payAccruedAtStart, | |||
double * | upfrontCharge | |||
) |
Computes the upfront charge for a flat spread par curve.
benchmarkStartDate | start date of benchmark CDS for internal clean spread bootstrapping | |
startDate | CDS start date, can be in the past |