Sorry, my question was if there is a way to automate this. I have more than 2000 transactions and doing that manually is not really an option.
On Thursday, December 14, 2023 at 8:39:32 PM UTC-5 John Wiegley wrote: > >>>>> "lf" == lipp f <[email protected]> writes: > > lf> I'm importing all transactions from my broker. They are buy / sell > lf> securities. Is there a easy way to create the capital gain records? > > For purchases, just to be sure to record the price at purchase of the late. > > For sales, you need to record the price of the lot along with the price of > the > sale, which will create an need for Ledger to balance the gain or less. > > Here’s a real example: > > 2021/01/29 * BOT +100 AMC @13.00 > Assets:TD:Brokerage:Equities 100 AMC @ $13.00 > Assets:TD:Brokerage:Cash $-1,300.00 > > 2021/02/01 * SOLD -100 AMC @14.00 > (Expenses:TD:Fees) $0.04 > Income:Capital:Short $-99.96 > Assets:TD:Brokerage:Equities -100 AMC {$13.00} @ $14.00 > Assets:TD:Brokerage:Cash $1,399.96 > > John > -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/a6b62d17-0231-4cc4-bacc-485f4e460d3en%40googlegroups.com.
