All Projects → rcalxrc08 → FinancialToolbox.jl

rcalxrc08 / FinancialToolbox.jl

Licence: other
Useful functions for Black–Scholes Model in the Julia Language

Programming Languages

julia
2034 projects

Projects that are alternatives of or similar to FinancialToolbox.jl

PROJ Option Pricing Matlab
Quant Option Pricing - Exotic/Vanilla: Barrier, Asian, European, American, Parisian, Lookback, Cliquet, Variance Swap, Swing, Forward Starting, Step, Fader
Stars: ✭ 85 (+174.19%)
Mutual labels:  quantitative-finance, black-scholes, european-options
optionmatrix
Financial Derivatives Calculator with 168+ Models (Options Calculator)
Stars: ✭ 121 (+290.32%)
Mutual labels:  quantitative-finance, black-scholes
Option-Pricing
European/American/Asian option pricing module. BSM/Monte Carlo/Binomial
Stars: ✭ 44 (+41.94%)
Mutual labels:  black-scholes, european-options
QuantResearch
Quantitative analysis, strategies and backtests
Stars: ✭ 1,013 (+3167.74%)
Mutual labels:  quantitative-finance, risk-management
lifelib
Python package of actuarial models, tools, examples and learning materials.
Stars: ✭ 94 (+203.23%)
Mutual labels:  quantitative-finance, risk-management
okama
Investment portfolio and stocks analyzing tools for Python with free historical data
Stars: ✭ 87 (+180.65%)
Mutual labels:  quantitative-finance, risk-management
ProjectReward
A software to shortlist and find the best options spread available for a given stock and help it visualise using payoff graphs.
Stars: ✭ 57 (+83.87%)
Mutual labels:  quantitative-finance, black-scholes
RISKIM
Assets' Risk Management Using Mean-Variance Opt Based On Mult-Factors Trending Prediction
Stars: ✭ 25 (-19.35%)
Mutual labels:  quantitative-finance, risk-management
PyFENG
Python Financial ENGineering (PyFENG package in PyPI.org)
Stars: ✭ 51 (+64.52%)
Mutual labels:  quantitative-finance, black-scholes
portfolio allocation js
A JavaScript library to allocate and optimize financial portfolios.
Stars: ✭ 145 (+367.74%)
Mutual labels:  quantitative-finance
support resistance line
A well-tuned algorithm to generate & draw support/resistance line on time series. 根据时间序列自动生成支撑线压力线
Stars: ✭ 53 (+70.97%)
Mutual labels:  quantitative-finance
collector
⚖Open Source Toolkit for Conducting Quantitative Risk Assessment Interviews
Stars: ✭ 26 (-16.13%)
Mutual labels:  risk-management
Quant-Finance
Some notebooks with powerful trading strategies.
Stars: ✭ 42 (+35.48%)
Mutual labels:  quantitative-finance
qwack
A modern quantitative finance framework that makes the complex simple
Stars: ✭ 18 (-41.94%)
Mutual labels:  quantitative-finance
ib dl
Historical market data downloader using Interactive Brokers TWS
Stars: ✭ 43 (+38.71%)
Mutual labels:  quantitative-finance
EngineX
Engine X - 实时AI智能决策引擎、规则引擎、风控引擎、数据流引擎。 通过可视化界面进行规则配置,无需繁琐开发,节约人力,提升效率,实时监控,减少错误率,随时调整; 支持规则集、评分卡、决策树,名单库管理、机器学习模型、三方数据接入、定制化开发等;
Stars: ✭ 369 (+1090.32%)
Mutual labels:  risk-management
finance-courses
Notes and examples about Portfolio Construction and Analysis with Python (Jupyter notebooks)
Stars: ✭ 104 (+235.48%)
Mutual labels:  risk-management
IDVerification
"Very simple but works well" Computer Vision based ID verification solution provided by LibraX.
Stars: ✭ 44 (+41.94%)
Mutual labels:  risk-management
0rsk
Online Risk Manager
Stars: ✭ 18 (-41.94%)
Mutual labels:  risk-management
AutoTrader
A Python-based development platform for automated trading systems - from backtesting to optimisation to livetrading.
Stars: ✭ 227 (+632.26%)
Mutual labels:  quantitative-finance

FinancialToolbox

CI codecov

This is a Julia package containing some useful Financial functions for Pricing and Risk Management under the Black and Scholes Model.
The syntax is the same of the Matlab Financial Toolbox.

It currently contains the following functions:

  • blsprice : Black & Scholes Price for European Options.
  • blkprice : Black Price for European Options.
  • blsdelta : Black & Scholes Delta sensitivity for European Options.
  • blsgamma : Black & Scholes Gamma sensitivity for European Options.
  • blstheta : Black & Scholes Theta sensitivity for European Options.
  • blsvega : Black & Scholes Vega sensitivity for European Options.
  • blsrho : Black & Scholes Rho sensitivity for European Options.
  • blslambda: Black & Scholes Lambda sensitivity for European Options.
  • blspsi : Black & Scholes Psi sensitivity for European Options.
  • blsvanna : Black & Scholes Vanna sensitivity for European Options.
  • blsimpv : Black & Scholes Implied Volatility for European Options (using Brent Method).
  • blkimpv : Black Implied Volatility for European Options (using Brent Method).

Currently supports classical numerical input and other less common like:

It also contains some functions that could be useful for the Dates Management:

  • yearfrac : fraction of years between two Dates (currently only the first seven convention of Matlab are supported).
  • daysact : number of days between two Dates.

The module is standalone.

How to Install

To install the package simply type on the Julia REPL the following:

Pkg.add("FinancialToolbox")

How to Test

After the installation, to test the package type on the Julia REPL the following:

Pkg.test("FinancialToolbox")

Example of Usage

The following example is the pricing of a European Call Option with underlying varying according to the Black Scholes Model, given the implied volatility. After that it is possible to check the result computing the inverse of the Black Scholes formula.

#Import the Package
using FinancialToolbox

#Define input data
spot=10;K=10;r=0.02;T=2.0=0.2;d=0.01;

#Call the function
Price=blsprice(spot,K,r,T,σ,d)
#Price=1.1912013169995816

#Check the Result
Volatility=blsimpv(spot,K,r,T,Price,d)
#Volatility=0.20000000000000002

Contributors

Thanks to Modesto Mas for the implementation of the Brent Method.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].