has no attribute 'CCXTBroker'// After I upgrade to the latest version, it's solved.
Alex Wang last edited by Alex Wang
I install ccxt branch, and the code looks like below:
broker = bt.brokers.CCXTBroker(exchange='okex', currency='USD', config=broker_config) cerebro.setbroker(broker)
when running the script, it reports:
Traceback (most recent call last):
File "d:/My Documents/Python Scripts/liveStrategyEngine/bt_ccxt_test2.py", line 171, in <module>
broker = bt.brokers.CCXTBroker(exchange='okex', currency='USD', config=broker_config)
AttributeError: module 'backtrader.brokers' has no attribute 'CCXTBroker'
Can anyone help to figure it out what's the problem? Thanks.