imMoya / opendeclaro

Apache License 2.0
1 stars 0 forks source link

fix buy_df computation #13

Closed imMoya closed 9 months ago

imMoya commented 9 months ago

BUG: Sometimes, when you buy several stocks, DEGIRO buys multiple set of stocks (e.g. you buy 8 and degiro buys 7 and then 1). However, the id of the buy is different.

POSSIBLE SOLUTION: Merge the rows with the sum of the shares bought and delete the others. TODO: [x] Merge buy rows with same order_id [ ] Merge transaction costs with same order_id