Ejemplo n.º 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()
Ejemplo n.º 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())
Ejemplo n.º 3
0
 def test_print_graph(self):
   put, call = finance.black_scholes(self.current, self.strike, maturity, rate, volatility)
Ejemplo n.º 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())
Ejemplo n.º 5
0
 def test_print_graph(self):
     put, call = finance.black_scholes(self.current, self.strike, maturity,
                                       rate, volatility)
Ejemplo n.º 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())
Ejemplo n.º 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())
Ejemplo n.º 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()