Hi, You need to use historical data to fetch one minute candle. Historical data is an add-on subscription.
You also need note that it is not guaranteed that Historical data candle will be available exactly at end of the minute. There can be some delay. This is because our system keeps listening to all the ticks from exchange and end of the minute it will generate a candle using those ticks and write that candle to the database. This happens for all the instruments that are being traded for the day. Since it involves a database write it is not guaranteed that candle will be available exactly at end of the minute.
If your algorithm can afford some delay then you can try it or else I would suggest generating candles using websockets(live market data) API at your end.
You need to use historical data to fetch one minute candle. Historical data is an add-on subscription.
You also need note that it is not guaranteed that Historical data candle will be available exactly at end of the minute. There can be some delay. This is because our system keeps listening to all the ticks from exchange and end of the minute it will generate a candle using those ticks and write that candle to the database. This happens for all the instruments that are being traded for the day. Since it involves a database write it is not guaranteed that candle will be available exactly at end of the minute.
If your algorithm can afford some delay then you can try it or else I would suggest generating candles using websockets(live market data) API at your end.