Expand description
§black_scholes
A Black Scholes option pricing library.
Structs§
Functions§
- call
- Returns standard BS call option formula.
- call_
charm - Returns charm of a BS call option
- call_
delta - Returns delta of a BS call option
- call_
discount - Returns BS call option formula with discount and volatility already computed.
- call_
gamma - Returns gamma of a BS call option
- call_iv
- Returns implied volatility from a call option
- call_
iv_ guess - Returns implied volatility from a call option with initial guess
- call_
rho - Returns rho of a BS call option
- call_
theta - Returns theta of a BS call option
- call_
vanna - Returns vanna of a BS call option
- call_
vega - Returns vega of a BS call option
- call_
vomma - Returns vomma of a BS call option
- compute_
all - Returns call and put prices and greeks. Due to caching the complex computations (such as N(d1)), this implementation is faster if you need to obtain all the information for a given stock price and strike price.
- put
- Returns BS put option formula.
- put_
charm - Returns charm of a BS put option
- put_
delta - Returns delta of a BS put option
- put_
discount - Returns BS put option formula with discount and volatility already computed.
- put_
gamma - Returns gamma of a BS put option
- put_iv
- Returns implied volatility from a put option
- put_
iv_ guess - Returns implied volatility from a put option with initial guess
- put_rho
- Returns rho of a BS put option
- put_
theta - Returns theta of a BS put option
- put_
vanna - Returns vanna of a BS put option
- put_
vega - Returns vega of a BS put option
- put_
vomma - Returns vomma of a BS put option