Design a real-time stock price system similar to the Robinhood mobile app. Core requirements: (1) Users can view real-time (live) stock prices with low latency. (2) Users can query historical price data over multiple time ranges: last 1 day, 1 week, and 1 year. (3) The number of datapoints returned…