ananthakumaran/paisa

Assets -> Allocation doesn't respect default currency

Closed this issue · 10 comments

I select my default currency as USD. I have logged investments in both US and India in their respective currencies. the Assets -> Allocation page and Assets -> Balance table doesn't respect my choice of USD as default currency. I've added price entries as below.

P 2024/05/01 00:00:00 USD 83.29 INR

The pages should have automatically converted my INR to USD and display all values as only USD.

Share a minimal sample ledger

I've configured my default currency to USD within Configuration. Here is a sample ledger that I used

P 2024/05/01 00:00:00 USD 83.5 INR
2024/05/01 Start
Assets:Checking:Frost 1319.69 USD
Assets:Stocks:INDIA 34343.66 "NIFTY_50" @ 12.99 INR
Equity:OpeningBalance

The assets -> balance table displays Investment amount in USD but the other columns like Market value are showing in INR. How can I display all the values in USD? The same problem is on every page. Due to the INR being treated as USD it is messing up all the numbers. I would expect paisa to convert INR to USD in every page and show me only USD

Screenshot 2024-05-26 at 12 32 03 AM

image

The example you shared seems to work for me. What's your timezone? can you try to change the price date to 2024/04/30 00:00:00

I'm in central timezone. I'm using desktop app on Mac OS. I tried changing pricedate to 4/30. There is no change. If I comment out INR assets, all values in all pages appear in USD. If I enable INR assets, it messes up the numbers. USD and INR are displayed without INR being converted to USD

@ananthakumaran,
I have deleted Paisa from my machine completely, installed again and recreated my ledger file and was able to reproduce the problem again. The issue is with adding INDIA assets as commodities. I added NIFTY 50 as a commodity from in-mfapi

As soon as I added NIFTTY 50 as a commodity, all INR numbers stopped converting from INR to USD. Hope this gives enough information for you to troubleshoot and provide a fix. Thaks.

@ananthakumaran
Tried yahoo and still the same. I'm thinking that it has noting to do with the price fetch APIs because prices are correctly updated under Assets -> Price. Its more to do with the conversion from INR to USD.

image

@ananthakumaran
Were you able to reproduce this problem on your side? Without currency conversion happening the app is of no use

image

image

image

image

I have tested it with yahoo, it's working as expected.