Learn R Programming

RQuantLib: R Interface to the QuantLib Library

About

The RQuantLib package makes parts of QuantLib visible to the R user. Currently a number option pricing functions are included, both vanilla and exotic, as well as a broad range of fixed-income functions. Also included are general calendaring and holiday utilities. Further software contributions are welcome.

The QuantLib project aims to provide a comprehensive software framework for quantitative finance. The goal is to provide a standard open source library for quantitative analysis, modeling, trading, and risk management of financial assets.

Status

The package is actively maintained, and is still being extended. Contributions are welcome, and initial discussions via GitHub issue tickets are encouraged as suggested in the Contributing guide.

The package is always tested against the most recent version of QuantLib itself, and it generally updated (should a change be needed) when QuantLib releases updates.

Installation

From Source

The package is on CRAN and can be installed as usual:

install.packages("RQuantLib")

Windows binary packages are available via CRAN thanks to the work by Joshua Ulrich and Jeroen Ooms providing a QuantLib binary for the CRAN builders. Similarly, binaries for macOS can be provided when a suitable macOS library of QuantLib is prepared, possibly via s-u/recipes. If and when these binary libraries may be outdated, please raise the issue on the rquantlib mailing list.

For more OS-specific installation options, please see the wiki.

Support

Come to the friendly and low-volume rquantlib mailing list for help.

See Also

The qlcal R package provides the calendaring functionality of QuantLib in a standalone R package that does not require QuantLib.

Authors

Dirk Eddelbuettel, Khanh Nguyen (during 2009-2010) and Terry Leitch (since 2016)

License

GPL (>= 2)

Copy Link

Version

Install

install.packages('RQuantLib')

Monthly Downloads

1,846

Version

0.4.24

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Last Published

July 31st, 2024

Functions in RQuantLib (0.4.24)

DiscountCurve

Returns the discount curve (with zero rates and forwards) given times
ConvertibleBond

Convertible Bond evaluation for Fixed, Floating and Zero Coupon
CallableBond

CallableBond evaluation
Calendars

Calendar functions from QuantLib
EuropeanOption

European Option evaluation using Closed-Form solution
Enum

Documentation for parameters
FittedBondCurve

Returns the discount curve (with zero rates and forwards) given set of bonds
FixedRateBond

Fixed-Rate bond pricing
ImpliedVolatility

Base class for option-price implied volatility evalution
getQuantLibVersion

Return the QuantLib version number
Option

Base class for option price evalution
getQuantLibCapabilities

Return configuration options of the QuantLib library
SabrSwaption

SABR swaption using vol cube data with bermudan alternative using markovfunctional
FloatingRateBond

Floating rate bond pricing
Schedule

Schedule generation
tsQuotes

Vol Cube Example Data Short time series examples
vcube

Vol Cube Example Data
EuropeanOptionImpliedVolatility

Implied Volatility calculation for European Option
EuropeanOptionArrays

European Option evaluation using Closed-Form solution
ZeroCouponBond

Zero-Coupon bond pricing
Bond

Base class for Bond price evalution
AffineSwaption

Affine swaption valuation using several short-rate models
AmericanOptionImpliedVolatility

Implied Volatility calculation for American Option
BermudanSwaption

Bermudan swaption valuation using several short-rate models
AmericanOption

American Option evaluation using Finite Differences
BarrierOption

Barrier Option evaluation using Closed-Form solution
AsianOption

Asian Option evaluation using Closed-Form solution
BinaryOptionImpliedVolatility

Implied Volatility calculation for Binary Option
BinaryOption

Binary Option evaluation using Closed-Form solution
BondUtilities

Bond parameter conversion utilities