Skip to content

Commit

Permalink
Add warnings to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lballabio committed Mar 28, 2024
1 parent ebf1f88 commit 9b4efa3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
6 changes: 6 additions & 0 deletions ql/instruments/swaption.hpp
Expand Up @@ -59,6 +59,12 @@ namespace QuantLib {
//! %Swaption class
/*! \ingroup instruments
\warning it's possible to pass an overnight-indexed swap to
the constructor, but the only engine to fully support
it is BlackSwaptionEngine; other engines will treat
it as a vanilla swap. This is at best a decent
proxy, at worst simply wrong. Use with caution.
\test
- the correctness of the returned value is tested by checking
that the price of a payer (resp. receiver) swaption
Expand Down
9 changes: 7 additions & 2 deletions ql/models/shortrate/calibrationhelpers/swaptionhelper.hpp
Expand Up @@ -32,8 +32,13 @@

namespace QuantLib {

//! calibration helper for ATM swaption

//! calibration helper for interest-rate swaptions
/*! \warning passing an overnight index to the constructor will
result in an overnight-indexed swap being built, but
model-based engines will treat it as a vanilla swap.
This is at best a decent proxy, at worst simply wrong.
Use with caution.
*/
class SwaptionHelper : public BlackCalibrationHelper {
public:
SwaptionHelper(const Period& maturity,
Expand Down

0 comments on commit 9b4efa3

Please sign in to comment.