Skip to main content

Professional quantitative finance library for options pricing, risk analytics, and portfolio management

Project description

QuantFlow Finance

Professional-grade quantitative finance tools for Python

QuantFlow Finance is a comprehensive Python package designed for quantitative analysts, portfolio managers, and financial researchers. It provides industry-standard implementations of essential financial models and risk management tools.

🎯 Core Features

Options Pricing & Greeks

  • Black-Scholes Model: Complete European options pricing implementation
  • Full Greeks Suite: Delta, Gamma, Theta, Vega, and Rho calculations
  • Implied Volatility: Newton-Raphson solver for market volatility extraction
  • Mathematical Precision: Validated against academic benchmarks

Risk Analytics

  • Value at Risk (VaR): Historical and parametric implementations
  • Expected Shortfall: Advanced tail risk measurement (Conditional VaR)
  • Performance Metrics: Sharpe ratio, maximum drawdown, risk-adjusted returns
  • Portfolio Analysis: Comprehensive risk assessment tools

Market Data Integration

  • Real-time Data: Yahoo Finance integration for live market feeds
  • Multi-asset Support: Stocks, indices, and portfolio analysis
  • Data Processing: Automated return calculations and preprocessing
  • Flexible Timeframes: Support for various data intervals and periods

🚀 Quick Start

from quantflow import BlackScholes, RiskMetrics, MarketData

# Price options with full Greeks
option = BlackScholes(S=100, K=105, T=0.25, r=0.05, sigma=0.2)
print(f"Price: ${option.price():.2f}, Delta: {option.delta():.3f}")

# Analyze portfolio risk
data = MarketData.fetch_stock_data(['AAPL', 'MSFT'], period='1y')
returns = MarketData.calculate_returns(data)
risk = RiskMetrics(returns['AAPL'])
print(f"VaR (95%): {risk.var_historical(0.05):.2%}")

📊 Professional Applications

Perfect for:

  • Academic Research: MFE, MSF, and PhD programs
  • Quantitative Analysis: Portfolio management and risk assessment
  • Financial Engineering: Derivatives pricing and modeling
  • Certification Prep: CQF, FRM, and advanced CFA studies

🎓 Educational Use

Designed with academic rigor and educational applications in mind:

  • Comprehensive documentation with mathematical foundations
  • Real-world examples using live market data
  • Professional-grade implementations suitable for research
  • Perfect for graduate-level quantitative finance coursework

📈 Mathematical Validation

All implementations are mathematically validated:

  • Put-call parity verification (error < 0.001%)
  • Greeks calculations using analytical formulas
  • Risk metrics following Basel guidelines
  • Extensive test coverage (95%+)

🔗 Links

  • Documentation: GitHub Repository
  • Source Code: Full source available under MIT License
  • Examples: Comprehensive examples and tutorials included

📜 License

MIT License - Free for academic and commercial use.

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

quantflow_finance-0.1.1.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

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

quantflow_finance-0.1.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file quantflow_finance-0.1.1.tar.gz.

File metadata

  • Download URL: quantflow_finance-0.1.1.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for quantflow_finance-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c9082b418115108a91fda2e45337df3fa8d3ee7ca9731bd5f84941c1b007d99b
MD5 6f627acaa738bcfbdd0085419f780d23
BLAKE2b-256 c4838e5a7c661894dd98aa6fdd2359b40af7e404078af5dca96c1b4941c7eede

See more details on using hashes here.

File details

Details for the file quantflow_finance-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for quantflow_finance-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1d2e8a231a4d99d0069521d7290f78979c9bd6dcdca4232a8fb6d8643e897eff
MD5 817a43ea0b2eae062dd082bdb0f4d647
BLAKE2b-256 8ee5b3b0b73be3fe8ae3c55f2b3cd8bb946216f2bb31a798c0971eede8df2a47

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