I want to get the output amount of a Swap on PancakeSwap ( https://pancakeswap.finance/swap ) automatically.
For example:
Fist token = BNB
Second token = CAKE
When I fill out the BNB amount in the first field, in the second one I get the CAKE amount. I want to get that value from the response.
I found the response (at least I think) but it is encrypted somehow.
I'm not sure if that's the correct request. I also tried to check the WebSockets because it's updated in real-time. Without success. If someone has an idea about how to get it, please let me know.