Skip to main content

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 hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page