Lumiwealth / lumibot

Backtesting and Trading Bots Made Easy for Crypto, Stocks, Options, Futures, FOREX and more
GNU General Public License v3.0
862 stars 157 forks source link

ThetaData username/password required for using YahooDataBacktesting #549

Closed Tyler-Dunham closed 1 week ago

Tyler-Dunham commented 1 week ago

I am trying to use YahooDataBacktesting and keep getting this error:

Please setthetadata_usernameandthetadata_passwordin the backtest() function if you are using ThetaDataBacktesting

I am simply not using ThetaDataBacktesting. This is coming from Strategy.backtest() and passing in any datasource_class returns the same error.

BuyHold.backtest(YahooDataBacktesting, start, end)

seans11 commented 1 week ago

I was receiving the same error too. I had an issue with my code where I was calling the trader.run_all() incorrectly.

Try running this example exactly as it is. This worked for me just now: Lumiwealth Backtesting

grzesir commented 1 week ago

@Tyler-Dunham @seans11 this bug is fixed now, please upgrade to v3.7.3