Merge branch 'dev' of https://github.com/vnpy/vnpy into dev

This commit is contained in:
vn.py 2018-05-13 13:42:36 +08:00
commit e661a9f5d3

View File

@ -26,8 +26,6 @@ theta当t变动1天时price的变动国内交易日每年240天
vega当v涨跌1个点时price的变动如从16%涨到17% vega当v涨跌1个点时price的变动如从16%涨到17%
''' '''
from __future__ import division
import numpy as np import numpy as np
from math import (isnan, exp, sqrt, pow) from math import (isnan, exp, sqrt, pow)
@ -180,4 +178,4 @@ def calculateImpv(price, f, k, r, t, cp, n=15):
# 保留4位小数 # 保留4位小数
v = round(v, 4) v = round(v, 4)
return v return v