For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See:

Intermittent error in adding data from Alpaca

  • 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?

Log in to reply