I am trying to pull hourly data using the below code . But I am noticing that it always gives me only first 25 records , thought I am trying to pull last 100 hrs it gives me only for first 25 hours
startTime = Convert.ToDateTime("7/21/2021 9:00:00 AM"); endTime = DateTime.UtcNow; barRequest = new HistoricalBarsRequest("TSLA", startTime, endTime, BarTimeFrame.Hour); bars = await alpacaDataClient.ListHistoricalBarsAsync(barRequest); bars1 = bars.Items;
I am expecting the above code to retrieve hourly bars from 07\21 to current (07\26) . but it gives me the result only for first 25 hours .
Not sure, if i am missing anything . Any help or insight on this is much appreciated .