Get a wallet that calculates fiat price at time of calculation and gives capital gain/loss. coinos.io does it for every transaction and supports Lightning + Liquid.