JuliaQuant / FinancialDerivatives.jl

Financial derivatives modeling and pricing in Julia.
https://juliaquant.github.io/FinancialDerivatives.jl/dev/
Other
56 stars 13 forks source link
derivatives finance julia

FinancialDerivatives.jl

Documentation Status License
docs-dev CI codecov license

💾 Installing

FinancialDerivatives.jl is a registered Julia package and as such you can install it by activating the pkg mode (type ], and to leave it, type <backspace>), followed by

pkg> add FinancialDerivatives

📓 Usage

To price an European option, simply create a new EuropeanOption and pass it to evaluate with the desired valuation model:

julia> using FinancialDerivatives

julia> euro_put = EuropeanOption(s=100.0, k=90.0, r=0.05, q=0.0, σ=0.3, t=180 / 365, call=false)

julia> evaluate(euro_put, BlackScholes())
3.2281936525908073