Options Trading, Call, Put, Monte Carlo, Tejapi Quant.
np.mean(payoffs)np.exp(-rT) We can choose to calculate the price of call or put by simply modifying the argument of “CallOrPut”. Further, we provide all arguments appropriate value for verification. Moreover, we compare the result with the theoretical price calculated from 【Quant】Black Scholes