Learn R Programming

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

RQuantLib

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 from source as usual:

install.packages("RQuantLib")

Windows Binaries

Starting with release 0.4.3, binaries may be provided via the ghrr drat repo and can be installed as

drat::addRepo("ghrr")       #  maybe use 'install.packages("drat")' first 
install.packages("RQuantLib", type="binary")

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,046

Version

0.4.4

License

GPL (>= 2)

Maintainer

Dirk Eddelbuettel

Last Published

November 8th, 2017

Functions in RQuantLib (0.4.4)

Bond

Base class for Bond price evalution
FittedBondCurve

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

Fixed-Rate bond pricing
Option

Base class for option price evalution
SabrSwaption

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

Implied Volatility calculation for American Option
AsianOption

Asian Option evaluation using Closed-Form solution
EuropeanOptionArrays

European Option evaluation using Closed-Form solution
EuropeanOptionImpliedVolatility

Implied Volatility calculation for European Option
getQuantLibCapabilities

Return configuration options of the QuantLib library
getQuantLibVersion

Return the QuantLib version number
AffineSwaption

Affine swaption valuation using several short-rate models
BinaryOption

Binary Option evaluation using Closed-Form solution
BinaryOptionImpliedVolatility

Implied Volatility calculation for Binary Option
BarrierOption

Barrier Option evaluation using Closed-Form solution
BermudanSwaption

Bermudan swaption valuation using several short-rate models
Calendars

Calendar functions from QuantLib
AmericanOption

American Option evaluation using Finite Differences
Enum

Documentation for parameters
CallableBond

CallableBond evaluation
FloatingRateBond

Floating rate bond pricing
EuropeanOption

European Option evaluation using Closed-Form solution
ConvertibleBond

Convertible Bond evaluation for Fixed, Floating and Zero Coupon
tsQuotes

Vol Cube Example Data Short time series examples
ImpliedVolatility

Base class for option-price implied volatility evalution
DiscountCurve

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

Schedule generation
ZeroCouponBond

Zero-Coupon bond pricing
vcube

Vol Cube Example Data
BondUtilities

Bond parameter conversion utilities