Skip to content

Request for dividend paying equity adjustments #6

@MorningCoffeeZombie

Description

@MorningCoffeeZombie

The BSM formula offered in this pip is the standard BSM model. Could you please add support for equities that pay regular dividends where the input 'q' represents the yield?

Example:

import opstrat as op

K = 425			# Strike
r = 1.978		# Risk free rate
t = 35			# Time to expiry (in days)
sigma = 28.84		# Annualized volatility
St = 425.48		# Underlying price
type = 'p'		# Option type (c or p)

bsm=op.black_scholes(K=K, St=St, r=r, t=t, v=sigma, type=type)

q = 3.2			# Dividend
bsm_div=op.black_scholes(K=K, St=St, r=r, t=t, v=sigma, type=type, q=q)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions