Which API can give me the 1 min OLHC for nifty 50 sport price for the latest minute to do the pattern analysis on 1 min chart
Hi @Sonu_51669323, Please check out the APIs below for OHLC candle data, which offer multiple interval options:
-
Intraday Candle Data (v3) for current trading day OHLC candles.
-
Historical Candle Data (v3) for historical OHLC candles till previous trading day.
Also, you can filter the Nifty 50 instruments from the Instrument JSON file
Thanks
Just wanted to confirm that Intraday Candle Data V3 | Upstox Developer API Gives the 1 minute candles for the whole day right?
In that case it will increase the latency of getting the Reply from API.
@Sonu_51669323 Yes it returns 1 minute candles for the whole day.
For your use case — retrieving only the previous minute’s OHLC — you can refer to the Market Quote OHLC V3 API to see if it meets your requirements which returns live_ohlc and prev_ohlc for 1 minute and 30 minute.
Note:
- It supports up to 500 instruments per request
- Rate limits apply as documented here: Rate Limits | Upstox Developer API
Thanks