You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add ImportedTransaction proto and read seed transactions for FIFO
New proto: ImportedTransaction with account_id, date, type (BUY/SELL/
SPLIT/STOCK_DIVIDEND/EXPIRY), symbol, ibkr_symbol, quantity, price.
Stores the complete normalized transaction history from previous
brokers (UBS/RBC) as permanent seed data.
Merge: read seed/<account>/transactions.json and convert to Trade
protos for FIFO. Replaces the pre-computed lots.json approach with
the full transaction history so FIFO can process buys AND sells.
FIFO: sort buys before sells within the same date to handle same-day
buy+sell scenarios correctly.
Status: all 45 equity positions match IBKR truth file on quantity.
Remaining issues: bond cost basis (face value vs unit pricing),
short options (sell-to-open before buy-to-close), 8 expired options
still showing.
0 commit comments