MCPcopy Create free account
hub / github.com/Confunctionist/finance / BS

Function BS

money.go:239–249  ·  view source on GitHub ↗

Black-Scholes (European put and call options) C Theoretical call premium (non-dividend paying stock) c = sn(d1) - ke^(-rt)N(d2) d1 = ln(s/k) + (r + s^2/2)t d2 = d1- st^1/2 v = stock value k = Stock strike price s = Spot price t = time to expire in years r = risk free rate v = volitilaty (sigma) e ma

(s, k, t, r, v float64, putcall string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

PowMethod · 0.80

Tested by

no test coverage detected