My strategy requires volume and price data for the last 5 minutes for many stocks. Should I use historical data or web socket and will this be affected by rate limits ?
We recommend building candles at your end using the live market data provided via websockets API for the live market strategies. You can refer to this thread to know more.
You can refer to this thread to know more.