"Demand shock" indicator

So Iā€™m cruising along building my DEX with Moralis on Polygon and half the time the 1Inch trades justā€¦choke. So I do some digging and everythingā€™s fine on my side and on Moralisā€™ side. But thereā€™s something called a ā€œdemand shockā€ going on on-chain. Huge NFT minting or whatnot. Gas prices are 5x to 10x normal for hours.

How do I detect that? Iā€™d like to warn my users about the ā€œweatherā€ and not get complaints about how ā€œyour software sucks!ā€ when really itā€™s the global network conditions.

I see the server code demo about averaging gas prices as experienced by the dAppā€™s users. But Iā€™m looking for the real, all-network say 48 hour average vs. last block Tx gas fees. Seems like a job for the indexed or speedy node?