Now that you're updating prices, it's a good time to implement a websocket endpoint, which sends updated prices to subscribers.
e.g.
Endpoint: ws://localhost:8000/prices
Response: {data: {"btc": 21000, "eth": 1300}, "meta": {"updatedAt": "2022-..."}
Figure if it's possible to use routes in socket.io
Users should be able to ask for some of the coins via some kind of parameter. e.g. coins=BTC,ETH will only return live updates about Bitcoin and Ethereum
Now that you're updating prices, it's a good time to implement a websocket endpoint, which sends updated prices to subscribers. e.g. Endpoint:
ws://localhost:8000/prices
Response:{data: {"btc": 21000, "eth": 1300}, "meta": {"updatedAt": "2022-..."}