Skip to content

Methods to convert an interest rate into a discount factor.

License

Notifications You must be signed in to change notification settings

JuliaFinance/Rates.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rates.jl

License travis codecov

Rates.jl provides methods to convert an interest rate into a discount factor.

Example

import Rates

r = 0.1 # an interest rate of 10%
t = 1.5 # one and a half year (yearfraction)

Rates.erf(Rates.Continuous, r, t)
Rates.discountfactor(Rates.Continuous, r, t)
Rates.erf_to_rate(Rates.Continuous, exp(r*t), t) # will retrieve r
Rates.discountfactor_to_rate(Rates.Continuous, 1.0/exp(r*t), t) # will retrieve r

Compounding Types

  • Rates.Continuous

  • Rates.Simple

  • Rates.Exponential

About

Methods to convert an interest rate into a discount factor.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages