fcl: A Financial Calculator

A financial calculator that provides very fast implementations of common financial indicators using 'Rust' code. It includes functions for bond-related indicators, such as yield to maturity ('YTM'), modified duration, and Macaulay duration, as well as functions for calculating time-weighted and money-weighted rates of return (using 'Modified Dietz' method) for multiple portfolios, given their market values and profit and loss ('PnL') data. 'fcl' is designed to be efficient and accurate for financial analysis and computation. The methods used in this package are based on the following references: <https://en.wikipedia.org/wiki/Modified_Dietz_method>, <https://en.wikipedia.org/wiki/Time-weighted_return>.

Getting started

Package details

AuthorXianying Tan [aut, cre] (<https://orcid.org/0000-0002-6072-3521>), Raymon Mina [ctb] (find_root.rs, xirr.rs), The authors of the dependency Rust crates [ctb] (see inst/AUTHORS file for details)
MaintainerXianying Tan <shrektan@126.com>
LicenseMIT + file LICENSE
Version0.1.3
URL https://github.com/shrektan/fcl https://shrektan.github.io/fcl/
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("fcl")

Try the fcl package in your browser

Any scripts or data that you put into this service are public.

fcl documentation built on April 3, 2025, 6:17 p.m.