jamsix / ib-edavki

Skripta, ki prevede XML poročilo trgovalnih poslov v platformi InteractiveBrokers v XML format primeren za uvoz v obrazce Doh-KDVP, D-IFI, Doh-Div in Doh-Obr v eDavkih Finančne uprave.
MIT License
183 stars 59 forks source link

Check if script can work without Lots #36

Open jamsix opened 3 years ago

jamsix commented 3 years ago

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.

pronebird commented 1 year ago

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.

jamsix commented 1 year ago

Thanks @pronebird

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