IBKR - currency conversions are not imported from the Flex statement
Describe the bug When importing a Flex statement the currency conversions are not imported automatically. There is no code in the importer to manage them.
The flex query is providing the information as a Trade -> assetCategory="CASH"
<Trades>
<Trade accountId="XXXXX" acctAlias="Test" model="" currency="USD" fxRateToBase="0.92266" assetCategory="CASH" subCategory="" symbol="EUR.USD" description="EUR.USD" conid="12087792" securityID="" securityIDType="" cusip="" isin="" figi="" listingExchange="" underlyingConid="" underlyingSymbol="" underlyingSecurityID="" underlyingListingExchange="" issuer="" issuerCountryCode="" tradeID="99999" multiplier="1" relatedTradeID="" strike="" reportDate="20240705" expiry="" dateTime="20240705;111329" putCall="" tradeDate="20240705" principalAdjustFactor="" settleDateTarget="20240709" transactionType="ExchTrade" exchange="IDEALFX" quantity="-15000" tradePrice="1.08235" tradeMoney="-16235.25" proceeds="16235.25" taxes="0" ibCommission="-1.84988" ibCommissionCurrency="EUR" netCash="0" closePrice="0" openCloseIndicator="" notes="" cost="0" fifoPnlRealized="0" mtmPnl="-20.384235" origTradePrice="0" origTradeDate="" origTradeID="" origOrderID="0" origTransactionID="0" buySell="SELL" clearingFirmID="" ibOrderID="645279704" transactionID="28679999" ibExecID="ID3.01.01" relatedTransactionID="" rtn="" brokerageOrderID="IDOrder2.0001" orderReference="" volatilityOrderLink="" exchOrderId="N/A" extExecID="9999999990S" orderTime="20240705;111329" openDateTime="" holdingPeriodDateTime="" whenRealized="" whenReopened="" levelOfDetail="EXECUTION" changeInPrice="0" changeInQuantity="0" orderType="MKT" traderID="" isAPIOrder="N" accruedInt="0" initialInvestment="" serialNumber="" deliveryType="" commodityType="" fineness="0.0" weight="0.0" />
</Trades>
This may be a bit tricky to process as it will be managed in the buildPortfolioTransaction function while it really belongs to the buildAccountTransaction function.
Also briefly mentioned in this issue #3742
It looks like that PR #3424 maybe also needed for this to be implemented in order to include the fee assessed.
I believe I have the same problem. I can't import recent trades in USD when I have EUR as the base currency.
A few months ago it worked and converted to EUR.
I can send you XML if it is neaded. But I don't have the old one just the new one which is not possible to import.