blackandscholes.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:wallstreet 作者: mcdallas 项目源码 文件源码
def _BlackScholesPut(S, K, T, sigma, r, q):
            d1 = (log(S/K) + (r - q + (sigma**2)/2)*T)/(sigma*sqrt(T))
            d2 = d1 - sigma*sqrt(T)
            return  K*exp(-r*T)*norm.cdf(-d2) - S*exp(-q*T)*norm.cdf(-d1)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号