How to Scan 50 Stocks per Minute for Technical Analysis Without Hitting API Rate Limits?

Hello Upstox Community,

I am building a C# application to perform technical analysis on 50 stocks per minute. To do this, I use the following Upstox APIs:

  1. Historical Data API
  2. Intraday Data API
  3. Live Quote API

However, I am facing rate limit issues, which prevent me from fetching the required data for all 50 stocks within the given timeframe.

Use Case Details:

  • The application needs to gather data for all 50 stocks every minute to execute technical analysis.
  • The APIs are essential for providing accurate and real-time information, but I keep hitting the rate limits imposed by Upstox.

What Iā€™ve Tried:

  1. Caching historical data to reduce API calls.
  2. Fetching data for fewer stocks or increasing the interval, but this compromises the analysis.
  3. Looking for bulk data endpoints or batch requests, but they donā€™t seem to fully solve the problem.

Questions:

  1. How can I optimize my API usage within the constraints of Upstoxā€™s rate limits?
  2. Does Upstox offer any premium API plans or additional configurations to increase rate limits?
  3. Is there a way to request bulk historical or intraday data for multiple stocks in a single API call?

I would greatly appreciate any guidance or suggestions from the community, especially if someone has tackled a similar challenge using Upstox APIs.

Thank you!

First cache 50 stocks historical data. and then use websocket for current day data.

3 Likes