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

CSV Export "account_transactions.csv" to contain time in addition to date #165

Closed
duke8585 opened this issue Jan 28, 2025 · 0 comments · Fixed by #179
Closed

CSV Export "account_transactions.csv" to contain time in addition to date #165

duke8585 opened this issue Jan 28, 2025 · 0 comments · Fixed by #179
Labels
enhancement New feature or request

Comments

@duke8585
Copy link

duke8585 commented Jan 28, 2025

Problem: The CSV export only has date precision on events. This happened while doing FIFO calculations on the exports, e.g.

> cat account_transactions.csv | grep Ethereum
2023-01-02;BUY;-199.999;Ethereum;XF000ETH0019;0.17376;;
2023-01-16;BUY;-199.999;Ethereum;XF000ETH0019;0.136859;;
2023-02-02;BUY;-200;Ethereum;XF000ETH0019;0.129008;;
2023-02-16;BUY;-199.999;Ethereum;XF000ETH0019;0.125415;;
2023-03-02;BUY;-199.999;Ethereum;XF000ETH0019;0.127376;;
2023-03-16;BUY;-199.999;Ethereum;XF000ETH0019;0.125818;;
2023-04-03;BUY;-199.998;Ethereum;XF000ETH0019;0.119007;;
2023-04-17;BUY;-199.999;Ethereum;XF000ETH0019;0.102802;;
2023-05-02;BUY;-199.999;Ethereum;XF000ETH0019;0.118203;;
2023-05-16;BUY;-200;Ethereum;XF000ETH0019;0.1181;;
2023-06-02;BUY;-199.999;Ethereum;XF000ETH0019;0.11159;;
2023-06-11;SELL;5,196.968;Ethereum;XF000ETH0019;3.201271;-1;
2023-06-11;BUY;-2,501.226;Ethereum;XF000ETH0019;1.511149;-1;
2023-06-11;BUY;-501.03;Ethereum;XF000ETH0019;0.303273;-1;
2023-12-09;SELL;1.38;Ethereum;XF000ETH0019;0.001089;-1;

in the last few rows, there are same day BUYs and SELLs. Of course, the BUYs cna only have happened before the SELLs in the TR app. But this information is lost here.

I can fix this in my script by additionally sorting by Type, but there might be additional cases, where this is not sufficient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant