1
0
Files
plaintextaccounting/src/Investing-and-trading.md
2024-04-08 12:03:34 -10:00

2.6 KiB

% Investing and trading

Stocks, EFTs, cryptocurrencies, etc. (The journal entries are much the same for any of these, so feel free to translate examples to different commodities.)

The main challenge of accounting for investments and trading in PTA is tracking lots and disposing (selling) them in the right order. Here are several methods:

  1. Lot subaccounts (works with any PTA app). Each lot is given an explicit subaccount, entries are created manually.

  2. Lot syntax (works with Beancount or Ledger). The app has special syntax and support for lots.

  3. Lot entry-generating tools. Add-on tools help generate lot-aware entries.

    • lotter detects lots from ordinary transactions, adds lot information to buy/sell entries. (Works with Ledger.)
    • hledger-lots detects lots from ordinary transactions, helps make buy/sell entries. (Works with hledger.)
    • hledger-move is a lower-level tool to help make trading (sell) entries. (Works with hledger-compatible journals.)

Sometimes calculating average cost basis is needed, and this another challenge, currently not well supported.

More: