Lot matching necessary?

2023-11-21 Thread Dan Andersson
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 already tells me cash in/out (and realized FIFO pnl). So I already know exactly the amount that leaves/enters the cash accou

Re: Lot matching necessary?

2023-11-21 Thread Martin Blais
On Tue, Nov 21, 2023 at 11:36 AM Dan Andersson 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 > already tells me cash in/out (and realized FIFO pnl). > If

Re: Lot matching necessary?

2023-11-21 Thread nug get
Hi Dan My goal is to convert Interactive Brokers statements (their XML flex statements) to Beancount. have a look at https://github.com/Dr-Nuke/drnuke-bean/blob/master/src/drnukebean/importer/ibkr.py It's been a while, but if I remember correctly, it does the job of finding the correct lots f