NFT Marketplace Price History, Top Buyers for a specific time

Hi! I’ve been playing around with the Rarible Clone codes on the Moralis YouTube Tutorial, and I’m exploring the concept on how to get the top traders on the marketplace, can someone guide me on how I can achieve that? Like, displaying the recent transactions, get the top buyers and sellers? Thanks!

If there is a sell event maybe you can sync that event in Moralis db and get top traders from there with a query.