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/

    OANDA v1 REST API will cease to function soon

    General Code/Help
    3
    6
    1202
    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.
    • luxiaolei
      luxiaolei last edited by luxiaolei

      Hi, I have contacted Oanda customer support to get a V1 account, however since V1 api will soon no longer supported by Oanda, they refused to open an account for me.

      May I know when will Backtrader support V20 api?

      Many thanks!

      1 Reply Last reply Reply Quote 0
      • jamespeterschinner
        jamespeterschinner last edited by jamespeterschinner

        You might be interested in this.

        http://async-v20.readthedocs.io/en/latest/

        I just created a candle download tool. Here:

        https://github.com/jamespeterschinner/async_v20/blob/master/bin/candle_data.py

        The csv output can be read using this data template:

        import backtrader.feeds as btfeeds
        
        class OandaMBAData(btfeeds.GenericCSVData):
            
            params = (
                ('dataname', 'YOUR_FILE.csv'),
                ('fromdate', datetime(2010, 1, 4)),
                ('todate', datetime(2017, 1, 1)),
                ('dtformat', '%Y-%m-%d %H:%M:%S'),
                ('datetime', 0),
                ('high', 11),
                ('low', 12),
                ('open', 13),
                ('close', 10),
                ('volume', 15),
                ('openinterest', -1)
            )
        
        1 Reply Last reply Reply Quote 1
        • luxiaolei
          luxiaolei last edited by

          Thanks for your reply. async-v20 looks promising! And one more question, does it support live trading with backtrader? It will be great if there is any example code on that.

          1 Reply Last reply Reply Quote 0
          • jamespeterschinner
            jamespeterschinner last edited by jamespeterschinner

            Well, I actually just learn't about backtrader today. I think it would be great also, once I get my head around the package, I'll look into it more.

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

              Please see here: https://community.backtrader.com/topic/500/oanda-v20-api/

              1 Reply Last reply Reply Quote 0
              • jamespeterschinner
                jamespeterschinner last edited by

                In terms of documentation being complete. For the v20 API, I currently believe it isn't.

                https://github.com/jamespeterschinner/async_v20/issues/12

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                Copyright © 2016, 2017, 2018 NodeBB Forums | Contributors
                $(document).ready(function () { app.coldLoad(); }); }