예제 #1
0
def bs_step(current, strike, maturity, rate, volatility):
    put, call = finance.black_scholes(current, strike, maturity, rate,
                                      volatility)
    call = call.optimized()
    call.evaluate()
예제 #2
0
 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())
예제 #3
0
 def test_print_graph(self):
   put, call = finance.black_scholes(self.current, self.strike, maturity, rate, volatility)
예제 #4
0
 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())
예제 #5
0
 def test_print_graph(self):
     put, call = finance.black_scholes(self.current, self.strike, maturity,
                                       rate, volatility)
예제 #6
0
 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())
예제 #7
0
 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())
예제 #8
0
def bs_step(current, strike, maturity, rate, volatility):
  put, call = finance.black_scholes(current, strike, maturity, rate, volatility)
  call = call.optimized()
  call.evaluate()