-
Notifications
You must be signed in to change notification settings - Fork 192
/
_swap_index.pxd
64 lines (58 loc) · 2.99 KB
/
_swap_index.pxd
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
"""
Copyright (C) 2011, Enthought Inc
Copyright (C) 2011, Patrick Henaff
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the license for more details.
"""
include '../types.pxi'
from libcpp cimport bool
from libcpp.string cimport string
from quantlib.currency._currency cimport Currency
from quantlib.handle cimport shared_ptr, Handle
from quantlib.indexes._interest_rate_index cimport InterestRateIndex
from quantlib.indexes._ibor_index cimport IborIndex, OvernightIndex
from quantlib.instruments._vanillaswap cimport VanillaSwap
from quantlib.instruments._overnightindexedswap cimport OvernightIndexedSwap
from quantlib.termstructures._yield_term_structure cimport YieldTermStructure
from quantlib.time._calendar cimport BusinessDayConvention
from quantlib.time._date cimport Date
from quantlib.time._period cimport Period
from quantlib.time._calendar cimport Calendar
from quantlib.time._daycounter cimport DayCounter
from quantlib.cashflows.rateaveraging cimport RateAveraging
cdef extern from 'ql/indexes/swapindex.hpp' namespace 'QuantLib':
cdef cppclass SwapIndex(InterestRateIndex):
SwapIndex(string& familyName,
Period& tenor,
Natural settlementDays,
Currency currency,
Calendar& calendar,
Period& fixedLegTenor,
BusinessDayConvention fixedLegConvention,
DayCounter& fixedLegDayCounter,
shared_ptr[IborIndex]& iborIndex) nogil
SwapIndex(const string& familyName,
const Period& tenor,
Natural settlementDays,
Currency currency,
const Calendar& fixingCalendar,
const Period& fixedLegTenor,
BusinessDayConvention fixedLegConvention,
const DayCounter& fixedLegDayCounter,
const shared_ptr[IborIndex]& iborIndex,
const Handle[YieldTermStructure]& discountingTermStructure) nogil
shared_ptr[VanillaSwap] underlyingSwap(const Date& fixingDate)
shared_ptr[IborIndex] iborIndex()
Handle[YieldTermStructure] forwardingTermStructure() except +
Handle[YieldTermStructure] discountingTermStructure() except +
cdef cppclass OvernightIndexedSwapIndex(SwapIndex):
OvernightIndexedSwapIndex(string& familyName,
Period& tenor,
Natural settlementDays,
Currency currency,
shared_ptr[OvernightIndex]& overnightIndex,
bool telescopic_value_dates, # = False
RateAveraging averaging_method) nogil # = RateAveraing.Compound
shared_ptr[OvernightIndex] overnight_index()
shared_ptr[OvernightIndexedSwap] underlying_swap(const Date& fixing_date)