Backtrader Community

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

    Starting with Interactive Brokers (IB) - no data feed

    General Code/Help
    7
    21
    5802
    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.
    • SPECULARI FUND
      SPECULARI FUND @rluc99 last edited by

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

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