Closed avinashkanaujiya closed 11 months ago
Can you open developer tools > Network tab and view the response of /api/price
call? One of the commodities would have an empty array, the problem is due to that. Still trying to figure out how it could go into that state.
In the response, I can see that AAPL
has the empty array.
Do you have that commodity? or it's just in your commodity config?
Oh, it wasn't in my commodities config, but it is in my portfolio, now I think all the other are resolved. I think somehow, it should be managed in the code, that if commodities are not added, then it shouldn't try to look for it.
Can you share your transaction with AAPL entry? I will fix the issue, just want to confirm I am fixing the same issue.
Here is my apple transaction.
2023-05-08 Opening Balance US Stocks
Assets:Equity:Indmoney 0.69057594 AAPL @ 173.768 USD
Equity
Also just to summarize, as I wasn't clear in my last comment.
I forgot to add AAPL
stock to my commodities config, after which everything related to prices of commodities stopped working.
Once I added AAPL
stock to config, everything is working just fine.
is USD your default currency? if not Paisa will still not know how to convert USD to INR. You can instead specify the price in INR (if you don't know the price, just put a dummy value, once you fetch the price from the provider, the doctor page will warn about price mismatch)
I have pushed a fix for the error and the doctor page will also start to warn if it can't convert from commodity to default currency
Maybe I did wrong configuration, can anyone guide me?
There is no error in terminal.
The console has below error