All Projects → PyFE → PyFENG

PyFE / PyFENG

Licence: GPL-2.0 license
Python Financial ENGineering (PyFENG package in PyPI.org)

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to PyFENG

optionmatrix
Financial Derivatives Calculator with 168+ Models (Options Calculator)
Stars: ✭ 121 (+137.25%)
Mutual labels:  derivatives, quantitative-finance, black-scholes, financial-engineering, heston-model
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 (+66.67%)
Mutual labels:  derivatives, option-pricing, quantitative-finance, black-scholes, heston-model
Financial Models Numerical Methods
Collection of notebooks about quantitative finance, with interactive python code.
Stars: ✭ 3,534 (+6829.41%)
Mutual labels:  option-pricing, quantitative-finance, financial-engineering, heston-model
Elitequant
A list of online resources for quantitative modeling, trading, portfolio management
Stars: ✭ 1,823 (+3474.51%)
Mutual labels:  quantitative-finance, mathematical-finance
pyOptionPricing
Option pricing based on Black-Scholes processes, Monte-Carlo simulations with Geometric Brownian Motion, historical volatility, implied volatility, Greeks hedging
Stars: ✭ 190 (+272.55%)
Mutual labels:  derivatives, option-pricing
FinancialToolbox.jl
Useful functions for Black–Scholes Model in the Julia Language
Stars: ✭ 31 (-39.22%)
Mutual labels:  quantitative-finance, black-scholes
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 (+11.76%)
Mutual labels:  quantitative-finance, black-scholes
Algorithmic-Trading
I have been deeply interested in algorithmic trading and systematic trading algorithms. This Repository contains the code of what I have learnt on the way. It starts form some basic simple statistics and will lead up to complex machine learning algorithms.
Stars: ✭ 47 (-7.84%)
Mutual labels:  option-pricing, black-scholes
Black-Scholes-Option-Pricing-Model
Black Scholes Option Pricing calculator with Greeks and implied volatility computations. Geometric Brownian Motion simulator with payoff value diagram and volatility smile plots. Java GUI.
Stars: ✭ 25 (-50.98%)
Mutual labels:  derivatives, quantitative-finance
Option-Pricing
European/American/Asian option pricing module. BSM/Monte Carlo/Binomial
Stars: ✭ 44 (-13.73%)
Mutual labels:  option-pricing, black-scholes
option-pricing-models
Simple python/streamlit web app for European option pricing using Black-Scholes model, Monte Carlo simulation and Binomial model. Spot prices for the underlying are fetched from Yahoo Finance API.
Stars: ✭ 16 (-68.63%)
Mutual labels:  option-pricing, black-scholes
Pynaissance
A walk through the frameworks of Python in Finance. The repository is currently in the development phase. The finalized version will include a full-fledged integration and utilization of Quantopian, GS-Quant, WRDS API and their relevant datasets and analytics.
Stars: ✭ 16 (-68.63%)
Mutual labels:  quantitative-finance, mathematical-finance
Option-Trading-Backend
Option trading platform on NSE (India) for Upstox
Stars: ✭ 33 (-35.29%)
Mutual labels:  derivatives
Beibo
🤖 Predict the stock market with AI 用AI预测股票市场
Stars: ✭ 46 (-9.8%)
Mutual labels:  quantitative-finance
prospectr
R package: Misc. Functions for Processing and Sample Selection of Spectroscopic Data
Stars: ✭ 26 (-49.02%)
Mutual labels:  derivatives
ib dl
Historical market data downloader using Interactive Brokers TWS
Stars: ✭ 43 (-15.69%)
Mutual labels:  quantitative-finance
RISKIM
Assets' Risk Management Using Mean-Variance Opt Based On Mult-Factors Trending Prediction
Stars: ✭ 25 (-50.98%)
Mutual labels:  quantitative-finance
lifelib
Python package of actuarial models, tools, examples and learning materials.
Stars: ✭ 94 (+84.31%)
Mutual labels:  quantitative-finance
golden eye
a quantitative trading system(股指交易)
Stars: ✭ 17 (-66.67%)
Mutual labels:  quantitative-finance
mai-protocol
A Protocol for trading decentralized derivatives on Ethereum
Stars: ✭ 22 (-56.86%)
Mutual labels:  derivatives

PyFENG: Python Financial ENGineering

PyPI version Documentation Status Downloads

PyFENG is the python implemention of the standard option pricing models in financial engineering.

  • Black-Scholes-Merton (and displaced diffusion)
  • Bachelier (Normal)
  • Constant-elasticity-of-variance (CEV)
  • Stochastic-alpha-beta-rho (SABR)
  • Hyperbolic normal stochastic volatility model (NSVh)

About the package

  • It assumes variables are numpy arrays. So the computations are naturally vectorized.
  • It is purely in Python (i.e., no C, C++, cython).
  • It is implemented with python class.
  • It is intended for, but not limited to, academic use. By providing reference models, it saves researchers' time.

Installation

pip install pyfeng

For upgrade,

pip install pyfeng --upgrade

Code Snippets

In [1]:

import numpy as np
import pyfeng as pf
m = pf.Bsm(sigma=0.2, intr=0.05, divr=0.1)
m.price(strike=np.arange(80, 121, 10), spot=100, texp=1.2)

Out [1]:

array([15.71361973,  9.69250803,  5.52948546,  2.94558338,  1.48139131])

In [2]:

sigma = np.array([[0.2], [0.5]])
m = pf.Bsm(sigma, intr=0.05, divr=0.1) # sigma in axis=0
m.price(strike=[90, 95, 100], spot=100, texp=1.2, cp=[-1,1,1])

Out [2]:

array([[ 5.75927238,  7.38869609,  5.52948546],
       [16.812035  , 18.83878533, 17.10541288]])

Author

Others

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].