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/

    quandl dataset euronext error

    General Code/Help
    2
    3
    60
    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.
    • mamos
      mamos last edited by

      Hello, I have a problem with quandl and the euronext dataset, here is my error message:

      Traceback (most recent call last):
        File "newsstrat.py", line 241, in <module>
          cerebro.run()
        File "/usr/local/lib/python3.6/dist-packages/backtrader/cerebro.py", line 1127, in run
          runstrat = self.runstrategies(iterstrat)
        File "/usr/local/lib/python3.6/dist-packages/backtrader/cerebro.py", line 1298, in runstrategies
          self._runnext(runstrats)
        File "/usr/local/lib/python3.6/dist-packages/backtrader/cerebro.py", line 1542, in _runnext
          drets.append(d.next(ticks=False))
        File "/usr/local/lib/python3.6/dist-packages/backtrader/feed.py", line 404, in next
          ret = self.load()
        File "/usr/local/lib/python3.6/dist-packages/backtrader/feed.py", line 476, in load
          _loadret = self._load()
        File "/usr/local/lib/python3.6/dist-packages/backtrader/feed.py", line 707, in _load
          return self._loadline(linetokens)
        File "/usr/local/lib/python3.6/dist-packages/backtrader/feeds/quandl.py", line 107, in _loadline
          o = float(linetokens[next(i)])
      IndexError: list index out of range
      
      

      here is my code:

      data = bt.feeds.Quandl(dataset='EURONEXT', dataname='FP', apikey='xxxxxx'
      

      Thank you in advance for your help

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

        The quandl data feed was done for the WIKI data (which is actually no longer being updated). Your best bet is to download the data to a "csv" file and load it from there.

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

          thank you very much

          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(); }); }