hi, i have tried to fetch with 1 min, output is displaying empty but with the 5 min, i am able to get historitcal data. have a look into it.
Code Sample:
public void GetStockHistory(FyersClass fyersClass) {
StockHistoryModel model = new StockHistoryModel();
model.Symbol = “NSE:SBIN-EQ”;
model.Resolution = “1”;
model.DateFormat = “1”;
model.RangeFrom = “2026-01-02”;
model.RangeTo = “2026-01-02”;
model.ContFlag = 1;
Tuple<JSONObject, JSONObject> stockTuple = fyersClass.GetStockHistory(model);
if (stockTuple.Item2() == null) {
System.out.println("Stock History: " + stockTuple.Item1());
} else {
System.out.println("Stock History Error: " + stockTuple.Item2());
}