Thank you, Martin! On Mon, Jan 4, 2021, 3:44 AM Martin Blais <[email protected]> wrote:
> The right thing to do is to have the reduction code log matching ids on > the augmenting and reducing lots, so that a single pass over the entries > can then gather all the trades (combinations of augmenting and reducing > lots) from any subset of transactions. I've been getting by on custom > scripts so far, and it's something I *really* want, and had a go at it one > evening a few months ago ( > https://github.com/beancount/beancount/tree/trade_quick_experiment), but > as always, the devil rears its ugly head when we get to the details and > this requires more than just a bit of hacking. > > v3 will *for sure* have this built in and it'll be clean. For now, you'll > have to write a script to pull together your trade data. > > > > On Sun, Jan 3, 2021 at 9:58 AM Alok Parlikar <[email protected]> wrote: > >> Hi, >> >> For a subtree of accounts (say, Assets:Investments) I need to generate >> details of capital gains calculation, e.g. >> >> units_sold | acquisition_date | cost | sale_date | price | gains >> >> I'm using the FIFO booking method. >> >> I was considering writing a script to do this, but also wondering if >> there would be a simpler approach -- would bean-report or bean-query >> support this? >> >> Thanks >> Alok >> >> -- >> 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 [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/beancount/882062a3-f927-4a80-a82d-d14cdc683729n%40googlegroups.com >> <https://groups.google.com/d/msgid/beancount/882062a3-f927-4a80-a82d-d14cdc683729n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "Beancount" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/beancount/VBfTDh5HlB4/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/beancount/CAK21%2BhPpu33hUSLZpeMxUG%2BsL4yQ_H9rNGQof2cxtFBB%2BSqZWQ%40mail.gmail.com > <https://groups.google.com/d/msgid/beancount/CAK21%2BhPpu33hUSLZpeMxUG%2BsL4yQ_H9rNGQof2cxtFBB%2BSqZWQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CACq9jsCprdx0ti9ZQXOQ%3Ds1uOFP5Wt2SDeqDXCkcF2bhN25GLw%40mail.gmail.com.
