def bs_step(current, strike, maturity, rate, volatility): put, call = finance.black_scholes(current, strike, maturity, rate, volatility) call = call.optimized() call.evaluate()
def test_put(self): put, call = finance.black_scholes(self.current, self.strike, maturity, rate, volatility) #util.log_info(put) #util.log_info(optimize(put)) util.log_info(put.glom())
def test_print_graph(self): put, call = finance.black_scholes(self.current, self.strike, maturity, rate, volatility)
def test_call(self): put, call = finance.black_scholes(self.current, self.strike, maturity, rate, volatility) #util.log_info(call) util.log_info(call.glom())