Skip to main content

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.

Supported Brokers

Broker Input Format Detection Status Instructions
Binance CSV ✅ Automatic View Instructions
Coinbase CSV ✅ Automatic View Instructions
Inversis Excel / HTML ✅ Automatic View Instructions
MyInvestor CSV ✅ Automatic View Instructions
XTB Excel ✅ Automatic View Instructions

Quick Start (Recommended)

The easiest way to run the tool without installing it globally is using uvx (part of the uv toolchain).

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

Alternative Installation

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 (with uv)

If you want to run the latest version from git without cloning:

# Web Interface
uvx --from git+https://github.com/marmol-dev/portfolio-performance-converter portfolio-performance-converter web

Or if you have cloned the repository:

# Run directly from source folder
uv run pp-converter web

Usage Examples

CLI Basic Usage:

pp-converter --input <path_to_file> --output <output_file.csv>

Examples:

# Single file
pp-converter --input "orders.csv" --output "converted.csv"

# Multiple files
pp-converter --input file1.csv file2.xlsx --output "consolidated.csv"

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

portfolio_performance_converter-0.1.1.tar.gz (194.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

portfolio_performance_converter-0.1.1-py3-none-any.whl (27.5 kB view details)

Uploaded Python 3

File details

Details for the file portfolio_performance_converter-0.1.1.tar.gz.

File metadata

File hashes

Hashes for portfolio_performance_converter-0.1.1.tar.gz
Algorithm Hash digest
SHA256 df121d74cff6c9b2e0f74336ad143688793131c5ed75f7af266adc683b4645f1
MD5 777c6b24c78a9567d046858f9e6a9517
BLAKE2b-256 bb2b0128e8c03a90222a6856915bed175fc967d0ef245157f4d23038acbb07f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for portfolio_performance_converter-0.1.1.tar.gz:

Publisher: ci.yml on marmol-dev/portfolio-performance-converter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file portfolio_performance_converter-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for portfolio_performance_converter-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9c9b13663d070eb8e5fc1f120e77ab405667b6073c230fcfe9d30c2b3990e1e4
MD5 b0ab425d5a188690d668c98a24b61452
BLAKE2b-256 d07710c7164d4876fd43a44e2bd44f30a0ce0ac581884a8f6883a852fd264017

See more details on using hashes here.

Provenance

The following attestation bundles were made for portfolio_performance_converter-0.1.1-py3-none-any.whl:

Publisher: ci.yml on marmol-dev/portfolio-performance-converter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page