ghostfolio / ghostfolio/ghostfolio

[BUG] App not considering currency profit / loss

Open
#5,722 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
TypeScript
Stars
9.3k
Forks
1.3k
Avg merge
22h 5m
Merged PRs (30d)
172

Description

Hi, either I don't know how to use the app or it completely messes activities when multiple currencies used.

Let's consider the below scenario...

Base currency: PLN
Account currency: USD

Transaction: BUY
Date: 15.10.2022
Asset: TSLA
Quantity: 10
Unit Price: 200 USD
Total investment: 2000 USD (x echange rate 4,94 = 9880 PLN)

Image

Today: 10.10.2025
Unit Price: 413,49 USD
Value: 10 x 413,49 = 4134,9 USD
Exchange rate: 3,68
Profit in PLN: 4134,9 * 3,68 - 9880 = 5336 PLN

Image

Therefore:
**First Activity** date is wrong. Displayed 14.10.2022 while activity date is 15.10.2022
**Change with currency effect** is wrong. It should be 5336 PLN as calculated above.
**Investment** is wrong. Should be 9 880 PLN and not 7260 PLN.

In other words, when I buy stocks in USD, I’m essentially purchasing USD with PLN at a specific exchange rate at that moment. As a result, when I later sell the stocks and convert USD back to PLN, my final return depends not only on the stock price but also on the exchange rate. How should this scenario be handled correctly in the app? Because it seems like it’s either not working or I’m not using it properly :(

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.