streamcf.h File Reference

#include "bastypes.h"
#include "ldate.h"
#include "schedule.h"
#include "cashflow.h"

Data Structures

struct  TStubRates
struct  TStreamFloat
struct  TStreamFixed

Functions

TCashFlowListJpmcdsNewStreamFloatCFLGen (TCurve *zeroCurve, long zcInterpType, TStreamFloat *stream, long rateBadDayConv, char *holidayFile)
 Calculates the cashflows for a floating stream of a swap.
TCashFlowListJpmcdsNewStreamFixedCFL (TDate valueDate, TStreamFixed *stream)
 Calculates the cashflows for a fixed stream of a swap.
int JpmcdsGetFixedCouponRates (TDate valueDate, TStreamFixed *stream, double *couponRates)
 Given one stream of a swap, this function estimates the rates for each coupon.
TStreamFloat * JpmcdsNewStreamFloat (TCouponDateList *dl, TSwapType swapType, double principal, long payDayCountConv, long flags, TStubRates *firstCoupon, TStubRates *finalCoupon, double averSoFar, double compSoFar, TFloatRate *floatingRate)
 Makes a new TStreamFloat.
TStreamFixed * JpmcdsNewStreamFixed (TCouponDateList *dl, TSwapType swapType, double principal, long payDayCountConv, long flags, double firstCoupon, double finalCoupon, double fixedRate)
 Makes a new TStreamFixed.
TStreamFloat * JpmcdsNewEmptyTStreamFloat (int numPeriods)
 Creates a new empty TStreamFloat.
TStreamFixed * JpmcdsNewEmptyTStreamFixed (int numPeriods)
 Creates a new empty TStreamFixed.
void JpmcdsFreeTStreamFloat (TStreamFloat *theStream)
 Frees a floating stream.
void JpmcdsFreeTStreamFixed (TStreamFixed *theStream)
 Frees a fixed stream.
int JpmcdsFloatingCashFlowGen (TCurve *zeroCurve, long zcInterpType, TDate indexStartDate, TDate indexMatDate, TDateInterval payInterval, TCouponDates *couponDates, long rateDayCountConv, long payDayCountConv, double notional, double spread, double *cashflow)
 Same as JpmcdsFloatingCashFlow, except user can choose the zero curve interpolation type.

Detailed Description


Function Documentation

TCashFlowList* JpmcdsNewStreamFixedCFL ( TDate  valueDate,
TStreamFixed *  stream 
)

Calculates the cashflows for a fixed stream of a swap.

Principals are included as per specification in the stream->flags field.

TCashFlowList* JpmcdsNewStreamFloatCFLGen ( TCurve zeroCurve,
long  zcInterpType,
TStreamFloat *  stream,
long  rateBadDayConv,
char *  holidayFile 
)

Calculates the cashflows for a floating stream of a swap.

Principals are included as per specification in the stream->flags field.


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.