-
-
Notifications
You must be signed in to change notification settings - Fork 35
Description
Describe the bug
When running the IBKR converter, the tool fails to detect existing BUY transactions and repeatedly prints warnings such as:
No result found for buy action for <ISIN>! Please add this manually..
The issue occurs because the current IBKR Client Portal CSV export uses different column names (e.g. Buy/Sell, TradeDate, TradePrice, TradeMoney, CurrencyPrimary) which the converter does not recognise. As a result, all BUY actions are ignored and the converter assumes the buys do not exist.
This is not user error: the CSV is generated directly from the current IBKR interface and is valid.
Version
Export to Ghostfolio: __VERSION__ (the version printed in the console).
Running via npm, not Docker.
Command executed:
npm run start ibkr
Expected behavior
The IBKR converter should correctly parse CSV files generated by the current IBKR Client Portal and detect BUY transactions based on the actual column names provided by IBKR.
It should map new IBKR fields to the expected ones:
Buy/Sell→ActionTradeDate→Trade DateTradePrice→PriceTradeMoney→AmountCurrencyPrimary→Currency
The conversion should complete without incorrectly warning about missing buy actions.
Provide error input
CSV header from IBKR (actual):
Buy/Sell,TradeDate,ISIN,Quantity,TradePrice,TradeMoney,CurrencyPrimary,IBCommission,IBCommissionCurrency
Sample CSV rows that trigger the issue:
BUY,20250610,US00775V1044,250,19.5,4875,USD,-0.634393125,USD
BUY,20250610,US0259328641,100,16.5,1650,USD,-0.134007717,USD
BUY,20250107,US04686J8383,88,25.11,2209.68,USD,-0.26533725,USD
Error output:
[i] No result found for buy action for US00775V1044! Please add this manually..
[i] No result found for buy action for US0259328641! Please add this manually..
[i] No result found for buy action for US04686J8383! Please add this manually..
...
This happens even though the BUY rows clearly exist in the CSV.
Additional context
IBKR recently updated column names in Client Portal trade CSV exports. The converter currently supports only older Flex Query field names, causing it to not detect BUY rows even when they are present.
This appears to be a compatibility issue with the latest IBKR CSV schema. Supporting the new IBKR column names (or adding auto-detection) should resolve the problem.