summaryrefslogtreecommitdiffstats
path: root/date.pxd
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@serenitascapital.com>2016-06-29 12:25:46 -0400
committerGuillaume Horel <guillaume.horel@serenitascapital.com>2016-06-29 12:25:46 -0400
commitc4b8148b8419ca1e281a8e69aeea578e057c4c4d (patch)
tree461e6522891fdffe4a5075ed7d21b9d9b7065214 /date.pxd
parented43f3874ccbe7782595b225821230cfca02ceb7 (diff)
downloadpyisda-c4b8148b8419ca1e281a8e69aeea578e057c4c4d.tar.gz
work in progress
Diffstat (limited to 'date.pxd')
-rw-r--r--date.pxd3
1 files changed, 2 insertions, 1 deletions
diff --git a/date.pxd b/date.pxd
index 22ea9f6..c17a786 100644
--- a/date.pxd
+++ b/date.pxd
@@ -7,6 +7,7 @@ ctypedef long TDate
cdef extern from "isda/convert.h":
int JpmcdsStringToDateInterval(char* input, char* label, TDateInterval* interval)
int JpmcdsMakeDateInterval(int num_periods, char period_type, TDateInterval* interval)
+ char* JpmcdsFormatDate(TDate date)
cdef extern from "isda/date_sup.h":
int JpmcdsDateIntervalToFreq(TDateInterval* interval, double* freq)
@@ -18,7 +19,7 @@ cdef extern from "isda/ldate.h":
int JpmcdsDateFwdThenAdjust(TDate date, TDateInterval* interval, long badDayMethod,
char* holidayFile, TDate *advAdjustedDate)
-cdef enum BadDay:
+cpdef public enum BadDay:
FOLLOW = <long>'F'
PREVIOUS = <long>'P'
NONE = <long>'N'