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/

    InfluxDB and Backtrader

    General Discussion
    4
    3
    1822
    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.
    • RandyT
      RandyT last edited by

      @jaikumarm Starting this new thread so as not to clutter up the other with unrelated discussion.

      I've submitted the following PRs to backtrader and I know that @backtrader is working to get to a point where he can merge them.

      The first is the InfluxDBfeed support: https://github.com/mementum/backtrader/pull/257

      The second provides some scripts for importing data: https://github.com/mementum/backtrader/pull/268

      I've been downloading from DTN and staging in local compressed pickle files before doing imports into InfluxDB. I've taken the couple of scripts I have created and instead created a script to import directly from CSV files, and another I just added that pulls directly from DTN and puts the data in minute timeframe into the InfluxDB. Both scripts are lightly tested given they are derivatives of what I have been doing, but they seem to pass a basic smoke test. Once merged into backtrader, I would appreciate any PRs to improve them.

      I did not use pyiqfeed in these scripts as it seemed like overkill for the basic operations I am doing in them. As mentioned, I think pyiqfeed will become very useful if we take the steps to create a live data feed connector for DTN.

      1 Reply Last reply Reply Quote 1
      • J
        jaikumarm last edited by

        thanks for posting this, will try the PR's over the weekend and let you know my experience.

        1 Reply Last reply Reply Quote 0
        • B
          backtrader administrators last edited by

          The Pull Requests for InfluxDB have been integrated in the main release 1.9.30.111 (the dependencies have been rewritten as frompackages directives)

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