diff options
| author | Guillaume Horel <guillaume.horel@serenitascapital.com> | 2016-07-11 10:41:44 -0400 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@serenitascapital.com> | 2016-07-11 16:21:24 -0400 |
| commit | 0059feac1aa6d44be9e0f9fdcb7fdf03779eddbc (patch) | |
| tree | 1574d7263af3271f8cb0b31ac0ab690ea7ad6eb3 /curve.pxd | |
| parent | 36f6bec51667a7df7606eba7d53879dca54a1575 (diff) | |
| download | pyisda-0059feac1aa6d44be9e0f9fdcb7fdf03779eddbc.tar.gz | |
add a consctructor for ZeroCurve and rename it to YieldCurve
Diffstat (limited to 'curve.pxd')
| -rw-r--r-- | curve.pxd | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -87,6 +87,11 @@ cdef extern from "isda/tcurve.h": cdef extern from "isda/cxzerocurve.h": double JpmcdsZeroPrice(TCurve* curve, TDate date) +cdef extern from "isda/cfinanci.h": + int JpmcdsDiscountToRateYearFrac(double discount, # (I) Discount factor + double yearFraction, # (I) See JpmcdsDayCountFraction + double basis, # (I) Basis for the rate + double *rate); cdef enum Basis: CONTINUOUS = 5000 DISCOUNT_RATE = 512 @@ -97,7 +102,7 @@ cdef enum Basis: cdef class Curve: cdef TCurve* _thisptr -cdef class ZeroCurve(Curve): +cdef class YieldCurve(Curve): cdef TDate* _dates cdef size_t _ninstr |
