This is indeed a fantastic suggestion.
However, unfortunately, I don't know how to efficiently retrieve this data from the blockchain.
Perhaps HAF, HAFSQL, or HiveSQL could solve these queries.
Or perhaps I could record the changes in the values daily using MySQL.
But none of these seem like very direct methods.