Summary
Fondinsyn is an independent open-data explorer for quarterly fund-holdings snapshots published by Finansinspektionen (FI). Its ingestion pipeline retrieves and parses FI’s XML data, records the source and publication context, and stores normalized holdings in PostgreSQL for quarter-by-quarter exploration.
The application pairs a Python and FastAPI backend with server-rendered Jinja2 templates and HTMX interactions. It is designed to make the reported data easier to inspect without presenting it as live market information or a trading signal.

Data pipeline and provenance
The pipeline handles FI’s quarterly ZIP/XML releases and transforms reported fund and instrument records into a PostgreSQL model keyed to their reporting quarter. The /datastatus page surfaces ingestion state, source filenames, publication metadata, and audit timestamps. When a timestamp is unavailable from the source, the interface identifies it as unrecorded rather than implying a value.
Direct source-file links preserve traceability to FI’s published data. External links use rel="noopener noreferrer".
Quarter-over-quarter comparison
The /compare view compares reported positions across two quarters, including changes in market value (SEK) and portfolio weight. Position badges distinguish Ny, Ökad, Minskad, and Avslutad positions.
These are differences between reported snapshots, not a record of actual trades. A change can reflect market-value movement, portfolio rebalancing, reporting differences, or other factors.
Application architecture
- API and application: Python with FastAPI.
- Views and interaction: Jinja2 server-rendered pages with HTMX-enhanced components.
- Persistence: PostgreSQL stores the quarterly holdings and related data.
- Deployment: Docker packages the application and its runtime configuration.
Security and operational hygiene
Database credentials are supplied through the DATABASE_URL environment variable rather than committed configuration. Credentials were rotated, and the repository history was sanitized with git-filter-repo before the rewritten history was published with an explicit --force-with-lease push. Sensitive values in retained material are represented as REDACTED. The repository was reorganized into app/, templates/, static/, and docs/.
Regulatory context and disclaimer
FFFS 2013:9 and Lag (2013:561) are included as regulatory context only. Fondinsyn is an independent project and is not affiliated with, endorsed by, or operated by Finansinspektionen.
The application presents historical quarterly data, not live or real-time prices. It is intended for educational and analytical exploration and is not investment advice or a recommendation to buy or sell any financial instrument.
Roadmap
The ingestion status, source provenance, quarter comparison, position labels, and application architecture described above reflect the current project. Potential future work—such as richer data-quality reporting and additional historical comparison views—remains planned and should not be read as functionality already available.