On Tue, Nov 21, 2023 at 11:36 AM Dan Andersson <danandersso...@gmail.com>
wrote:

> Hi,
>
> My goal is to convert Interactive Brokers statements (their XML flex
> statements) to Beancount.
>
> Normally I wouldn't have to think about lots and prices, because each
> <Trade ... /> already tells me cash in/out (and realized FIFO pnl).
>

If they're booked FIFO you should be able to find the matching lots.
You can also use Beancounts' automatic FIFO booking by specifying it on the
account, hopefully it should match those.



>
> So I already know exactly the amount that leaves/enters the cash account
> and exactly the quantity that enters/leaves the financial instrument
> account.
>
> From what I currently understand, it's only because of Beancount
> peculiarity that I need to go through the trouble of matching the
> individual lots. Normally, there would not be much point in doing that (at
> most, I'd only want "price" commands at the end of the year to get my
> **unrealized** PnL).
>
> Is my understanding correct? Or can lots somehow already been auto-matched
> according to e.g. FIFO?
>

Yeah, just specify "FIFO" on the account.




>
> Thanks,
> Dan
>
> --
> 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 beancount+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beancount/5003ba33-e6fd-4553-b3c8-1568afda1504n%40googlegroups.com
> <https://groups.google.com/d/msgid/beancount/5003ba33-e6fd-4553-b3c8-1568afda1504n%40googlegroups.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 beancount+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CAK21%2BhORySn-O2SEoVSVniH3JgCuqP%3DozwU-V%3DVGU_Tpvzj2Zw%40mail.gmail.com.

Reply via email to