Hi, in my code you can see that I have written AAPL many times. I wanted to know if there was a piece of code or something I can write at the very beginning that would allow me to switch from AAPL to AMZN just by typing it once in the code. For example something like:

for equity in self.Equities and setting self.Equities = [AAPL] and being able to switch AAPL only in that one instance, and not having to change the symbol all throughout the code and typing AMZN 15 times.

Author

Nicholas Stern

July 2019