For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See:

Error: bt.stores.IBStore

  • Please pardon this seemingly basic question - it has bugged me.

    for the codes in

    import backtrader as bt
    ibstore = bt.stores.IBStore(host='', port=7496, clientId=35)
    data = ibstore.getdata(dataname='EUR.USD-CASH-IDEALPRO')

    I get the error:

    AttributeError Traceback (most recent call last)
    <ipython-input-14-083c713fef7e> in <module>()
    1 import backtrader as bt
    ----> 3 ibstore = bt.stores.IBStore(host='', port=7496, clientId=35)
    4 data = ibstore.getdata(dataname='EUR.USD-CASH-IDEALPRO')
    AttributeError: module 'backtrader.stores' has no attribute 'IBStore'

    I wonder why this error happened and how can I fix it?
    Seems like on
    The file path is backtrader/backtrader/stores/, rather than bt.stores.IBStore in caps?

  • I would rather bet that ibpy is not installed. Just test it ...

    import ib
    import backtrader as bt

Log in to reply

Looks like your connection to Backtrader Community was lost, please wait while we try to reconnect.