Skip to content
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

Add cointracker and TaxBit CSV parsers #234

Merged
merged 10 commits into from
Jan 14, 2023

Conversation

davidkonigsberg
Copy link
Contributor

  • First I cleaned up the parser code to make it easier to extend

@davidkonigsberg davidkonigsberg self-assigned this Jan 11, 2023
@davidkonigsberg davidkonigsberg linked an issue Jan 11, 2023 that may be closed by this pull request
@davidkonigsberg davidkonigsberg changed the title Add another CSV parser Add cointracker CSV parser Jan 11, 2023
@davidkonigsberg
Copy link
Contributor Author

Tested my changes to parsing code to make sure old parsers were not affected.

Old:
csv1.csv

New:
csv2.csv

@davidkonigsberg davidkonigsberg marked this pull request as ready for review January 11, 2023 14:38
@davidkonigsberg
Copy link
Contributor Author

Going to add both parsers with this PR, so this PR also closes #233

@davidkonigsberg davidkonigsberg linked an issue Jan 11, 2023 that may be closed by this pull request
@davidkonigsberg davidkonigsberg changed the title Add cointracker CSV parser Add cointracker and TaxBit CSV parsers Jan 11, 2023
@davidkonigsberg davidkonigsberg marked this pull request as draft January 11, 2023 14:55
@davidkonigsberg
Copy link
Contributor Author

Been doing some local tests today, and the initial tests of the coin tracker code look good. While I have added support for the coin tracker tags, I am not using them anywhere. Firstly, they are optional, so I don't think we need to spend time on it for the grant (@KyleMoser and @danbryan let me know if you disagree). Secondly, they are subjective. The difference between a Gift and a Donation are determined require knowledge of the destination wallet. I think if we spend a lot of time on it, we might be able to figure out some of the other tags, but that will require more time and more knowledge of the specific msgs types and how coin tracker actually uses these tags....

TLDR: I think v0 of the coin tracker support is done. I am going to move on to working on the tax bit stuff. My hope is that we can get these both merged in this week or early next week at the latest, then @danbryan maybe you can do a bit of testing and create any tickets needed to resolve any bugs you find. I don't think our other parsers (koinly and accointing) are perfect either.

@davidkonigsberg
Copy link
Contributor Author

Local testing is looking ok for TaxBit, but testing in their system is slow. I have uploaded CSVs but the data hasn't shown up. They say it can take up to an hr, so before I open a ticket with them or anything I am waiting to see what happens. If TXs don't show up later today I will open a support ticket to look into this.

@davidkonigsberg
Copy link
Contributor Author

Ok, so after playing around with things I determine that the CSV uploads will ONLY work if the spruce is set. I can't leave it blank. @danbryan what do you think of me specifying "Hardware Wallet" for all transactions?

@davidkonigsberg
Copy link
Contributor Author

I added that, and now I am at least able to upload the transaction and view them in TaxBit

@davidkonigsberg
Copy link
Contributor Author

Ok, so, TaxBit is now working too, at least to the point that I can upload stuff and view it in the tax bit UI. As with coin tracker, there are some tags we simply can't add. To know the difference between a sale, an expense, a gift, and a transfer we need more information than we have. I think what we do have is enough to start on though. What I think we should do, at least in the near term, is provide documentation to users that explains the manual steps that will need to happen. While there are things we can do automatically, at the end of the day, there will ALWAYS be some manual steps required.

Beyond this though, I think we are good. I have tested locally and the generated CSVs look good. I have also uploaded CSVs to both websites and they show up in a way that I think broadly correct. As above, I say we merge this stuff in and then make more explicit tickets for any bugs we find during testing. I think we have what we need to merge this.

@KyleMoser @danbryan what do you think? I am AFK for the rest of the day for non-defiant work, but if you are happy with what we have here I can merge it tomorrow and start working on some of the other high priority tickets while @danbryan does some testing. Thoughts?

@danbryan
Copy link
Collaborator

sounds good to me. I think some items should be left up to the user to categorize. We have no idea if the funds they received were for services rendered, or a gift. I would just leave those blank and let the user fill that out in taxbit/cointracker

@davidkonigsberg davidkonigsberg marked this pull request as ready for review January 13, 2023 13:52
@davidkonigsberg davidkonigsberg merged commit 1a22ab9 into main Jan 14, 2023
@davidkonigsberg davidkonigsberg deleted the 232-csv-support-for-cointrackerio branch January 14, 2023 11:27
pharr117 pushed a commit that referenced this pull request May 14, 2023
* simplify parser code
* add cointracker parser
* break down test code
* Add initial support for taxbit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CSV support for TaxBit CSV support for cointracker.io
2 participants