Tools for valuating financial derivatives
Project description
Optiontools
Tools for valuating financial derivatives
Option Tools contains methods for valuating different types of financial derivatives, such as American, European, and Binary Options (Asset-or-Nothing, Cash-or-Nothing).
Installation
To install the package:
pip install optiontools
Example
Valuating a European put option:
>>> from optiontools.options import European
>>> opt = European(So=50, K=52, rf=0.01, sigma=0.15, T=1, option_type='call')
>>> opt.price()
2.349553922014252
>>> opt.delta()
0.4523189078212078
Available Classes
- European (including greeks)
- American
- AssetOrNothing
- CashOrNothing
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
optiontools-0.1.5.tar.gz
(4.7 kB
view details)
File details
Details for the file optiontools-0.1.5.tar.gz
.
File metadata
- Download URL: optiontools-0.1.5.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 759377e68109e6f487adeb810ff96c2d4601255d8fb94759a68a2204c8263d5c |
|
MD5 | 60db3f1075adfd62a02a0220ebc14ab6 |
|
BLAKE2b-256 | 264e81cee9ebca5509973e8fa56acf4f2676c1ef1218cd0b3a556bc853e47d6d |