Hi ralf! From what I understand, docker-finance
may be exactly what you’re looking for:
I don’t know what wallet/chain/exchange you’re using but, with docker-finance
and bitcoin.tax (not direct linking but they provide a service that calculates the FIFO/LIFO/etc. for you), you may be able to automate almost everything you’re trying to do (checkout the “Taxes” section in “Screenshots”).
For anything that can’t be automated, docker-finance
has a system in place that allows you to easily add custom comments on a per-transaction (or per-subaccount or per-whatever-tag-or-column-you-want-thanks-to-hledger-rules) basis as needed (even with emacs, if you’d like).