Observed since 20 Oct, 17:10 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Applied actuarial and quantitative finance workflows for Python.
AbaQuant is an applied actuarial and quantitative-finance library for Python. Version 1.0.0rc1 stabilizes the public namespace around derivatives, financial mathematics, market data, credit analytics, portfolio construction, risk dashboards, visualization, reports, rate curves, and provenance-aware workflows.
pip install abaquant
For a local source checkout:
python -m pip install -e .
Optional extras are grouped by workflow:
python -m pip install -e .[market]
python -m pip install -e .[visual]
python -m pip install -e .[dev]
python -m pip install -e .[docs]
AbaQuant targets Python 3.11 through 3.14; the release workflow validates each version before publication. Live market-data workflows and visualization backends are optional; the mathematical core depends only on NumPy, pandas, and SciPy.
from abaquant.derivatives import BlackScholesMertonModel
model = BlackScholesMertonModel(
spot_price=100.0,
strike_price=105.0,
maturity_years=1.0,
risk_free_rate=0.04,
volatility=0.20,
)
price = model.price("call")
greeks = model.greeks("call")
from abaquant.marketdata import get_ticker
ticker = get_ticker("AAPL")
spot = ticker.spot()
# Live data requires an installed provider extra and provider availability.
from abaquant.portfolio import PortfolioAllocator
allocator = PortfolioAllocator.from_returns(returns)
weights = allocator.max_sharpe()
report = allocator.report()
from abaquant.rates import ManualRateProvider, get_rate_curve
curve = get_rate_curve(
provider=ManualRateProvider({1.0: 0.045, 5.0: 0.047, 10.0: 0.049})
)
discount = curve.discount_factor(5.0)
from abaquant.core import DataProvenance
provenance = DataProvenance(
provider="manual",
dataset="example",
request={"symbol": "AAPL"},
)
metadata = provenance.as_dict()
| Namespace | Purpose |
|---|---|
abaquant.derivatives | Vanilla, exotic, tree, simulation, strategy, calibration, and advanced option models. |
abaquant.financial_math | Time value of money, rates, annuities, bonds, loans, corporate finance, equity, portfolio math, and VaR helpers. |
abaquant.marketdata | Lazy ticker and universe facades, optional provider adapters, option-chain analytics, and financial statements. |
abaquant.credit | Credit transition matrices, CDS/CDO helpers, Gaussian copula simulation, credit proxy scoring, and credit VaR/CVaR. |
abaquant.portfolio | Allocation engines, downside-risk optimizers, backtesting, rolling metrics, and scenario analysis. |
abaquant.rates | Manual and FRED-backed rate curves, interpolation, discount factors, and interest-rate utilities. |
abaquant.visualization | Matplotlib and Plotly chart helpers with configurable themes. |
abaquant.reports | Markdown, HTML, and lightweight PDF report exports. |
abaquant.risk | Integrated risk dashboard workflows. |
abaquant.core | Shared provenance objects and provenance merging helpers. |
The root abaquant namespace re-exports the documented public facades and defines abaquant.__version__.
Market-data providers are optional and lazy. Object construction should not make network requests unless a retrieval method explicitly asks for provider data. Provider data can be unavailable, incomplete, stale, adjusted, restated, or subject to provider-specific terms and rate limits.
For SEC EDGAR requests, set a project-specific contact user agent when using live data:
export ABAQUANT_SEC_USER_AGENT="your-app/1.0 your.email@example.com"
For FRED requests, provide a FRED API key through the provider constructor or environment where supported.
AbaQuant implements educational and research-grade quantitative routines. Major assumptions include:
AbaQuant is not an investment adviser, broker, credit-rating agency, or risk-management system. Outputs are model-derived estimates for research and education, not trading, lending, investment, tax, accounting, or legal advice.
python -m pip install -e ".[dev,docs,market,visual]"
python -m ruff format --check .
python -m ruff check .
python -m pytest
python scripts/check_documentation.py
python -m sphinx -W --keep-going -b html docs docs/_build/html
python -m build
python -m twine check dist/*
See CONTRIBUTING.md for the complete contributor workflow and the hosted documentation for API contracts, model assumptions, and examples.
The Sphinx documentation source is written in native reStructuredText under docs/ and organized into topic subfolders: getting-started/, reference/, domains/, operations/, development/, and api/. The api/ tree is generated from the source package by python scripts/generate_api_docs.py; it mirrors all 109 Python modules/packages and renders detailed autodoc entries for the public callable surface.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.0.0rc1 | 13 Jul 2026 | 14 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 17:10 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:0a11a751b73e0906b1817c933566d0c38e7b2f2048bdcc7281c973287a8b1e70