Intermittent error in adding data from Alpaca
Madhu Eadara last edited by
We are running a backtest using Alpaca data. We noticed that about 90% of the times we are getting the historical data but sometime - the Alpaca is not returning any data and we are not even able to enter the strategy. How do we fix this? One option is that we can check if the data returned from the DataFactor is zero and sleep for 5 seconds and retry (which would mostly fix this) - but Question: How can we check the data feed object returned has not lines ?
We tried len() and len but unable to find the length of the data or count of the records. Can you please help?