Package: fmbasics 0.3.99

fmbasics: Financial Market Building Blocks

Implements basic financial market objects like currencies, currency pairs, interest rates and interest rate indices. You will be able to use Benchmark instances of these objects which have been defined using their most common conventions or those defined by International Swap Dealer Association (ISDA, <https://www.isda.org>) legal documentation.

Authors:Imanuel Costigan [aut, cre], Sayf Hamada [ctb]

fmbasics_0.3.99.tar.gz
fmbasics_0.3.99.zip(r-4.5)fmbasics_0.3.99.zip(r-4.4)fmbasics_0.3.99.zip(r-4.3)
fmbasics_0.3.99.tgz(r-4.4-any)fmbasics_0.3.99.tgz(r-4.3-any)
fmbasics_0.3.99.tar.gz(r-4.5-noble)fmbasics_0.3.99.tar.gz(r-4.4-noble)
fmbasics_0.3.99.tgz(r-4.4-emscripten)fmbasics_0.3.99.tgz(r-4.3-emscripten)
fmbasics.pdf |fmbasics.html
fmbasics/json (API)
NEWS

# Install fmbasics in R:
install.packages('fmbasics', repos = c('https://imanuelcostigan.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/imanuelcostigan/fmbasics/issues

On CRAN:

derivativesfinance

112 exports 12 stars 1.64 score 36 dependencies 143 downloads

Last updated 5 years agofrom:f9a79f0ce2

Exports:AONIAas_DiscountFactoras_InterestRateas_SurvivalProbabilitiesas_ZeroHazardRateAUDAUDBBSWAUDBBSW1bAUDNZDAUDUSDbuild_vol_quotesbuild_vol_surfacebuild_zero_curveCashFlowCashIndexCDSCurveCDSMarkitSpecCDSSingleNameSpecCDSSpecCHFCHFLIBORCHFTOISConstantInterpolationCreditCurveCubicInterpolationCurrencyCurrencyPairDiscountFactorEONIAEUREURCHFEURGBPEURIBOREURNOKEURUSDFedFundsGBPGBPJPYGBPLIBORGBPUSDHKDHKDHIBORHONIXIborIndexInterestRateinterpolateinterpolate_dfsinterpolate_fwdsinterpolate_zerosinvertis_t1is.CashFlowis.CashIndexis.CDSCurveis.CDSSpecis.ConstantInterpolationis.CreditCurveis.CubicInterpolationis.Currencyis.CurrencyPairis.DiscountFactoris.IborIndexis.Indexis.InterestRateis.Interpolationis.LinearCubicTimeVarInterpolationis.LinearInterpolationis.LogDFInterpolationis.MultiCurrencyMoneyis.SingleCurrencyMoneyis.SurvivalProbabilitiesis.VolQuotesis.VolSurfaceis.ZeroCurveis.ZeroHazardRateisoJPYJPYLIBORJPYTIBORLinearCubicTimeVarInterpolationLinearInterpolationLogDFInterpolationMultiCurrencyMoneyNOKNOKNIBORNZDNZDBKBMNZDUSDNZIONASingleCurrencyMoneySONIASurvivalProbabilitiesto_forwardto_fx_valueto_maturityto_resetto_spotto_spot_nextto_todayto_tomorrowto_valueTONARUSDUSDCHFUSDHKDUSDJPYUSDLIBORUSDNOKVolQuotesVolSurfaceZeroCurveZeroHazardRate

Dependencies:assertthatbitbit64clicliprcpp11crayoncreduledplyrfansifmdatesgenericsgluehmslifecyclelubridatemagrittrpillarpkgconfigprettyunitsprogresspurrrR6readrrlangstringistringrtibbletidyrtidyselecttimechangetzdbutf8vctrsvroomwithr

Currencies, currency pairs and indices

Rendered frombasics.Rmdusingknitr::rmarkdownon Jun 19 2024.

Last update: 2017-02-12
Started: 2017-02-04

Rates and Discount Factors

Rendered fromrates.Rmdusingknitr::rmarkdownon Jun 19 2024.

Last update: 2017-12-29
Started: 2017-01-15

Readme and manuals

Help Manual

Help pageTopics
Coerce to DiscountFactoras_DiscountFactor as_DiscountFactor.InterestRate
Coerce to InterestRateas_InterestRate as_InterestRate.DiscountFactor as_InterestRate.InterestRate
Coerce to InterestRateas_SurvivalProbabilities as_SurvivalProbabilities.ZeroHazardRate
Bootstraps Survival Probabilitie from a CDS curve Using credule package. The output of bootstrapping is a vector of cumulative survival probabilities.as_SurvivalProbabilities.CDSCurve
CreditCurve attributes as a data frameas_tibble.CreditCurve
ZeroCurve attributes as a data frameas_tibble.ZeroCurve
Coerce to ZeroHazardRateas_ZeroHazardRate as_ZeroHazardRate.SurvivalProbabilities as_ZeroHazardRate.ZeroHazardRate
Build a 'VolQuotes' object from an example data setbuild_vol_quotes
Build a 'VolSurface' from an example date setbuild_vol_surface
Build a 'ZeroCurve' from example data setbuild_zero_curve
Create a CashFlowCashFlow
CashIndex classCashIndex
Builds a 'CDSCurve'CDSCurve
Build a 'CDSMarkitSpec'CDSMarkitSpec
Builds a 'CDSSingleNameSpec'CDSSingleNameSpec
Build a 'CDSSpec'CDSSpec
CreditCurve classCreditCurve
Build a CurrencyCurrency
Handy Currency constructorsAUD CHF CurrencyConstructors EUR GBP HKD JPY NOK NZD USD
CurrencyPair classCurrencyPair
Handy CurrencyPair constructorsAUDNZD AUDUSD CurrencyPairConstructors EURCHF EURGBP EURNOK EURUSD GBPJPY GBPUSD NZDUSD USDCHF USDHKD USDJPY USDNOK
CurrencyPair methodsCurrencyPairMethods invert is_t1 to_forward to_fx_value to_spot to_spot_next to_today to_tomorrow
DiscountFactor classDiscountFactor
'DiscountFactor' operationsDiscountFactor-operators
fmbasics: Financial Market Building Blocksfmbasics-package fmbasics
IborIndex classIborIndex
Standard IBORAUDBBSW AUDBBSW1b CHFLIBOR EURIBOR GBPLIBOR HKDHIBOR iborindices JPYLIBOR JPYTIBOR NOKNIBOR NZDBKBM USDLIBOR
Index class checkersindexcheckers is.CashIndex is.IborIndex is.Index
Index date shiftersindexshifters to_maturity to_maturity.default to_reset to_reset.default to_value to_value.default
InterestRate classInterestRate
'InterestRate' operationsInterestRate-operators
Interpolate values from an objectinterpolate
Interpolate forward rates and discount factorsinterpolate_dfs interpolate_dfs.CreditCurve interpolate_dfs.ZeroCurve interpolate_fwds interpolate_fwds.CreditCurve interpolate_fwds.ZeroCurve
Interpolate zerosinterpolate_zeros interpolate_zeros.CreditCurve interpolate_zeros.ZeroCurve
Interpolate a 'CreditCurve'interpolate.CreditCurve
Interpolate a 'VolSurface' object.interpolate.VolSurface
Interpolate a 'ZeroCurve'interpolate.ZeroCurve
InterpolationConstantInterpolation CubicInterpolation Interpolation LinearCubicTimeVarInterpolation LinearInterpolation LogDFInterpolation
Compounding frequenciescompounding is_valid_compounding
Inherits from CashFlowis.CashFlow
Inherits from CDSCurveis.CDSCurve
Inherits from CDSSpecis.CDSSpec
Inherits from CreditCurveis.CreditCurve
Inherits from Currencyis.Currency
Inherits from 'CurrencyPair' classis.CurrencyPair
Inherits from DiscountFactoris.DiscountFactor
Inherits from InterestRateis.InterestRate
Check Interpolation classis.ConstantInterpolation is.CubicInterpolation is.Interpolation is.LinearCubicTimeVarInterpolation is.LinearInterpolation is.LogDFInterpolation
Inherits from MultiCurrencyMoneyis.MultiCurrencyMoney
Inherits from SingleCurrencyMoneyis.SingleCurrencyMoney
Inherits from SurvivalProbabilitiesis.SurvivalProbabilities
Inherits from VolQuotesis.VolQuotes
Inherits from VolSurfaceis.VolSurface
Inherits from ZeroCurveis.ZeroCurve
Inherits from ZeroHazardRateis.ZeroHazardRate
Get ISOiso iso.CashIndex iso.CurrencyPair iso.default iso.IborIndex
MultiCurrencyMoneyMultiCurrencyMoney
Standard ONIAAONIA CHFTOIS EONIA FedFunds HONIX NZIONA oniaindices SONIA TONAR
SingleCurrencyMoneySingleCurrencyMoney
Builds a 'SurvivalProbabilitiesCurve'SurvivalProbabilities
'SurvivalProbabilities' operationsSurvivalProbabilities-operators
VolQuotes classVolQuotes
VolSurface classVolSurface
ZeroCurve classZeroCurve
Builds a 'ZeroHazardRate'ZeroHazardRate
'ZeroHazardRate' operationsZeroHazardRate-operators