Module strategy

Source

Functionsยง

long_call_payoff
Returns the payoff for a long call option
long_call_spread
Payoff for a long call spread (buy call at k1, sell call at k2)
long_put_payoff
Returns the payoff for a long put option
long_put_spread
Payoff for a long put spread (buy put at k1, sell put at k2)
long_straddle
Payoff for a long straddle (buy call and put at same strike)
long_strangle
Payoff for a long strangle (buy OTM call and OTM put)
short_call_payoff
Returns the payoff for a short call option
short_call_spread
Payoff for a short call spread (sell call at k1, buy call at k2)
short_put_payoff
Returns the payoff for a short put option
short_put_spread
Payoff for a short put spread (sell put at k1, buy put at k2)
short_straddle
Payoff for a short straddle (sell call and put at same strike)
short_strangle
Payoff for a short strangle (sell OTM call and OTM put)