Hi team,
I’m trying to do batching of instrument keys to reduce the number of API call (sample API provided below) but I think currently this is not supported. Would you please let me know what is the most optimized way to get data for around 4000 instrument keys?
https://api.upstox.com/v2/historical-candle/NSE_EQ%7CINE0MJQ01012,NSE_EQ%7CINE0J1E01027/day/2024-05-31/2024-05-01
Regards,
Shivansh
Batch processing isn’t possible at the API level, as the API itself doesn’t support retrieving multiple instruments in a single request. Depending on your programming language, you can make parallel API calls to achieve this. However, please note that making many requests quickly could result in your ip being flagged as spam and blocked.
Thanks Pradeep.
Would you please let me know how many parallel API calls can I make without being getting flagged? I know this might depend on the data volume but I just want a ballpark for how many instruments historical data can I fetch and for what duration using the Upstox API?
I recommend staying within the standard rate limit outlined in the document below: Rate Limits | Upstox Developer API.