Interactive Brokers trading platforms use Average Cost Accounting when calculating Realized P&L and your cost price (average price) is synced to your statement once every evening. Your statements, however, will use the tax lot matching method you have selected which may be something other than FIFO.
Why is my realized P&L different in TWS than my statement?
Powered by IBot
Where can I see my option's profit or loss after it expires?
Why do MTM P&L and Realized/Unrealized P&L figures differ on my activity statement?
Why would I submit an FX transaction to the FXCONV destination?
The Annual Report does not match the Form T5008.