The attached backtest shows that orders can be placed in
before_trading_start
.
However, per the help page:
before_trading_start(context, data)
Optional. Called daily prior to the open of market. Orders cannot be placed inside this method. The primary purpose of this method is to use Pipeline to create a set of securities that your algorithm will use.
So maybe something was intentionally changed in Q2? Or is this a bug?