Got warning on self.SetBenchmark("SPY")
Warning: SetBenchmark(SPY): no existing symbol found, benchmark security will be added with Equity type.
Changing to either of following solved warning. What's the difference between them, which way is preferred?
self.SetBenchmark(self.AddEquity("SPY").Symbol)
self.SetBenchmark(Symbol.Create("SPY", SecurityType.Equity, Market.USA))
Thanks
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!