Tool to convert exports from various brokers to a CSV format compatible with Portfolio Performance.
Project description
Broker to Portfolio Performance Converter
Tool to convert exports from various brokers to a CSV format compatible with Portfolio Performance. The system automatically detects the broker format from the input files.
Motivation
TL;DR: This tool automates the transformation of bank and broker exports (often chaotic and heterogeneous) into a standardized CSV format that Portfolio Performance can import without errors.
The Problem
Portfolio Performance is an exceptional platform for monitoring financial assets, calculating returns, and managing investment portfolios. However, manually inputting every purchase, sale, or dividend is a tedious and error-prone task.
Although Portfolio Performance supports bulk importing via CSV files, the current financial ecosystem presents several challenges:
- Heterogeneous Formats: Every financial institution exports data in a different format (XLS, CSV, JSON, XML).
- Data Inconsistency: Column names, date formats, and decimal separators vary between brokers.
- Incomplete Information: Key identifiers like ISIN or Ticker Symbols are often missing, preventing Portfolio Performance from correctly identifying the asset.
The Solution
This tool acts as an intelligent bridge. It automatically detects the source of your files, cleans the data, searches for missing identifiers (like Tickers), and unifies all information into a single CSV file perfectly compatible with Portfolio Performance.
Installation
🚀 Docker (Recommended)
The easiest way to run the tool without installing Python or dependencies.
Launch Web Interface:
docker run --rm -p 7860:7860 ghcr.io/marmol-dev/portfolio-performance-converter:latest
Run CLI:
docker run --rm -v $(pwd):/data ghcr.io/marmol-dev/portfolio-performance-converter:latest -i /data/input.csv -o /data/output.csv
Using uvx
Use uvx (part of the uv toolchain) to run it without manual installation.
Launch Web Interface:
uvx --from portfolio-performance-converter pp-converter web
Run CLI:
uvx --from portfolio-performance-converter pp-converter -i input.csv -o output.csv
Using pip
Install the package from PyPI:
pip install portfolio-performance-converter
Then run it:
# Web Interface
pp-converter web
# CLI
pp-converter -i input.csv -o output.csv
Run from Source
If you want to run the latest version from git without cloning:
uvx --from git+https://github.com/marmol-dev/portfolio-performance-converter portfolio-performance-converter web
Or if you have cloned the repository:
uv run pp-converter web
Usage
🌐 Web Interface (Recommended)
The easiest way for most users. Just upload your files and download the result.
- Launch the web app (see Installation).
- Upload your broker export files.
- Download the
converted.csv.
💻 Command Line Interface (CLI)
Ideal for advanced users or automation.
# Basic usage
pp-converter --input <path_to_file> --output <output_file.csv>
# Multiple files
pp-converter --input file1.csv file2.xlsx --output "converted.csv"
📥 Importing into Portfolio Performance
Once you have your converted.csv:
- Open Portfolio Performance.
- Go to File > Import > CSV Files...
- Select your
converted.csvand follow the matching wizard.
Supported Brokers
| Broker | Input Format | Detection Status | Export instructions | Example |
|---|---|---|---|---|
| Binance | CSV | ✅ Automatic | Instructions | Sample |
| Coinbase | CSV | ✅ Automatic | Instructions | Sample |
| Inversis | Excel / HTML | ✅ Automatic | Instructions | Sample |
| MyInvestor | CSV | ✅ Automatic | Instructions | Sample |
| XTB | Excel | ✅ Automatic | Instructions | Sample |
Development
If you want to contribute or work with the source code:
1. Clone the repository
git clone <repository_url>
cd portfolio-performance-converter
2. Install dependencies (with uv)
We recommend using uv for development.
uv sync
3. Running Tests
uv run pytest
Project Structure
src/: Main source code.converters/: Conversion modules for each broker.utils.py: Shared utility functions.market_data.py: Interaction with Yahoo Finance.main.py: Unified CLI entry point.app.py: Web graphical interface (Gradio).
config.yaml: Configuration of overrides for ISINs/Symbols.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file portfolio_performance_converter-0.2.0.tar.gz.
File metadata
- Download URL: portfolio_performance_converter-0.2.0.tar.gz
- Upload date:
- Size: 3.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04bec6436b94c634600426cf05562e3a4e5c139a6a685f29e8abe84ceaba869a
|
|
| MD5 |
b37d0a5ced1c500b5ae539e8b706a7a2
|
|
| BLAKE2b-256 |
355539a0a693bf31b49e42e4255d221c92f632957a339266898a59146479d766
|
Provenance
The following attestation bundles were made for portfolio_performance_converter-0.2.0.tar.gz:
Publisher:
ci.yml on marmol-dev/portfolio-performance-converter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
portfolio_performance_converter-0.2.0.tar.gz -
Subject digest:
04bec6436b94c634600426cf05562e3a4e5c139a6a685f29e8abe84ceaba869a - Sigstore transparency entry: 855527346
- Sigstore integration time:
-
Permalink:
marmol-dev/portfolio-performance-converter@a408dc19ca828038c5a25fe270de47574dce8ae2 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/marmol-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@a408dc19ca828038c5a25fe270de47574dce8ae2 -
Trigger Event:
push
-
Statement type:
File details
Details for the file portfolio_performance_converter-0.2.0-py3-none-any.whl.
File metadata
- Download URL: portfolio_performance_converter-0.2.0-py3-none-any.whl
- Upload date:
- Size: 28.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9d9028e3bab35e305365b63569d8a71c30bdceabc6b817118450ad703962006
|
|
| MD5 |
00141fe97c73db678349e3b616b6f0fe
|
|
| BLAKE2b-256 |
5cc2eda71f4725328a16b92347f1c3ea01645827fa2380dc94aaac19d69d97ef
|
Provenance
The following attestation bundles were made for portfolio_performance_converter-0.2.0-py3-none-any.whl:
Publisher:
ci.yml on marmol-dev/portfolio-performance-converter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
portfolio_performance_converter-0.2.0-py3-none-any.whl -
Subject digest:
d9d9028e3bab35e305365b63569d8a71c30bdceabc6b817118450ad703962006 - Sigstore transparency entry: 855527395
- Sigstore integration time:
-
Permalink:
marmol-dev/portfolio-performance-converter@a408dc19ca828038c5a25fe270de47574dce8ae2 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/marmol-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@a408dc19ca828038c5a25fe270de47574dce8ae2 -
Trigger Event:
push
-
Statement type: