How to handle real time price fetching data for crypto and tokens on server my server memory keeps getting full after a while
So I have written normal code that fetches the price of the token from coinGecko APIs and other crypto tokens such as BTC, ETH, and XRP from the factory contract of the pancake-swap but it is the trading platform which is why I am fetching the price every 6 seconds but after a while my server memory gets full.