Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assets -> Allocation doesn't respect default currency #235

Closed
kunaguvarun opened this issue May 25, 2024 · 10 comments
Closed

Assets -> Allocation doesn't respect default currency #235

kunaguvarun opened this issue May 25, 2024 · 10 comments

Comments

@kunaguvarun
Copy link

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.

@ananthakumaran
Copy link
Owner

Share a minimal sample ledger

@kunaguvarun
Copy link
Author

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

@ananthakumaran
Copy link
Owner

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

@kunaguvarun
Copy link
Author

kunaguvarun commented May 26, 2024

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

@kunaguvarun
Copy link
Author

kunaguvarun commented May 28, 2024

@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
Copy link
Owner

ananthakumaran commented May 28, 2024 via email

@kunaguvarun
Copy link
Author

kunaguvarun commented May 28, 2024

@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

@kunaguvarun
Copy link
Author

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

@ananthakumaran
Copy link
Owner

ananthakumaran commented May 30, 2024 via email

@ananthakumaran
Copy link
Owner

image

image

image

image

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

Repository owner locked and limited conversation to collaborators Jun 1, 2024
@ananthakumaran ananthakumaran converted this issue into discussion #237 Jun 1, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants