Mercurial > public > python-black-scholes
annotate README.md @ 19:71d1dcfcebee default tip
Move to mercurial
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Tue, 03 Jun 2025 14:50:23 +0100 |
parents | 1216ff3a2edd |
children |
rev | line source |
---|---|
15 | 1 # python-black-scholes |
2 | |
19 | 3 A command line utility to calculate the theoretical call and put price of an |
4 European option using the black-scholes model. | |
17 | 5 |
6 ## Usage | |
7 | |
8 ```bash | |
9 fbs --help | |
10 ``` | |
11 | |
12 ## Example | |
13 Price an European call option with the following data: | |
4
ccffaf75d240
refactor code
Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com>
parents:
0
diff
changeset
|
14 |
17 | 15 Spot price -> $20 |
16 Exercise price -> $21 | |
17 Risk free rate -> 5% | |
18 Standard deviation -> 25% | |
19 Time to expiration -> 6 months | |
4
ccffaf75d240
refactor code
Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com>
parents:
0
diff
changeset
|
20 |
17 | 21 ```bash |
22 fbs \ | |
23 --spot-price=20.00 \ | |
24 --exercise-price=21.00 \ | |
25 --risk-free-rate=0.05 \ | |
26 --std=0.25 \ | |
27 --expiration=0.5 | |
11
9ef6b3cc8bdf
update readme
Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com>
parents:
9
diff
changeset
|
28 |
17 | 29 --------------------------------------------- |
30 European call option price: 1.197698084193286 | |
31 --------------------------------------------- | |
32 European put option price: 1.6792062367882679 | |
33 --------------------------------------------- | |
34 ``` | |
35 |