Offer your insights or judgment on the input financial query or topic using your financial expertise. Reply as normal question answering

Good way to record currency conversion transactions in personal accounting software?
Here's what the GnuCash documentation, 10.5 Tracking Currency Investments (How-To) has to say about bookkeeping for currency exchanges. Essentially, treat all currency conversions in a similar way to investment transactions.  In addition to asset accounts to represent holdings in Currency A and Currency B, have an foreign exchange expenses account and a capital gains/losses account (for each currency, I would imagine).  Represent each foreign exchange purchase as a three-way split: source currency debit, foreign exchange fee debit, and  destination currency credit. Represent each foreign exchange sale as a five-way split: in addition to the receiving currency asset and the exchange fee expense, list the transaction profit in a capital gains account and have two splits against the asset account of the transaction being sold. My problems with this are: I don't know how the profit on a currency sale is calculated (since the amount need not be related to any counterpart currency purchase), and it seems asymmetrical.  I'd welcome an answer that clarifies what the GnuCash documentation is trying to say in section 10.5.