Creating a Profit and Loss Report using Python

Hi, I was wondering if anyone can guide me in how I would go about creating a Profit and Loss Report for DEX Trades on Ethereum?

Hi @nathes97
Thanks for reaching.

You can use get-wallet-token-balances endpoint to get the token balance of the wallet. This endpoint all supports to get the historic token balance of the wallet. So you can easily get the past and present wallet token balance

Now to get the token price you can use get-token-price endpoint. This can also be used to get the present and historic token price of a token.

I guess this data will be enough to calculate the profit and loss of a wallet.

Let us know if you have any other questions.