for sensitivity calculation, stress testing or market risk (VaR, etc.) calculation market data items (like interest rate and FX curves) need to be shifted.
Often the base items and the shift sizes are not defined on the same maturity grid, thus interpolation is required.
This small package aims at making “calculations” with market data items easier by taking care about interpolations. E.g. when “adding” two curves containing the base interest rates and (maturity dependent) shift sizes, they are interpolated to a common grid before adding.
Curve in this package is essentially a collection of points
(x, y) , together with an interpolation and extrapolation method.
Curve objects have a number of standard calculation function defined (like addition, multiplication, logarithm), thus they can be used in algebraic expressions analogue to scalars.
This is my first Julia package, I hope that this will be helpful for you.
Suggestions, Issues, etc. are welcome!