Skip to main content

Class for Black-Scholes option pricing and Greeks calculation with real-time data integration.

Project description

Simplifi

A comprehensive Python library for financial analysis and stock market data visualization. This library combines data from multiple sources including Yahoo Finance and Finviz to provide a rich set of financial analysis tools.

Features

  • Historical Data Analysis

    • Fetch and process 30-day historical data
    • Calculate average prices and logarithmic returns
    • Generate OHLC (Open-High-Low-Close) candlestick charts with volume
  • Options Analysis

    • Black-Scholes option pricing model implementation
    • Options chain analysis
  • Dividend Discount Model

    • Fetch stock valuation based on DDM calculations
    • Cost of Equity calculations
    • Risk-free rate analysis based on 10yr Treasury

Installation

pip install simplifi

Usage

Basic Usage

from simplifi import Simplifi

# Create an instance for a specific stock
stock = Simplifi('AAPL')

# Get historical data
historical_data_df = stock.get_historical_data()

# Get Black-Scholes option valuations
options_analysis_df = stock.blackscholes()

Advanced Features

OHLC Chart Generation

# Get historical data with OHLC chart
historical_data_df = stock.get_historical_data(make_ohlc=True)

Example OHLC chart output:

OHLC Chart Example

Dividend Discount Model Valuation

# Calculate stock valuation using DDM
ddm_valuation = stock.ddm_valuation()

Dependencies

  • numpy
  • pandas
  • plotly
  • yahooquery
  • beautifulsoup4
  • requests
  • scipy

Data Sources

  • Yahoo Finance (via yahooquery)

Notes

  • Features require internet connection for real-time data
  • OHLC charts include 50-day and 200-day moving averages
  • Black-Scholes calculations use the current 10-year Treasury rate as the risk-free rate

License

See the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

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

simplifi-1.0.1.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

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

simplifi-1.0.1-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file simplifi-1.0.1.tar.gz.

File metadata

  • Download URL: simplifi-1.0.1.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for simplifi-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f6c75a668dce06d41545591d994b59b65767ef7c44747561b796ea4e9c3e841a
MD5 38f459464640b1f10b0fb57547f5c298
BLAKE2b-256 967dd549a9109802a1e88f06d4d93dc57f739d698d7730a95cf39cda94aba304

See more details on using hashes here.

File details

Details for the file simplifi-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: simplifi-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for simplifi-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b63ce688936f0a7e40d404c46272a6bb0a8429e1bf5b5c30f141bba10d4238bf
MD5 93df2cfd015fab0cab496cc24e903e66
BLAKE2b-256 51becd529e2b21827c49aad9c6cdd74477a2628db7b18709a07489f553d2da04

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