Describe the problem:
Trades made using liquidity pools are not being imported correctly, if the trade is swapping from xlm to USDC, the API is importing as swap from USDC to xlm and hence there are a lot of missing purchase history’s and the final calculated balance does not match with the actual wallet balance.
Which exchange/wallet is this regarding?
How did you import data into this wallet?
koinly stellar API
What have you tried to fix this so far?
Only way seems to delete LP trades and add them again manually, but there are a lot of transactions.