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 portfolio-performance-converter web

Run CLI:

uvx portfolio-performance-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.0.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.0-py3-none-any.whl (27.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for portfolio_performance_converter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e44a0e3e117540ec976e93b6ce6dcc599a81bb31ce3bf4d84daf131ece64af72
MD5 d198ddcc5b9d91e02f904e7146de4f57
BLAKE2b-256 261b1b043f80507ac5b6193a06e3f5336b86cd1df1e7c0d9e9a6e85a5f833909

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for portfolio_performance_converter-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bba35fe41792e52cc5cee03617dceca7ee2402e9fb77929f14e6f40a3e26d1a2
MD5 e73f054e5e50c9f922fa2170a553c86d
BLAKE2b-256 3c13b49c24aa2c72677e78fd1a6b634bcceb8b43c95cdcb93b47354c8eb30c92

See more details on using hashes here.

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