Learn R Programming

⚠️There's a newer version (0.4.26) of this package.Take me there.

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.

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.

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

2,088

Version

0.4.12

License

GPL (>= 2)

Maintainer

Dirk Eddelbuettel

Last Published

April 2nd, 2020

Functions in RQuantLib (0.4.12)

BinaryOptionImpliedVolatility

Implied Volatility calculation for Binary Option
BinaryOption

Binary Option evaluation using Closed-Form solution
getQuantLibVersion

Return the QuantLib version number
BondUtilities

Bond parameter conversion utilities
Bond

Base class for Bond price evalution
DiscountCurve

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

Return configuration options of the QuantLib library
ConvertibleBond

Convertible Bond evaluation for Fixed, Floating and Zero Coupon
Enum

Documentation for parameters
FloatingRateBond

Floating rate bond pricing
EuropeanOption

European Option evaluation using Closed-Form solution
BarrierOption

Barrier Option evaluation using Closed-Form solution
Schedule

Schedule generation
AmericanOptionImpliedVolatility

Implied Volatility calculation for American Option
ZeroCouponBond

Zero-Coupon bond pricing
EuropeanOptionImpliedVolatility

Implied Volatility calculation for European Option
EuropeanOptionArrays

European Option evaluation using Closed-Form solution
AsianOption

Asian Option evaluation using Closed-Form solution
SabrSwaption

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

Vol Cube Example Data Short time series examples
Option

Base class for option price evalution
AmericanOption

American Option evaluation using Finite Differences
AffineSwaption

Affine swaption valuation using several short-rate models
FittedBondCurve

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

Calendar functions from QuantLib
FixedRateBond

Fixed-Rate bond pricing
ImpliedVolatility

Base class for option-price implied volatility evalution
BermudanSwaption

Bermudan swaption valuation using several short-rate models
vcube

Vol Cube Example Data
CallableBond

CallableBond evaluation