i am new to Algo trading and I am trying to retrieve minutes data using below C# code .
My program stop moving further after it hits ListHistoricalBarsAsync line and its not giving me the minutes barset info .
var into = DateTime.Now; var from = into.Subtract(TimeSpan.FromMinutes(25)); var barSet = await alpacaDataClient.ListHistoricalBarsAsync( new HistoricalBarsRequest(symbol, from, into, BarTimeFrame.Minute).WithPageSize(20)); var bars = barSet.Items;
Note - I am able to retrieve day chart from ListHistoricalBarsAsync , But having issues with the above minutes code . Also I am using free base plan .
Kindly suggest .