Skip to content

Commit

Permalink
added to usage info
Browse files Browse the repository at this point in the history
  • Loading branch information
MattL922 committed Nov 27, 2014
1 parent 5afb3c2 commit 7b9a5e9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,10 @@ Determine implied volatility of options based on their prices
var iv = require("implied-volatility");
iv.getImpliedVolatility(2, 101, 100, .1, .0015, "call"); // 0.11406250000000001 (11.4%)
// To confirm this volatility:
var bs = require("black-scholes");
bs.blackScholes(101, 100, .1, .1140625, .0015, "call"); // 2.009799330328903
```

0 comments on commit 7b9a5e9

Please sign in to comment.