provinzio / CoinTaxman

Calculate your taxes from cryptocurrency gains
GNU Affero General Public License v3.0
142 stars 31 forks source link

Resolve Withdrawals/Deposits #121

Closed jhoogstraat closed 2 years ago

jhoogstraat commented 2 years ago

This is the follow-up for #116.

Contains a simple algorithm which matches related withdrawals and deposits.

Deposits now have a link property containing a reference to the matching withdrawal. The algorithm checks that:

  1. the coin matches
  2. the deposit change is between .99 and 1 times the withdrawal change (accounting for potential fees).
jhoogstraat commented 2 years ago

I see rebasing did not work as expected. One sec.

provinzio commented 2 years ago

Hey @jhoogstraat, thank you for your good and helpfull contribution. The deposit/withdrawal match is an important milestone for a correct tax evaluation.