In addition to classifying capital gains as long-term or short-term (in the US), it is useful to classify them into gains and losses, useful for debugging taxes, or tax planning <https://reds-rants.netlify.app/personal-finance/computing-taxes-with-beancount/>, and such.
Here is a second plugin, gain_loss <https://github.com/redstreet/beancount_reds_plugins/tree/main/beancount_reds_plugins/capital_gains_classifier#readme>, that trivially rewrites capital gains postings into losses and gains. For example, it converts: 2016-03-02 * "Sell" Assets:Brokerage -100 ORNG {1 USD} @ 0.50 USD Assets:Bank 50 USD Income:Capital-Gains to 2016-03-02 * "Sell" Assets:Brokerage -100 ORNG {1 USD} @ 0.50 USD Assets:Bank 50 USD Income:Capital-Gains:Losses An example config for using both plugins (long_short and gain_loss) is in the README <https://github.com/redstreet/beancount_reds_plugins/tree/main/beancount_reds_plugins/capital_gains_classifier#readme> . -- You received this message because you are subscribed to the Google Groups "Beancount" group. To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/7843e74d-a7d3-4c4b-af9a-f6ada47c7916n%40googlegroups.com.