Skip to content

Releases: lballabio/QuantLib

1.32

20 Oct 07:33
v1.32
3f9a4f2
Compare
Choose a tag to compare

Downloads:

Changes for QuantLib 1.32:

QuantLib 1.32 includes 34 pull requests from several contributors.

Some of the most notable changes are included below. A detailed list of changes is available in ChangeLog.txt and at https://github.com/lballabio/QuantLib/milestone/29?closed=1.

Portability

  • Possibly breaking change: the protected evaluationDate_ data member of the SwaptionVolatilityDiscrete class was renamed to cachedReferenceDate_.
  • Future end of support: we're targeting the future release 1.35 as the last to support Visual C++ 2015, g++ up to version 6.x, and clang up to version 4; support for those compilers will be dropped in release 1.36, about one year from now. From that point onwards, this will allows us to enable the use of C++17 in the code base.
  • Future end of support: at the same time as the above, we'll also remove the configure switch that allows to use boost::tuple, boost::function and boost::bind instead of their std counterparts; starting from this release, the std classes are already the default.
  • Reorganized the CMake presets; thanks to the XAD team (@auto-differentiation-dev).

Cash flows

  • All cash flows are now lazy; thanks to Peter Caspers (@pcaspers).

Instruments

  • Overnight-indexed swaps can now have different schedules and nominals on the two legs; thanks to Tom Anderson (@tomwhoiscontrary).
  • Margrabe options, compound options and chooser options were moved from experimental to core (@lballabio).
  • Introduced common base class FixedVsFloatingSwap for vanilla swap and overnight-indexed swaps; this will be used in the future to help a few existing swap engines support OIS (@lballabio).
  • Added optional redemptions argument to amortizing bond constructors. This allows them to be used for pools of loans where a certain proportion of the underlying loans are subject to defaults and losses. Thanks to Gyan Sinha (@gyansinha).
  • It is now possible to manually prune the notification tree for swaps and bonds if one knows that the cashflows won't change pricer; thanks to Peter Caspers (@pcaspers).

Models

  • Fixed the algorithm to add instruments to the calibration set of the Markov model; thanks to Peter Caspers (@pcaspers) for the fix and Giuseppe Trapani (@lePidduN7) for the heads-up.

Term structures

  • Time-to-date conversion in some swaption volatility classes could return the wrong date before the first exercise date; this is now fixed, thanks to Peter Caspers (@pcaspers).
  • It's now possible to specify the maximum number of iteration for the solver inside a bootstrapped term structure; thanks to Jonathan Sweemer (@sweemer) for the change and Daniel Ángeles Ortiz (@Danie8) for the heads-up.
  • Reduced the number of notifications for bootstrap helpers; thanks to Peter Caspers (@pcaspers).

Random numbers

  • Added the xoshiro265** random-number generator; thanks to Ralf Konrad (@ralfkonrad). It is faster than the Mersenne Twister and might be used as default in the future.

Examples

  • The code of the examples has been modernized a bit; thanks to Jonathan Sweemer (@sweemer).

Patterns

  • Avoided a possible crash when using observables in a multi-threaded setting; thanks to Peter Caspers (@pcaspers).

Deprecated features

  • Removed features deprecated in version 1.27:
    • The QL_NULL_INTEGER, QL_NULL_REAL, QL_NOEXCEPT, QL_CONSTEXPR and QL_USE_STD_UNIQUE_PTR macros.
    • The MultiCurveSensitivities class.
    • The constant, identity, square, cube, fourth_power, add, subtract, subtract_from, multiply_by, divide, divide_by, less_than, greater_than, greater_or_equal_to, not_zero, not_null, everywhere, nowhere, equal_within, clipped_function, clip, composed_function, compose, binary_compose3_function and compose3 functors.
    • The PdeShortRate, ShoutCondition, FDShoutCondition, FDStepConditionEngine and FDEngineAdapter classes from the old finite-differences framework.
    • The dsd::inner_product function.
    • The FDDividendEngineBase, FDDividendEngineMerton73, FDDividendEngineShiftScale and FDDividendEngine pricing engines.
    • The empty headers ql/auto_ptr.hpp, ql/math/initializers.hpp, ql/methods/finitedifferences/americancondition.hpp, ql/methods/finitedifferences/onefactoroperator.hpp, ql/pricingengines/vanilla/fddividendshoutengine.hpp, ql/pricingengines/vanilla/fdshoutengine.hpp and ql/utilities/disposable.hpp.
  • Deprecated the overload of the withReplication method in the DigitalIborLeg, DigitalCmsLeg and DigitalCmsSpreadLeg classes that takes no arguments; use the other overload instead.
  • Deprecated the StandardFiniteDifferenceModel, StandardSystemFiniteDifferenceModel and StandardStepCondition typedefs; define your own typedefs if needed.
  • Deprecated the FDVanillaEngine, FDMultiPeriodEngine, StepConditionSet, ParallelEvolverTraits, ParallelEvolver and SampledCurveclasses and the BSMTermOperator and SampledCurveSet typedefs; use the new finite-differences framework instead.
  • Deprecated the QL_NULL_FUNCTION macro; to check if a function is empty, use it in a bool context instead.
  • Deprecated the now empty headers ql/experimental/exoticoptions/margrabeoption.hpp, ql/experimental/exoticoptions/analyticcomplexchooserengine.hpp, ql/experimental/exoticoptions/analyticeuropeanmargrabeengine.hpp, ql/experimental/exoticoptions/analyticcompoundoptionengine.hpp, ql/experimental/exoticoptions/simplechooseroption.hpp, ql/experimental/exoticoptions/compoundoption.hpp, ql/experimental/exoticoptions/analyticamericanmargrabeengine.hpp, ql/experimental/exoticoptions/analyticsimplechooserengine.hpp, ql/experimental/exoticoptions/complexchooseroption.hpp, ql/experimental/termstructures/multicurvesensitivities.hpp, ql/methods/finitedifferences/shoutcondition.hpp, ql/methods/finitedifferences/pdeshortrate.hpp, ql/pricingengines/vanilla/fddividendengine.hpp, ql/pricingengines/vanilla/fdstepconditionengine.hpp, ql/pricingengines/vanilla/fdconditions.hpp and ql/models/marketmodels/duffsdeviceinnerproduct.hpp.

Thanks go also to Jonathan Sweemer (@sweemer), Ralf Konrad (@ralfkonrad), Klaus Spanderen (@klausspanderen), Peter Caspers (@pcaspers), Tom Anderson (@tomwhoiscontrary), Fredrik Gerdin Börjesson (@gbfredrik), Guillaume Horel (@thrasibule) and the XAD team (@auto-differentiation-dev) for a number of smaller fixes and improvements.

New Contributors

Full Changelog: v1.31.1...v1.32

1.31.1

24 Jul 08:23
v1.31.1
c5e65ea
Compare
Choose a tag to compare

Downloads:

Changes for QuantLib 1.31.1:

QuantLib 1.31.1 is a bug-fix release for QuantLib 1.31.

It fixes a regression that could cause a segmentation fault when bootstrapping an interest-rate curve using OIS rates.

Details are available at https://github.com/lballabio/QuantLib/milestone/30?closed=1.

Full Changelog: v1.31...v1.31.1

1.31

18 Jul 12:39
v1.31
3855164
Compare
Choose a tag to compare

Downloads:

Changes for QuantLib 1.31:

QuantLib 1.31 includes a record 68 pull requests from several contributors.

Some of the most notable changes are included below.
A detailed list of changes is available in ChangeLog.txt and at https://github.com/lballabio/QuantLib/milestone/28?closed=1.

Portability

  • Future end of support: as announced in the notes for the previous release, after this release using std::tuple, std::function and std::bind (instead of their boost counterparts) will become the default. If you're using ext::tuple etc. in your code (which is suggested), this should be a transparent change. If not, you'll still be able to choose the boost versions via a configure switch for a while; but we do suggest you start using ext::tuple etc. in the meantime.
  • The cmake build now creates (but doesn't install) a quantlib-config script that can be used to retrieve flags for compiling QuantLib-dependent projects; thanks to Christian Köhnenkamp (@kohnech).
  • A number of Boost classes and functions only used internally were replaced by their standard-library equivalent; thanks to Jonathan Sweemer (@sweemer).

Patterns

  • Optional change of behavior: by default, the LazyObject class forwards only one notification after recalculating and silently ignores the others. In some edge cases, this could lead to objects not being updated. It's now possible to enable a different behavior where all notifications are forwarded; the new behavior can be chosen at compile time via the configure option --disable-faster-lazy-objects (or disabling QL_FASTER_LAZY_OBJECTS in cmake or userconfig.hpp) or at run time by calling LazyObject::Defaults::instance().alwaysForwardNotifications(). This might cause a slow down, so you're invited to try it out and report on the mailing list. If there are no problems, the new behavior might become the default in future releases. Also, a new configure option --enable-throwing-in-cycles (QL_THROW_IN_CYCLES in cmake or userconfig.hpp) is optionally available; when both this option and the new behavior are enabled, notifications cycles involving a lazy object will throw an exception. It is suggested to try enabling the option and removing such loops, if any. Thanks to Peter Caspers (@pcaspers) for the change and to Ralf Konrad (@ralfkonrad), Jonathan Sweemer (@sweemer) and GitHub user @djkrystul for feedback.

Date/time

  • Change of behavior: when the end-of-month option is true, the constructor of a schedule no longer adjust to the end of their month the effective date and the termination date if they were passed explicitly. Thanks to Hristo Raykov (@HristoRaykov).
  • Added separate US SOFR calendar to manage days that are business days for the US government bond market but in which SOFR doesn't fix; for instance, Good Friday 2023 (@lballabio). Thanks to Tom Anderson (@tomwhoiscontrary) for reporting the issue.
  • Fixed some rolling rules for South Korean calendar; thanks to Jonghee Lee (@nistick21).
  • Fixed incorrect 2023 holidays for Hong Kong calendar; thanks to Fredrik Gerdin Börjesson (@gbfredrik).
  • Added Hong Kong holidays for 2021-2024; thanks to Rémy Frèrebeau (@rfrerebe-stx) and Binrui Dong (@BrettDong).
  • Added Singapore holidays for 2019-2023; thanks to Rémy Frèrebeau (@rfrerebe-stx).
  • Added Indian holidays for 2021-2025; thanks to Fredrik Gerdin Börjesson (@gbfredrik).
  • Added Taiwanese holidays for 2020-2023; thanks to @jsmx.
  • Added a few election days for South African and South Korean calendar; thanks to Fredrik Gerdin Börjesson (@gbfredrik).
  • Updated Danish calendar; starting in 2024, General Prayer Day will no longer be a holiday. Thanks to Fredrik Gerdin Börjesson (@gbfredrik).
  • Fixed a few holidays in Finland and Singapore calendars; Thanks to Fredrik Gerdin Börjesson (@gbfredrik).
  • More day counters (Act/364, Act/365.25, Act/366) now take into account intraday resolution when enabled; thanks to Klaus Spanderen (@klausspanderen).

Cash flows

  • The accrued amount for CPI coupons is now correctly based on the index ratio at settlement date. An inspector for retrieving the index ratio at a given date was also added (@lballabio).
  • Enabled the use of normal volatilities in Hagan pricer for CMS coupons; thanks to Andre Miemiec (@amiemiec).
  • Floating-rate coupons are now lazy; thanks to Peter Caspers (@pcaspers).

Indexes

  • When passed a tenor of 7 or 14 business days, interest-rate indexes would wrongly convert it to 1 or 2 weeks. This is now fixed (@lballabio). Thanks to Eugene Toder (@eltoder) for reporting the issue.
  • Added DESTR and SWESTR indexes; thanks to Fredrik Gerdin Börjesson (@gbfredrik).
  • Added CORRA index; thanks to @AND2797.
  • When an YoY inflation index is calculated as a ratio, the underlying inflation index is available through an inspector and its fixings are used to calculate the fixing of the YoY index (@lballabio).

Instruments

  • Instruments now register automatically with the global evaluation date and are notified when it changes. This makes sense in general (if the evaluation date changes, you probably want to recalculate) and can also help avoid some edge cases when lazy objects only forward their first notification (@lballabio).
  • Allowed passing a schedule without a regular tenor to callable fixed-rate bonds; thanks to Hristo Raykov (@HristoRaykov) for the fix and to @OleBueker for reporting the issue.
  • Reorganized the constructors of FRA instruments; thanks to Jake Heke (@jakeheke75).

Term structures

  • Ensures that upfront CDS helpers update correctly when the global evaluation date changes; thanks to Andrea Pellegatta (@andrea85p) for the fix and to @bkhoor for reporting the issue.
  • Allow more maturities for SOFR quarterly contract in SOFR futures rate helper; thanks to Jake Heke (@jakeheke75).
  • Added constructor for date-dependent strikes to StrippedOptionlet; thanks to Peter Caspers (@pcaspers).

Test suite

  • Global settings (such as the evaluation date) are now restored and index fixings are now cleaned automatically at the end of each test case, making it unnecessary to clean them up manually. Thanks to Eugene Toder (@eltoder).
  • The parallel unit-test runner now passes the --run_test=<filter> option down to the underlying Boost.Test implementation. Thanks to Eugene Toder (@eltoder).

Deprecated features

  • Removed features deprecated in version 1.26:

    • The CPICoupon constructor taking a number of fixing days and its indexObservation, adjustedFixing and indexFixing(date) methods.
    • The CPICashFlow constructor taking a fixing date.
    • The withFixingDays methods of CPILeg.
    • The ZeroInflationCashFlow constructor taking a calendar and business-day convention.
    • The LsmBasisSystem::PolynomType typedef and the MakeMCAmericanEngine::withPolynomOrder method.
    • The Observer::set_type and Observable::set_type typedefs.
    • The Curve class.
    • The LexicographicalView class.
    • The Composite class.
    • The DriftTermStructure class.
  • Deprecated the various time_iterator and value_iterator types in TimeSeries, as well as methods returning them. The more general const_iterator and const_reverse_iterator types can be used instead.

  • Deprecated the constructors of CPICoupon taking a spread, as well as its spread method, its protected spread_ data member, and the withSpreads methods of CPILeg.

  • Deprecated the adjustedFixing method and the protected spread_ data member of CPICouponPricer.

  • Renamed BlackVanillaOptionPricer to MarketQuotedOptionPricer and deprecated the old name.

  • Deprecated a couple of constructors of ForwardRateAgreement.

  • Deprecated the constructor of YoYInflationIndex taking a ratio. Also, deprecated explicit classes for YoY ratio indexes YYGenericCPIr, YYAUCPIr, YYEUHICPr, YYFRHICPr, YYUKRPIr, YYUSCPIr and YYZACPIr.

  • Deprecated the base, increment, decrement, advance and distance_to methods of the step_iterator class.

Thanks go also to Jonathan Sweemer (@sweemer), Jose Garcia (@j053g), Jake Heke (@jakeheke75), Eugene Toder (@eltoder), Binrui Dong (@BrettDong), the Xcelerit Dev Team (@xcelerit-dev), Ralf Konrad (@ralfkonrad), Fredrik Gerdin Börjesson (@gbfredrik) and Tom Anderson (@tomwhoiscontrary) for a number of smaller fixes and improvements.

New Contributors

Full Changelog: QuantLib-v1.30...v1.31

1.30

19 Apr 07:15
QuantLib-v1.30
83e5854
Compare
Choose a tag to compare

Downloads:

Changes for QuantLib 1.30:

QuantLib 1.30 includes 34 pull requests from several contributors.

Some of the most notable changes are included below.
A detailed list of changes is available in ChangeLog.txt and at https://github.com/lballabio/QuantLib/milestone/27?closed=1.

Portability

  • Future end of support: as announced in the notes for the previous release, after this release and the next, using std::tuple, std::function and std::bind (instead of their boost counterparts) will become the default. If you're using ext::tuple etc. in your code (which is suggested), this should be a transparent change. If not, you'll still be able to choose the boost versions via a configure switch for a while; but we do suggest you start using ext::tuple etc. in the meantime.
  • CMake builds now use a stricter warning level by default; thanks to Ralf Konrad (@ralfkonrad).
  • Is it now possible to use std::any and std::optional (and the related std::any_cast and std::nullopt) instead of their boost counterparts by setting new compilation switches; thanks to Jonathan Sweemer (@sweemer). Using the std classes requires C++17. We expect the boost classes to remain the default for a while, but in the meantime we encourage to start using ext::any and ext::optional in preparation for a new default.

Date/time

  • Good Friday 2023 is now a business day for the US government bond calendar; thanks to Anastasiia Shumyk (@ashumyk).
  • Added specialized Australian calendar for ASX; thanks to Trent Maetzold (@trentmaetzold).
  • Fixed Turkish holidays between 2019 and 2023; thanks to Fredrik Gerdin Börjesson (@gbfredrik).
  • Added a few missing holidays to Danish calendar; thanks to Fredrik Gerdin Börjesson (@gbfredrik).
  • Added the Matariki holiday to the New Zealand calendar; thanks to Jake Heke (@jakeheke75).

Cashflows

  • Added a new equity cash flow class to model equity legs in total return swaps; thanks to Marcin Rybacki (@marcin-rybacki). Quanto pricing is also supported.
  • Added an overloaded constructor for CPI coupons that allows to specify a base date instead of a base CPI value; thanks to Matthias Groncki (@mgroncki).

Instruments

  • Added a new total-return swap; thanks to Marcin Rybacki (@marcin-rybacki). An equity-index class was also added to support this instrument.
  • The analytic engine for barrier options would return NaN for low values of volatility; this is now fixed (@lballabio).
  • The VanillaOption and BarrierOption classes can now be used to model vanilla and barrier options with discrete dividends; the future dividends (not being part of the terms and conditions of the contract) should be passed to the pricing engine instead (@lballabio).
  • Added analytical Greeks to Bjerksund-Stensland engine; thanks to Klaus Spanderen (@klausspanderen).

Indexes

  • Added UKHICP inflation index; thanks to Fredrik Gerdin Börjesson (@gbfredrik).

Term structures

  • Renamed SwaptionVolCube1, SwaptionVolCube1x, SwaptionVolCube1a and SwaptionVolCube2 to SabrSwaptionVolatilityCube, XabrSwaptionVolatilityCube, NoArbSabrSwaptionVolatilityCube and InterpolatedSwaptionVolatilityCube, respectively; thanks to Ignacio Anguita (@IgnacioAnguita). The old names are deprecated but still available for a few releases.
  • Ensure that inflation curves are re-bootstrapped correctly when seasonality is added (@lballabio).

Models

  • Moved the Heston SLV model from experimental to main; thanks to Klaus Spanderen (@klausspanderen).

Math

  • Added a few overloads to Array and Matrix operators taking rvalue references for increased speed; thanks to Jonathan Sweemer (@sweemer).

Deprecated features

  • Removed features deprecated in version 1.25:
    • the protected spreadLegValue_ data member of BlackIborCouponPricer;
    • the WulinYongDoubleBarrierEngine alias for SuoWangDoubleBarrierEngine;
    • the settlementDate, incomeDiscountCurve, spotIncome, spotValue, impliedYield and forwardValue methods of ForwardRateAgreement, as well as its protected underlyingIncome_, underlyingSpotValue_, settlementDays_, payoff_ and incomeDiscountCurve_ data members;
    • constructors for InflationTermStructure, ZeroInflationTermStructure, InterpolatedZeroInflationCurve, PiecewiseZeroInflationCurve taking an indexIsInterpolated parameter;
    • the indexIsInterpolated method of InflationTermStructure and its protected indexIsInterpolated_ data member;
    • some overloaded constructors of SofrFutureRateHelper.
  • Deprecated the DividendVanillaOption and DividendBarrierOption classes; use VanillaOption and BarrierOption instead (see above).
  • Deprecated the constructor of AnalyticDividendEuropeanEngine that takes no dividend information; use the other overload instead.
  • Deprecated the names SwaptionVolCube1, SwaptionVolCube1x, SwaptionVolCube1a and SwaptionVolCube2 (see above).
  • Deprecated the protected setCommon method of CappedFlooredYoYInflationCoupon.

Thanks go also to Jonathan Sweemer (@sweemer), the Xcelerit Dev Team (@xcelerit-dev), Fredrik Gerdin Börjesson (@gbfredrik), Klaus Spanderen (@klausspanderen) and Peter Caspers (@pcaspers) for a number of smaller fixes and improvements, and to Matthias Groncki (@mgroncki) and @lukey8767 for raising issues.

New Contributors

Full Changelog: QuantLib-v1.29...QuantLib-v1.30

1.29

17 Jan 09:32
QuantLib-v1.29
3857747
Compare
Choose a tag to compare

Downloads:

Changes for QuantLib 1.29:

QuantLib 1.29 includes 42 pull requests from several contributors.

Some of the most notable changes are included below.
A detailed list of changes is available in ChangeLog.txt and at https://github.com/lballabio/QuantLib/milestone/26?closed=1.

Portability

  • End of support: as announced in the notes for the previous release, this release no longer manages thread-local singletons via a user-provided sessionId function, and therefore the latter is no longer needed. Instead, the code now uses the built-in language support for thread-local variables. Thanks go to Peter Caspers (@pcaspers).
  • Future end of support: as announced in the notes for the previous release, after the next couple of releases, using std::tuple, std::function and std::bind (instead of their boost counterparts) will become the default. If you're using ext::tuple etc. in your code (which is suggested), this should be a transparent change. If not, you'll still be able to choose the boost versions via a configure switch for a while; but we do suggest you start using ext::tuple etc. in the meantime.
  • Replaced internal usage of boost::thread with std::thread; thanks to Jonathan Sweemer (@sweemer). This removed our last dependency on Boost binaries and makes it possible to compile QuantLib using a header-only Boost installation.
  • On Windows, it is now possible to use the MSVC dynamic runtime when using cmake by passing -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDLL on the command line; thanks to Jonathan Sweemer (@sweemer). The static runtime remains the default.
  • It is now possible to build QuantLib with Intel's icpx compiler using cmake; thanks to Jonathan Sweemer (@sweemer). Note that in order to get all the unit tests passing, -fp-model=precise must be added to CMAKE_CXX_FLAGS.

Date/time

  • Updated Chinese holidays for 2023; thanks to Cheng Li (@wegamekinglc).
  • Added in-lieu holiday for Christmas 2022 to South-African calendar; thanks to Joshua Hayes (@JoshHayes).
  • Added King Charles III coronation holiday to UK calendar; thanks to Fredrik Gerdin Börjesson (@gbfredrik).
  • Added holiday for National Day of Mourning to Australian calendar; thanks to Fredrik Gerdin Börjesson (@gbfredrik).

Instruments

  • Added high performance/precision American engine based on fixed-point iteration for the exercise boundary; thanks to Klaus Spanderen (@klausspanderen).
  • Bonds with draw-down (i.e., increasing notionals) are now allowed; thanks to Oleg Kulkov (@Borgomi42 ).
  • Added withIndexedCoupons and withAtParCoupons methods to MakeSwaption for easier initialization; thanks to Ralf Konrad (@ralfkonrad).
  • It is now possible to use the same pricing engine for vanilla and dividend vanilla options, or for barrier and dividend barrier options (@lballabio).

Indexes

  • Creating a zero inflation index as "interpolated" is now deprecated; thanks to Ralf Konrad (@ralfkonrad). The index should only return monthly fixings. Interpolation is now the responsibility of inflation-based coupons.

Term structures

  • The ConstantCPIVolatility constructor can now take a handle to a volatility quote, instead of just an immutable number (@lballabio).

Deprecated features

  • Removed features deprecated in version 1.24:
    • the createAtParCoupons, createIndexedCoupons and usingAtParCoupons methods of IborCoupon;
    • the RiskyBond class and its subclasses RiskyFixedBond and RiskyFloatingBond;
    • the CrossCurrencyBasisSwapRateHelper typedef;
    • the termStructure_ data member of BlackCalibrationHelper;
    • the static baseCurrency and conversionType data members of Money;
    • the nominalTermStructure method and the nominalTermStructure_ data member of InflationTermStructure;
    • the constructor of the UnitedStates calendar not taking an explicit market.
  • Deprecated the argument_type, first_argument_type, second_argument_type and result_type typedefs in a number of classes; use auto or decltype instead.
  • Deprecated the constructors of InflationIndex, ZeroInflationIndex, FRHICP, ZACPI, UKRPI, EUHICP, EUHICPXT, USCPI, AUCPI and GenericCPI taking an interpolated parameter; use another constructor.
  • Deprecated the interpolated method and the interpolated_ data member of InflationIndex.
  • Deprecated the ThreadKey typedef. It was used in the signature of sessionId, which is no longer needed after the changes in the Singleton implementation.
  • Deprecated the rateCurve_ data member of the InflationCouponPricer base class. If you need it, provide it in your derived class.
  • Deprecated the npvbps function taking NPV and BPS as references. Use the overload returning a pair of Reals.

Thanks go also to Matthias Groncki (@mgroncki), Jonathan Sweemer (@sweemer) and Nijaz Kovacevic (@NijazK) for a number of smaller fixes and improvements, to the Xcelerit Dev Team (@xcelerit-dev) for improvements to the automated CI builds, and to Vincenzo Ferrazzanno (@vincferr), @alienbrett, @xuruilong100 and @philippb90 for raising issues.

New Contributors

Full Changelog: QuantLib-v1.28...QuantLib-v1.29

1.28

25 Oct 07:23
QuantLib-v1.28
7bfe85c
Compare
Choose a tag to compare

Downloads:

Changes for QuantLib 1.28:

QuantLib 1.28 includes 33 pull requests from several contributors.

Some of the most notable changes are included below. A detailed list of changes is available in ChangeLog.txt and at https://github.com/lballabio/QuantLib/milestone/24?closed=1.

Portability

  • New language standard: as announced in the notes for the previous release, this release started using some C++14 syntax. This should be supported by most compilers released in the past several years.
  • End of support: as announced in the notes for the previous release, this release is the last to manage thread-local singletons via a user-provided sessionId function. Future releases will use the built-in language support for thread-local variables.
  • Future end of support: after the next two or three releases, using std::tuple, std::function and std::bind (instead of their boost counterparts) will become the default. If you're using ext::tuple etc. in your code (which is suggested), this should be a transparent change. If not, you'll still be able to choose the boost versions via a configure switch for a while.

Date/time

  • Added Act/366 and Act/365.25 day counters; thanks to Ignacio Anguita (@IgnacioAnguita).
  • Added H.M. the Queen's funeral to the UK calendars; thanks to Tomass Wilson (@Wilsontomass).

Instruments

  • Amortizing bonds were moved out of the experimental folder. Also, a couple of utility functions were provided to calculate amortization schedules and notionals.

Pricing engines

  • Fixed results from COSHestonEngine in the case of an option with short time to expiration and deep ITM or deep OTM strike prices; thanks to Ignacio Anguita (@IgnacioAnguita).
  • The ISDA engine for CDS could calculate the fair upfront with the wrong sign; this is now fixed, thanks to Gualtiero Chiaia (@gchiaia).

Term structures

  • The constructor for OISRateHelper now allows to specify the endOfMonth parameter; thanks to Guillaume Horel (@thrasibule).

Finite differences

  • Fixed computation of cds boundaries in LocalVolRNDCalculator; thanks to @mdotlic.

Experimental folder

The ql/experimental folder contains code whose interface is not fully stable, but is released in order to get user feedback. Experimental classes make no guarantees of backward compatibility; their interfaces might change in future releases.

  • Breaking change: the constructor of the CPICapFloorTermPriceSurface class now also takes an explicit interpolation type.
  • Possibly breaking: the protected constructor for CallableBond changes its arguments. If you inherited from this class, you'll need to update your code. If you're using the existing derived bond classes, the change will be transparent.
  • Pricing engines for callable bonds worked incorrectly when the face amount was not 100. This is now fixed.
  • The impliedVolatility method for callable bonds was taking a target NPV, not a price. This implementation is now deprecated, and a new overload was added taking a price in base 100.

Deprecated features

  • Removed features deprecated in version 1.23:
    • the constructors of ZeroCouponInflationSwap and ZeroCouponInflationSwapHelper missing an explicit CPI interpolation type;
    • the constructors of ActualActual and Thirty360 missing an explicit choice of convention, and the constructor of Thirty360 passing an isLastPeriod boolean flag.
  • Deprecated the constructors of FixedRateBond taking an InterestRate instance or not taking a Schedule instance.
  • Deprecated the constructor of FloatingRateBond not taking a Schedule instance.
  • Deprecated the constructors of AmortizingFixedRateBond taking a sinking frequency or a vector of InterestRate instances.
  • Deprecated the constructor of CPICapFloor taking a Handle to an inflation index, and its inflationIndex method returning a Handle. New versions of both were added using shared_ptr instead.
  • Deprecated one of the constructors of SabrSmileSection; a new version was added also taking an optional reference date.
  • Deprecated the old impliedVolatility method for callable bonds; see above.

Thanks go also to Konstantin Novitsky (@novitk), Peter Caspers (@pcaspers), Klaus Spanderen (@klausspanderen), Fredrik Gerdin Börjesson (@gbfredrik) and Dirk Eddelbuettel (@eddelbuettel) for a number of smaller fixes, and to Jonathan Sweemer (@sweemer) for various improvements to the automated CI builds.

New Contributors

Full Changelog: QuantLib-v1.27.1...QuantLib-v1.28

1.27.1

30 Aug 07:12
QuantLib-v1.27.1
Compare
Choose a tag to compare

Downloads:

Changes for QuantLib 1.27.1:

QuantLib 1.27.1 is a bug-fix release.

It restores the old implementation of Null<T> which was replaced
in version 1.27 with a new one; the latter was reported to cause
an internal compiler error under Visual C++ 2022 for some client code.
The new version (which avoids some problems when replacing Real
with some AAD-enabled types) is still available; depending on how
you compile QuantLib, it can be enabled through the
--enable-null-as-functions configure flag, the cmake variable
QL_NULL_AS_FUNCTIONS, or the define with the same name in the
ql/userconfig.hpp header (@lballabio).

Full Changelog: QuantLib-v1.27...QuantLib-v1.27.1

1.27

22 Jul 06:57
QuantLib-v1.27
Compare
Choose a tag to compare

Downloads:

Changes for QuantLib 1.27:

QuantLib 1.27 includes 37 pull requests from several contributors.

Some of the most notable changes are included below. A detailed list of changes is available in ChangeLog.txt and at https://github.com/lballabio/QuantLib/milestone/23?closed=1.

Portability

  • Removed support: as announced in the notes for the previous release, support for Visual Studio 2013 was dropped.
  • End of support: as announced in the notes for the previous release, this release will be the last to avoid C++14 syntax. Allowing the newer (but still oldish) standard should still support most compilers released in the past several years.
  • Future end of support: this release and the next will be the last to manage thread-local singletons via a user-provided sessionId function. Future releases will use the built-in language support for thread-local variables.
  • The Real type is now used consistently throughout the codebase, thanks to the Xcelerit dev team (@xcelerit-dev). This, along with other changes, allows its default definition to double to be replaced with one of the available third-party AAD types.
  • The test suite is now built using the header-only version of Boost.Test, thanks to Jonathan Sweemer (@sweemer). This might simplify Boost installation for some users, since in the default configuration QuantLib now only needs the Boost headers.
  • Replaced some Boost facilities with the corresponding C++11 counterparts; thanks to Klaus Spanderen (@klausspanderen) and Jonathan Sweemer (@sweemer).

Date/time

  • Fixed the behavior of a couple of Australian holidays; thanks to Pradeep Krishnamurthy (@pradkrish) and Fredrik Gerdin Börjesson (@gbfredrik).

Instruments

  • Added the Turnbull-Wakeman engine for discrete Asian options; thanks to Fredrik Gerdin Börjesson (@gbfredrik) for the main engine code and to Jack Gillett (@jackgillett101) for the Greeks.
  • Added more validation to barrier options; thanks to Jonathan Sweemer (@sweemer).

Models

  • Fixed the start date of the underlying swap in swaption calibration helpers; thanks to Peter Caspers (@pcaspers).
  • Fixed parameter checks in SVI volatility smiles; thanks to Fredrik Gerdin Börjesson (@gbfredrik).

Patterns

  • Avoid possible iterator invalidation while notifying observers; thanks to Klaus Spanderen (@klausspanderen).

Deprecated features

  • Removed the --enable-disposable and --enable-std-unique-ptr
    configure switches.
  • Removed features deprecated in version 1.22 (@lballabio):
    • the unused AmericanCondition and FDAmericanCondition classes;
    • the old-style FD shout and dividend shout engines;
    • the unused OneFactorOperator class;
    • the io::to_integer function;
    • the ArrayProxy and MatrixProxy classes.
  • Deprecated the QL_NOEXCEPT and QL_CONSTEXPR macros.
  • Deprecated the QL_NULL_INTEGER and QL_NULL_REAL macros.
  • Deprecated some unused parts of the old-style FD framework (@lballabio):
    • the PdeShortRate class;
    • the ShoutCondition and FDShoutCondition classes;
    • the FDDividendEngineBase, FDDividendEngineMerton73, FDDividendEngineShiftScale and FDDividendEngine classes;
    • the FDStepConditionEngine and FDEngineAdapter classes.
  • Deprecated a number of function objects in the ql/math/functional.hpp header.
  • Deprecated the unused MultiCurveSensitivities class.
  • Deprecated the unused inner_product function.

Thanks go also to Ryan Russell (@ryanrussell) for documentation fixes.

New Contributors

Full Changelog: QuantLib-v1.26...QuantLib-v1.27

1.26

20 Apr 07:46
QuantLib-v1.26
Compare
Choose a tag to compare

Downloads:

Changes for QuantLib 1.26:

QuantLib 1.26 includes 26 pull requests from several contributors.

Some of the most notable changes are included below.
A detailed list of changes is available in ChangeLog.txt and at https://github.com/lballabio/QuantLib/milestone/22?closed=1.

Portability

  • End of support: as announced in the notes for the previous release, this release is the last to support Visual Studio 2013.
  • End of support: this release is the last to support the long-deprecated configure switches --enable-disposable and --enable-std-unique-ptr. From the next release, Disposable will always be disabled (and eventually removed) and std::unique_ptr will always be used instead of std::auto_ptr. This has already been the default in the last few releases.
  • Future end of support: this release and the next will be the last to avoid C++14 syntax. This should still support most compilers released in the past several years (except for Visual Studio 2013, which we're already dropping in this release).
  • If tagged libraries are specified, as is the default on Windows, CMake now gives the built libraries the same names as the Visual Studio solution (for instance, QuantLib-x64-mt-s instead of QuantLib-mt-s-x64) so that the pragma in ql/auto_link.hpp works.
  • QuantLib can now also be built as a subproject in a larger CMake build (thanks to @pcaspers).

Date/time

  • When printed, Period instances now display transparently what their units and length are, instead of doing more fancy formatting (e.g., "16 months" is now displayed instead of "1 year 4 months"). Also, Period instances that compare as equal now return the same period from their normalize method (@lballabio).

Indexes

  • Added Tona (Tokyo overnight average) index (thanks to @nistick21).
  • Added static laggedFixing method to CPI structure which provides interpolation of inflation index fixings (@lballabio).

Cash flows

  • The CPICoupon and CPICashFlow classes now take into account the correct dates and observation lag for interpolation (@lballabio).

Instruments

  • Added a BondForward class that generalizes the existing FixedRateBondForward to any kind of bond (thanks to @marcin-rybacki).
  • Avoided unexpected jumps in callable bond OAS (thanks to @ralfkonrad).
  • Fixed TreeSwaptionEngine mispricing when adjusting the instrument schedule to a near exercise date (thanks to @ralfkonrad).
  • the ForwardRateAgreement class now works correctly without an explicit discount curve (@lballabio).

Term structures

  • Dates explixitly passed to InterpolatedZeroInflationCurve are no longer adjusted automatically to the beginning of their inflation period (@lballabio).

Deprecated features

  • Removed the MCDiscreteAveragingAsianEngine class, deprecated in version 1.21.
  • Deprecated the LsmBasisSystem::PolynomType typedef, now renamed to PolynomialType; MakeMCAmericanEngine::withPolynomOrder was also deprecated and renamed to withPolynomialOrder.
  • Deprecated the ZeroInflationCashFlow constructor taking an unused calendar and business-day convention.
  • Deprecated the CPICoupon constructor taking a number of fixing days, as well as the CPICoupon::indexObservation, CPICoupon::adjustedFixing and CPICoupon::indexFixing methods and the CPILeg::withFixingDays method.
  • Deprecated the CPICashFlow constructor taking a precalculated fixing date and a frequency.
  • Deprecated the Observer::set_type and Observable::set_type typedefs.
  • Deprecated the unused Curve class.
  • Deprecated the unused LexicographicalView class.
  • Deprecated the unused Composite class.
  • Deprecated the unused DriftTermStructure class.

Thanks go also to @mgroncki, @sweemer and @FloridSleeves for smaller fixes, enhancements and bug reports.

New Contributors

Full Changelog: QuantLib-v1.25...QuantLib-v1.26

1.25

18 Jan 08:28
QuantLib-v1.25
a303dd3
Compare
Choose a tag to compare

Downloads:

Changes for QuantLib 1.25:

QuantLib 1.25 includes 35 pull requests from several contributors.

Some of the most notable changes are included below. A detailed list of changes is available in ChangeLog.txt and at https://github.com/lballabio/QuantLib/milestone/21?closed=1.

Portability

  • End of support: this release and the next will be the last two to support Visual Studio 2013.
  • Added a few CMake presets for building the library (thanks to @sweemer).
  • When built and installed through CMake, the library now installs a QuantLibConfig.cmake file that allows other CMake projects to find and use QuantLib (thanks to @sweemer).

Cashflows

  • Fixed the accrual calculation in overnight-indexed coupons (thanks to @mshojatalab).
  • Fixed fixing-days usage in SubPeriodsCoupon class (thanks to @marcin-rybacki).
  • IBOR coupons fixed in the past no longer need a forecast curve to return their amount (@lballabio).

Indexes

  • Important change: inflation indexes inherited from the ZeroInflationIndex class no longer rely on their forecast curve for interpolation. For coupons that already took care of interpolation (as in the case of CPICoupon and ZeroInflationCashFlow) this should not change the results. In other cases, figures will change but should be more correct as the interpolation is now performed according to market conventions. Also, most inflation curves now assume that the index is not implemented. Year-on-year inflation indexes and curves are not affected (@lballabio).

Instruments

  • Breaking change: convertible bonds were moved out of the ql/experimental folder. Also, being market values and not part of the contract, dividends and credit spread were moved from the bond to the BinomialConvertibleEngine class (thanks to @w31ha0).
  • The ForwardRateAgreement no longer inherits from Forward. This also made it possible to implement the amount method returning the expected cash settlement (thanks to @w31ha0). The methods from Forward were kept available but deprecated so code using them won't break. Client code might break if it performed casts to Forward.

Models

  • Fixed formula for discount bond option in CIR++ model (thanks to @mmencke).

Term structures

  • It is now possible to use normal volatilities in SABR smile sections, and thus in the SwaptionVolCube1 class (thanks to @w31ha0).

Date/time

Currencies

  • Added a number of African, American, Asian and European currencies from Quaternion's QuantExt project (thanks to @OleBueker).

Experimental folder

The ql/experimental folder contains code whose interface is not fully stable, but is released in order to get user feedback. Experimental classes make no guarantees of backward compatibility; their interfaces might change in future releases.

  • Added experimental rate helpers for LIBOR-LIBOR and Overnight-LIBOR basis swaps (@lballabio).
  • Renamed WulinYongDoubleBarrierEngine to SuoWangDoubleBarrierEngine (thanks to @aditya113141 for the fix and @xuruilong100 for the heads-up).

Deprecated features

  • Deprecated the constructors of zero-coupon inflation term structures taking an indexIsInterpolated boolean argument.
  • Deprecated a number of methods in the ForwardRateAgreement class that used to be inherited from Forward.
  • Deprecated a couple of constructors in the SofrFutureRateHelper class.
  • Deprecated the WulinYongDoubleBarrierEngine alias for SuoWangDoubleBarrierEngine.
  • Deprecated the protected spreadLegValue_ data member in the BlackIborCouponPricer class.

Thanks go also to @tomwhoiscontrary, @igitur, @matthewkolbe, @bensonluk, @hsegger, @klausspanderen, @jxcv0 and @azsrz for smaller fixes, enhancements and bug reports.

New Contributors