How to get the details of token Swap with API

I am working on a taxation platform which will compute the gains and balance from transaction history. I noticed that one client is having a balance of 5000 LEND and 50 AAVE. As per this link, LEND was converted to AAVE at 100 LEND = 1 AAVE rate.
Is there a way to get the details of such conversions through Binance API?

https://binance-docs.github.io/apidocs/spot/en/#get-swap-history-user_data

You should be able to see the swap history from this endpoint.

Thanks for the reply. The API is just returning empty json array. I am passing the user data for which I know the swap was applied for LEND to AAVE.

To my knowledge, the information is NOT available.
The only trace of the swap is a Distribution of AAVE in GET /sapi/v1/asset/assetDividend (HMAC SHA256).

Binance API Documentation is for liquid swaps, unrelated to the problem you stated.