[Python] Problem with backtrader live Gold (XAUUSD) data from IB (Interactive Brokers)

Discussão em 'Python' iniciado por Stack, Março 21, 2025.

  1. Stack

    Stack Membro Participativo

    Backtrader works fine with live data of IB (Interactive Brokers) through TWS, but when I want to trade on gold commodity (XAUUSD), it cannot receive the data. the python code is:

    data = store.getdata(dataname='XAUUSD', sectype='CMDTY', exchange='SMART', timeframe=bt.TimeFrame.Minutes)


    I follow the instruction in: [​IMG]

    Continue reading...

Compartilhe esta Página