API Reference
This section provides detailed documentation for all qfinbox modules and functions.
- Module Reference
- Time Value of Money (TVM) Module
Main Package
qfinbox: A Python library for quantitative finance. |
Core Modules
Custom exceptions for qfinbox. |
|
Input validation utilities for qfinbox. |
|
Common utilities for qfinbox. |
Time Value of Money (TVM) Module
The TVM module provides comprehensive financial calculations across five specialized submodules:
Basic TVM Calculations
Calculate present value of a future amount. |
|
Calculate future value of a present amount. |
|
Calculate effective annual rate from nominal rate. |
|
Calculate nominal rate from effective annual rate. |
Annuities
Calculate present value of ordinary annuity. |
|
Calculate future value of ordinary annuity. |
|
Calculate present value of annuity due. |
|
Calculate future value of annuity due. |
|
Calculate present value of annuity (ordinary or due). |
|
Calculate future value of annuity (ordinary or due). |
Bond Valuation
Calculate bond price given yield to maturity. |
|
Calculate bond yield to maturity given price. |
|
Calculate Macaulay duration of a bond. |
|
Calculate modified duration of a bond. |
|
Calculate convexity of a bond. |
Loan Analysis
Calculate periodic loan payment. |
|
Calculate remaining loan balance after specified payments. |
|
Generate loan amortization schedule. |
|
Calculate total interest paid over the life of the loan. |
Cash Flow Analysis
Calculate net present value of cash flows. |
|
Calculate internal rate of return for cash flows. |
|
Calculate payback period for cash flows. |
|
Calculate discounted payback period for cash flows. |
|
Calculate profitability index for cash flows. |
Module Overview
The qfinbox library provides a comprehensive suite of financial calculation tools:
28+ TVM Functions: Complete implementation across 5 specialized modules
Robust Validation: Input validation and error handling for all functions
Type Safety: Full type hints and runtime type checking
Performance Optimized: Uses NumPy and SciPy for fast calculations
Note
This API documentation is automatically generated from the source code docstrings. All functions include detailed parameter descriptions, return values, and usage examples.