Backtrader Community

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. SPECULARI FUND
    3. Best
    For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
    • Profile
    • Following 0
    • Followers 0
    • Topics 8
    • Posts 24
    • Best 1
    • Controversial 0
    • Groups 0

    Best posts made by SPECULARI FUND

    • RE: Starting with Interactive Brokers (IB) - no data feed

      @rluc99 said in Starting with Interactive Brokers (IB) - no data feed:

      I have discovered the problem. It is not related to Backtrader.

      I did some digging around on the IB website. It seems that the IB demo account does not allow historical bars through the API for anything other than FOREX. The same applies to paper trading or live accounts unless there is a subscription to the relevant market data feed. If there is a subscription in place then the historical bars are available at any time, including week-ends.
      (As an aside, historical bars are constructed by TWS regardless of whether there is a subscription in place or not.)
      Delayed data is available during market hours for accounts without market data subscription, but to obtain this data a flag has to be set in the API. I don't think Backtrader allows the user to set this flag but I have not investigated this in detail.

      Most of the above information comes from the following two links:
      http://interactivebrokers.github.io/tws-api/market_data.html
      http://interactivebrokers.github.io/tws-api/historical_data.html

      So, it's not possible to get even delayed stock data from IB using Backtrader for not funded account right?

      posted in General Code/Help
      SPECULARI FUND
      SPECULARI FUND
    • 1 / 1