Skip to main content

portfolio-overview

Data-contract, base-currency-agnostic multi-custodian portfolio valuation, performance, risk, bond analytics, and Excel workbook engine.

portfolio-overview composes five standalone financial libraries into a deterministic, zero-network functional core:

  • eod-market-data — canonical EOD price/FX time-series store and calendar guards
  • ibkr-flex-accounting — optional Interactive Brokers Flex XML accounting snapshots
  • fhs-market-risk — EWMA Filtered Historical Simulation VaR/ES, walk-forward backtesting, and FX sensitivity
  • portfolio-twr — linked daily TWR, geometric contribution attribution, drawdown/Sharpe/Sortino, and Modified Dietz
  • callable-bond-analytics (optional [bonds] extra) — QuantLib callable/perpetual bond YTC, YTP/YTW, Modified Duration, and DV01

Architecture

No plugin registries or global state: every boundary is an immutable, versioned data contract.

YAML / CSV / IBKR Flex XML (or your private bank ETL)
        │
        ▼
  PortfolioBook  (typed input IR, schema_version = 1)
        │
        ▼
  evaluate(book)  (pure functional core, zero network IO)
        │
        ▼
  PortfolioReport (typed output IR, base-currency-agnostic JSON)
        │
        ├──▶ render_workbook(report, out.xlsx)
        └──▶ Your downstream consumers (private bank controls, email, MCP)

Installation

pip install portfolio-overview
# With QuantLib callable/AT1 bond analytics:
pip install "portfolio-overview[bonds]"

Quick Start

# 1. Scaffold a starter portfolio (or run on examples/demo-portfolio)
portfolio-overview init ./my-portfolio

# 2. Fetch EOD security prices & FX pairs into market-history.csv (Yahoo Finance)
portfolio-overview fetch ./my-portfolio

# 3. Validate & build JSON report + Excel workbook (zero network IO)
portfolio-overview validate ./my-portfolio
portfolio-overview build ./my-portfolio --out ./out

Or from Python:

from pathlib import Path
from portfolio_overview import evaluate, load_book, render_workbook

book = load_book(Path("examples/demo-portfolio"))
report = evaluate(book)
print(f"NAV ({report.base_currency}): {report.nav:,.2f}")
render_workbook(report, Path("out/portfolio-overview.xlsx"))

License

MIT — see LICENSE.

Metadata

Release files for portfolio-overview 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for portfolio-overview 0.4.0
File Size Uploaded Provenance Actions
portfolio_overview-0.4.0.tar.gz 137.7 kB Without provenance Details for portfolio_overview-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for portfolio-overview 0.4.0
File Interpreter ABI Platform Actions
portfolio_overview-0.4.0-py3-none-any.whl Python 3 none any Details for portfolio_overview-0.4.0-py3-none-any.whl

Total release size: 175.4 kB

Release files / portfolio_overview-0.4.0.tar.gz

Download URL portfolio_overview-0.4.0.tar.gz
Size 137.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2bace60d424cbc68de971db7f925239b1559cd3d794ae16e7f03608ea1a4652f
BLAKE2b-256 checksum
How to use checksums
df4d0edcf11cad8929038445a4ac62504a4b2270dd76a1b3e9c6cdd076ceffcb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / portfolio_overview-0.4.0-py3-none-any.whl

Download URL portfolio_overview-0.4.0-py3-none-any.whl
Size 37.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b8720707d03cc2bf837120e2857064f849bbe87f5c33fbad1e79ce81ece6dcb6
BLAKE2b-256 checksum
How to use checksums
f1abe0825b3bc656b07a4c2f893c941c03200220f37dfa730767e51f6c3139b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for portfolio-overview 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page