Is it possible to get Monthly/weekly/yearly sales of an Asset?

I want to get the total weekly sales of an asset. I know that It’s possible to get sales of an asset but how do I get it exact weekly or monthly sales.
I think this is enough to explain my problem.

Go to the “my transactions” tab and set transaction type to sales. Count the asset you have sold you see the date and time. There is nothing other than this at the moment.

I want to achieve this through scripting.

I don’t think it is possible…