Monitors the relative price of the token in real-time.
I've used 2 ways to fetch real-time prices
- To continuously query the blockchain to get reserves of tokens in pair contracts.
- Subscribe to
Sync
event of pair contract to get realtime updates.
Add HTTPS and WSS endpoints to connect to blockchain, in .env
file.