I can find all my transaction records through the wallet address, and I can get the hash of the transaction records, but I want to know how much tokenA I paid and how much tokenB I got for each swap transaction. How can I know this? Suppose it is in Raydium DEX.
Is there a third-party API that can get this information? Or parse it directly through the code? I use Nodejs.
In fact, I want to know through the code when I spent how many sol (or how many dollars), how many tokenB I bought, and when I spent how much tokenA I exchanged for how many sol (or how many dollars).