summaryrefslogtreecommitdiffstats
path: root/legs.pyx
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@serenitascapital.com>2016-07-12 10:46:43 -0400
committerGuillaume Horel <guillaume.horel@serenitascapital.com>2016-07-12 10:46:43 -0400
commit1f1d6128c664ee4e79ad01bdd914583d905eb209 (patch)
treebea954f112c66a4d2a2e159ebbb9536654f59d95 /legs.pyx
parent73f9575423454d8ae7724db639fd6fda39c36f55 (diff)
downloadpyisda-1f1d6128c664ee4e79ad01bdd914583d905eb209.tar.gz
add method to compute accrued
Diffstat (limited to 'legs.pyx')
-rw-r--r--legs.pyx5
1 files changed, 5 insertions, 0 deletions
diff --git a/legs.pyx b/legs.pyx
index 2df83e3..55f1fcb 100644
--- a/legs.pyx
+++ b/legs.pyx
@@ -93,6 +93,11 @@ cdef class FeeLeg:
else:
raise ValueError
+ def accrued(self, today):
+ cdef double ai
+ FeeLegAI(self._thisptr, pydate_to_TDate(today), &ai)
+ return ai
+
def __dealloc__(self):
if self._thisptr is not NULL:
JpmcdsFeeLegFree(self._thisptr)