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