Navigation

    Backtrader Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/

    Intermittent error in adding data from Alpaca

    General Code/Help
    1
    1
    38
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Madhu Eadara
      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?

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post
      Copyright © 2016, 2017, 2018, 2019, 2020, 2021 NodeBB Forums | Contributors