Update crr.py
import语句重复了
This commit is contained in:
parent
ff07764898
commit
c2c7d2f171
@ -26,8 +26,6 @@ theta:当t变动1天时,price的变动(国内交易日每年240天)
|
||||
vega:当v涨跌1个点时,price的变动(如从16%涨到17%)
|
||||
'''
|
||||
|
||||
from __future__ import division
|
||||
|
||||
import numpy as np
|
||||
from math import (isnan, exp, sqrt, pow)
|
||||
|
||||
@ -180,4 +178,4 @@ def calculateImpv(price, f, k, r, t, cp, n=15):
|
||||
# 保留4位小数
|
||||
v = round(v, 4)
|
||||
|
||||
return v
|
||||
return v
|
||||
|
Loading…
Reference in New Issue
Block a user