Re: Updating lot information for an automated transaction
> "s" == samt writes: s> Any guidance on this? It would really help me a lot to have the sale date s> and sale price of each of these "Sold Lots" lots. I need to be able to s> determine the fraction of the capital gain that was earned in the calendar s> year of the sale (i.e. (asset sale price) - (asset price on Jan 1st in the s> year of the sale)). What I do is assign a unique identifier to each "position", so that by querying later I can see every transaction related to that position, including those short-term sales and repurchases that do nothing more than effect the cost basis. Btw, I'm working on a new utility called "trade-journal" that is a simplified Ledger focused just on keeping a trading journal, which converts its input files into properly annotated Ledger files, thus saving you from most of the calculation and repetition. https://github.com/jwiegley/thinkorswim/tree/master/trade-journal 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 ledger-cli+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/m28s6yhlad.fsf%40newartisans.com.
Re: Updating lot information for an automated transaction
Any guidance on this? It would really help me a lot to have the sale date and sale price of each of these "Sold Lots" lots. I need to be able to determine the fraction of the capital gain that was earned in the calendar year of the sale (i.e. (asset sale price) - (asset price on Jan 1st in the year of the sale)). On Monday, February 15, 2021 at 6:26:52 PM UTC-5 samt wrote: > I am trying to track previously sold lots in ledger using automated > transactions. I have created this automated transaction rule to achieve > this: > > = /^Assets:Investments:/ & (expr amount < 0) & > tag("realized-capital-gains") > (Sold Lots:$account) (-1 * amount) > > I wanted to know if it's possible for me to update the lot details for > these transactions; in particular, I wanted to add a customized note to the > generated lot indicating the date of sale and the sale price per share. > > - Sam > -- --- 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 ledger-cli+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/364e5af7-6814-48df-b77c-ff9cc6b7e473n%40googlegroups.com.
Updating lot information for an automated transaction
I am trying to track previously sold lots in ledger using automated transactions. I have created this automated transaction rule to achieve this: = /^Assets:Investments:/ & (expr amount < 0) & tag("realized-capital-gains") (Sold Lots:$account) (-1 * amount) I wanted to know if it's possible for me to update the lot details for these transactions; in particular, I wanted to add a customized note to the generated lot indicating the date of sale and the sale price per share. - Sam -- --- 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 ledger-cli+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/49a88e41-910a-4fee-b78d-94bb74665b47n%40googlegroups.com.