summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@serenitascapital.com>2016-11-04 18:09:12 -0400
committerGuillaume Horel <guillaume.horel@serenitascapital.com>2016-11-04 18:09:12 -0400
commitd49d5c4a7c1ab00950c19f5980624c9896026d83 (patch)
tree140ce50ce73fe4eeba9bbc49ce5578ed079590f9
parenta65eaf7a6d72508bc5368a6adbfe415ca3967f13 (diff)
downloadpyisda-d49d5c4a7c1ab00950c19f5980624c9896026d83.tar.gz
fix pickling
-rw-r--r--pyisda/legs.pyx2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyisda/legs.pyx b/pyisda/legs.pyx
index a2d9d0d..5665e43 100644
--- a/pyisda/legs.pyx
+++ b/pyisda/legs.pyx
@@ -109,7 +109,7 @@ cdef class FeeLeg:
def __reduce__(self):
return (self.__class__, (TDate_to_pydate(self._thisptr.accStartDates[0]),
- TDate_to_pydate(self._thisptr.accEndDates[self._thisptr.nbDates-1]),
+ TDate_to_pydate(self._thisptr.payDates[self._thisptr.nbDates-1]),
<int>self._thisptr.accrualPayConv,
self._thisptr.notional,
self._thisptr.couponRate,