spesmilo / electrum

Electrum Bitcoin Wallet
https://electrum.org
MIT License
7.39k stars 3.08k forks source link

Capital gains time selections / calculation #4211

Open LStella opened 6 years ago

LStella commented 6 years ago

Hello I was wondering two things:

  1. Is there documentation for the formula on how fiat capital gains are calculated?
  2. Is it possible to select the timeline? E.g. for first-in, last-out calculation of gains for all inputs and outputs in a particular year?
SomberNight commented 6 years ago

For (2), check out Wallet>History in the menubar.

Re (1), read the release notes for a brief description if you haven't yet https://github.com/spesmilo/electrum/blob/377825a4584caf1034c8e89e540e8ccee95d3af9/RELEASE-NOTES#L37-L47 but I am afraid there isn't really proper documentation available. You can of course check out the code https://github.com/spesmilo/electrum/blob/bfccfc7e7410601dfb8e1d73eb05cbc8763ca14b/lib/wallet.py#L1049