Skip to content

Commit

Permalink
added some swaptions
Browse files Browse the repository at this point in the history
  • Loading branch information
nhaga committed Feb 1, 2020
1 parent 594dc6e commit eb2dc61
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions docs/instruments/swaptions.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,40 @@
Swaptions
*********

**Exercises**

- `ql.EuropeanExercise(start)`
- `ql.AmericanExercise(earliestDate, latestDate)`
- `ql.BermudanExercise(dates)`

**Settlement**

- `ql.Settlement.Cash`
- `ql.Settlement.CollateralizedCashPrice`
- `ql.Settlement.ParYieldCurve`
- `ql.Settlement.Physical`
- `ql.Settlement.PhysicalCleared`
- `ql.Settlement.PhysicalOTC`


Swaption
--------

.. function:: ql.Swaption(swap, exercise, settlement=PhysicalOTC)

.. code-block:: python
calendar = ql.TARGET()
today = ql.Date().todaysDate()
exerciseDate = calendar.advance(today, ql.Period('5y'))
exercise = ql.EuropeanExercise(exerciseDate)
swap = ql.MakeVanillaSwap(ql.Period('5y'), ql.Euribor6M(), 0.05, ql.Period('5y'))
swaption = ql.Swaption(swap, exercise)
Nonstandard Swaption
--------------------


FloatFloatSwaption
------------------

0 comments on commit eb2dc61

Please sign in to comment.