From 3e0ffc7f75c21edcfda57883396efc6486a5934d Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Mon, 8 Aug 2016 14:48:03 -0400 Subject: add base_date property --- pyisda/curve.pyx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyisda/curve.pyx b/pyisda/curve.pyx index 699666a..6eaf854 100644 --- a/pyisda/curve.pyx +++ b/pyisda/curve.pyx @@ -31,6 +31,10 @@ cdef class Curve: 'basis': self._thisptr.fBasis, 'day_count_convention': dcc_tostring(self._thisptr.fDayCountConv), 'data': fArray_to_list(self._thisptr.fArray, self._thisptr.fNumItems)} + @property + def base_date(self): + return TDate_to_pydate(self._thisptr.fBaseDate) + cdef fArray_to_list(TRatePt* fArray, int fNumItems): cdef size_t i -- cgit v1.2.3-70-g09d2