ib-edavki icon indicating copy to clipboard operation
ib-edavki copied to clipboard

Check if script can work without Lots

Open jamsix opened this issue 3 years ago • 2 comments

This is a simplification task. See if you still need Lots in IB XML outputs or you could pull all the data from Trades only.

jamsix avatar Mar 02 '21 09:03 jamsix

I figured that trades normally contain the average price and lots are basically "fills". So if you have a trade to sell 2 shares and you get one 1 share sold at $10 and another at $15 then the trade will have a price set to $12.50 with the quantity set at 2. I am still poking around all that and I'll share my findings later on. But if you could ditch lots and rely solely on trades then perhaps tax reports could be more compact. It's mind numbing for me to go through dozens of pages of trade reports and verify that everything is correct. I am planning to automate that this year.

pronebird avatar Feb 22 '23 08:02 pronebird

Thanks @pronebird

Yeah, things get complex and this is one of those "we will look into it before the next tax season" things :)

jamsix avatar Feb 22 '23 08:02 jamsix