eprbell / rp2

Privacy-focused, free, open-source cryptocurrency tax calculator for multiple countries: it handles multiple coins/exchanges and computes long/short-term capital gains, cost bases, in/out lot relationships/fractioning, and account balances. It supports FIFO, LIFO, HIFO and it outputs in form 8949 format. It has a programmable plugin architecture
https://pypi.org/project/rp2/
Apache License 2.0
256 stars 42 forks source link

Add more output to acquired lots exhausted exception. #110

Open jayr0d opened 3 months ago

jayr0d commented 3 months ago

The current output of AcquiredLotsExhaustedException is not helpful enough to the user. If they missed a transaction, had a typo in a transaction, or rounding errors are accumulating from the data provided by the exchange, the user will need to manually process their transaction history to find when the exception occurred.

The new output of AcquiredLotsExhaustedException will provide the calculation result and the offending location in the transaction history.

black src tests reformatting is also included.