diff options
| author | Guillaume Horel <guillaume.horel@serenitascapital.com> | 2016-07-06 11:05:46 -0400 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@serenitascapital.com> | 2016-07-06 11:05:46 -0400 |
| commit | e61c2ea1409c9579f6a2020f382db480f58be538 (patch) | |
| tree | 8e98cb1217591de3d96c786c64440ccf4aa8c753 /curve.pxd | |
| parent | cd7c2f612050e692e804b4f51b7180ab540bbc59 (diff) | |
| download | pyisda-e61c2ea1409c9579f6a2020f382db480f58be538.tar.gz | |
add new constructor
Diffstat (limited to 'curve.pxd')
| -rw-r--r-- | curve.pxd | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -77,10 +77,23 @@ cdef extern from "isda/cds.h": cdef extern from "isda/tcurve.h": void JpmcdsFreeTCurve(TCurve* curve) + TCurve* JpmcdsMakeTCurve(TDate baseDate, + TDate *dates, + double *rates, + int numPts, + double basis, + long dayCountConv); cdef extern from "isda/cxzerocurve.h": double JpmcdsZeroPrice(TCurve* curve, TDate date) +cdef enum Basis: + CONTINUOUS = 5000 + DISCOUNT_RATE = 512 + SIMPLE_BASIS = 0 + ANNUAL_BASIS = 1 + DISCOUNT_FACTOR = -2 + cdef class Curve: cdef TCurve* _thisptr |
