Skip to main content

Option pricing using the Black Scholes Model

Project description

BSM

This package is to be used for option price calculation using the Black Scholes Model

Description

This package provides a simple and easy-to-use implementation of the Black Scholes Model for calculating European call and put option prices. It is designed for students, traders, and developers who want a lightweight and reliable tool for option pricing without the complexity of larger libraries.

Getting Started

Dependencies

Numpy,Scipy

Installing

pip install bsm

Executing program

from bsm import bsm

example when time scale is in year

price=bsm(S=50,K=50,T=1,r=6,sigma=25,option_type = "call",time_scale="Year") print(price)

example when time scale is in month

price = bsm(S=50,K=50,T=6,r=6,sigma=25,option_type = "call",time_scale="Month") print(price)

Note: When time_scale="Year", enter T in years. When time_scale="Month", enter T in months.

Authors

Shreenivas Dani

shreenivasdani@gmail.com

Version History

  • 0.1
    • Initial Release

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

option_prices-0.1.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file option_prices-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: option_prices-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for option_prices-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fbe6907ad1001ee9f889c235e5684883bdd0a121ef5252df09e2c46aa0306dab
MD5 0eda5a9325d2dd8ca61beabd43c6b964
BLAKE2b-256 ec241a88b5462facf1dada429c4879b0df84aa7a3fa13a0bd204330562e428d7

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