A Python library for pricing and risk management of financial derivatives including fixed-income, equity, FX, and credit derivatives.
FinancePy is a Python library focused on pricing and risk management of financial derivatives across asset classes including fixed-income, equity, FX, and credit. It provides a comprehensive set of tools for valuing complex instruments like options, swaps, bonds, and credit default swaps, with performance optimized through Numba compilation.
Quantitative analysts, traders, risk managers, portfolio managers, academics, and students who need to price, risk-manage, or research financial derivatives using Python.
Developers choose FinancePy because it offers a complete, product-oriented Python library with C++-like performance via Numba, eliminating the need to switch between multiple tools or languages for derivative pricing and risk analysis.
A Python Finance Library that focuses on the pricing and risk-management of Financial Derivatives, including fixed-income, equity, FX and credit derivatives.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Supports pricing for bonds, options, swaps, credit default swaps, variance swaps, and barrier options across equity, FX, interest rate, and credit asset classes, as listed in the key features.
Leverages Numba compilation to achieve C/C++-like calculation speeds, with models compiled on first import and cached for fast execution, as explained in the installation warning.
Organized by product type (Bonds, Credit, Equity, FX, Rates) so users can easily find and price specific instruments without deep model knowledge, per the library structure.
Includes over 90 example notebooks demonstrating usage across different products and scenarios, providing practical guidance for users.
The library is currently in beta, meaning it may have bugs, incomplete features, and breaking changes, as stated in the overview, which risks stability in production.
First imports can take several seconds due to Numba compilation, which might disrupt quick scripting or environments with frequent restarts, as warned in the installation section.
Valuations may differ from commercial systems like Bloomberg due to variations in date generation and interpolation schemes, requiring careful validation for professional use.
FinancePy is an open-source alternative to the following products: