blob: c2c23598a5c48c0c789da886018e59e84c489fe4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
cdef extern from "isda/zerocurve.h":
ctypedef long int TDate
ctypedef struct TCurve:
pass
ctypedef struct TDateInterval:
pass
TCurve* JpmcdsBuildIRZeroCurve(TDate valueDate, char* instrNames,
TDate* dates, double* rates, long nInstr,
long mmDCC, long fixedSwapFreq, long floatSwapFreq,
long fixedSwapDCC, long floatSwapDCC,
long badDayConv, char* holidayFile)
cdef extern from "isda/tcurve.h":
void JpmcdsFreeTCurve(TCurve* curve)
cdef extern from "isda/cxzerocurve.h":
double JpmcdsZeroPrice(TCurve* curve, TDate date)
cdef class ZeroCurve:
cdef TCurve* _thisptr
cdef TDate* _dates
|