Get Average Price

Hi, how can I get the average price of my token if I bought it 2 times (each time at different price and different amounts).

For example I bought AAVE in the middle of the day 2 times in this wallet: 0x8A2396A37FD3CAfc0bd9840C87660281878540c5 using Polygon chain. How can I get the average of those 2 times?

I see the historical portfolio endpoint gives open/close but not at a specific time.

If I can’t do it with covalent can you recommend me a service outside from covalent to get the historical price at a given Time of a day for a specific token? So I can merge covalent data with it