Keeping track of the age of coins for tax in Germany

Hi,

in Germany the capital gain tax on crypto is paid only if the coins where used to earn any income (e.g. for stacking). Is there in koinly something that allows you to know if a certain amount of coin was never used so it can be sold tax free? We must say that the law says that if you sell, it is supposed always that you sell the coin that are older than a year and were not used for generating income.

Thanks.