We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
"Amount of sales for symbol exceeds the amount of buys" I checked all the BUYS and SELLS in my data and this is not possible.
The text was updated successfully, but these errors were encountered:
There is an issue with decimal precision.
In particular this is impacted in calculateCapitalGainsForSale, on the if(sale.amount > 0) row.
The differences we have found are on the 14th decimal.
The solution is to replace it with if(Math.round(sale.amount, 4) > 0). Replace 4 with the appropriate precision.
You can also test this by modifying the throw Error row to:
throw Error("Amount of sales for symbol " + sale.symbol + " exceeds the amount of buys by " + sale.amount);
Sorry, something went wrong.
No branches or pull requests
Bug report
"Amount of sales for symbol exceeds the amount of buys"
I checked all the BUYS and SELLS in my data and this is not possible.
The text was updated successfully, but these errors were encountered: