Comments (5)
Thank you! Sorry I haven't had time to upload my data yet. I will check what you found and confirmed it! Thanks again
from rp2.
Thanks for opening an issue! I need more information in order to understand what is happening:
- would you be able to attach an (anonymized) file that reproduces the problem?
- are these all the transactions you have or are there more? I need to know the full context to understand why the error message is being given.
- are you using FIFO or LIFO?
- what version of RP2 are you using?
from rp2.
I'm not able to reproduce the issue. I created an input ODS file with the transactions you indicated + its respective config file (both attached): I then used them with RP2, which computes and generates results correctly both with FIFO and LIFO.
Here are the command lines I used:
- rp2_us -m fifo -o output/ -p issue8_ issue8.config issue8.ods
- rp2_us -m lifo -o output/ -p issue8_ issue8.config issue8.ods
I think you may have extra transactions in your file: the error is probably telling you that you are selling lots that have not been bought yet, but I would have to see the file to be sure.
Also make sure you're using the latest version of RP2.
from rp2.
I was able to reproduce the error message by adding one single OUT transaction before the one you indicated (see picture below): the error message is correct and not an RP2 bug.
The error is rightly saying that some lot fractions are sold before they were acquired (which is not allowed). Here are the details of the computation, using the example from the picture and assuming FIFO accounting:
- 0.01 from OUT 2021-01-12 is mapped to IN 2021-01-03 (leaving 0.99 in that lot)
- 0.99 from OUT 2021-01-13 is mapped to the 0.99 leftover of IN 2021-01-03 (exhausting the lot)
- 0.01 leftover from OUT 2021-01-13 is mapped to the next IN lot, which is 2021-11-06
However the last step triggers the error, because the date of the IN lot is later than the date of the OUT lot, which denotes an impossibility.
This is not a bug: it's just pointing to an inconsistency in the input data (it has been entered incorrectly or perhaps some transactions are missing).
Attaching the modified ODS with the extra OUT transaction: issue8_repro.zip.
I think this may be what's happening with your data as well, however if you think your case is different than what was explained above, please attach (or send) a file that reproduces the problem and I'll take a look.
from rp2.
Closing the issue.
from rp2.
Related Issues (20)
- Short term vs. long term gains HOT 5
- Parameter 'crypto_fee' has zero value HOT 3
- Open Positions affected by "from date" HOT 1
- Spending from Exchange with zero balance HOT 14
- Add Support for South Africa HOT 2
- Incorrect lot exhaustion in HIFO HOT 2
- Few minor suggestions HOT 1
- Uncertain, but considering making a python wallet reader HOT 1
- Per wallet/exchange Specific Identification (FIFO, LIFO, etc...) Resolution HOT 27
- Exception when executing HOT 3
- Question about "Open Positions by Asset" report HOT 2
- Crypto fee in OUT table HOT 24
- FIFO and exchange/wallet cost-basis calculation HOT 5
- RP2 process runs after "DONE" HOT 5
- Investment Expenses can no longer be used for Deductions HOT 10
- Call for GUI coders: create an intuitive GUI to drive RP2 and DaLI HOT 3
- I can def help HOT 2
- Using Pionex data to Rp2 using dali isn't working. __crypto_sent = unknown HOT 4
- Error total in-transaction crypto value < total taxable crypto value HOT 1
- [Request] Expose settings for what constitutes a taxable event HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rp2.