Skip to main content

The Formula to calculate some exotic options.

Project description

EOPricer Model

This simple Python package calculates the price of some barrier and exotic options. This consists on an adptation of the Black and Scholes Model to the Bjerksund e Stensland Studies.

Install

pip install exotic-options

Import

from exotic_options import EOPricer

Class and Function arguments

Args: S (float): Current price of the underlying asset. K (float): Strike price of the option. r (float): Risk-free interest rate most appropriate for this option. T (float): Number of days till the expiration date. H (float): Barrier Value. type (str): Type of the option. Either 'call' or 'put'. Defaults to 'call'.

Create an instance of EOPricer Class

pricer = EOPricer(S=None, K=None, r=None, T=None, H=None, option_type='call')
pricer.call_down_and_out(sigma=None)

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

exotic_options-0.2.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file exotic_options-0.2.tar.gz.

File metadata

  • Download URL: exotic_options-0.2.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.5

File hashes

Hashes for exotic_options-0.2.tar.gz
Algorithm Hash digest
SHA256 c6a73bb5b8315c76e797d27b3790e8ab6a0d1cbc31a24c1bf052517b5479a11e
MD5 730b023897d01ee7a32e2c26e89d2871
BLAKE2b-256 4631cf4a5c1e5ffbecb83d8077339fa761aaddc0728d217df3f5c006ea910b7a

See more details on using hashes here.

Supported by

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