Accessing a particular candle intraday or previous day


I am looking to write code for accessing a particular candle of a specific time frame, during intraday or previous day.
I need help in this regard

Thanks in advance
Soma Raju

Same Answer applies

Is this functionality now available, after 2 years?