Goal: Retrieve price data on securities I am currently holding.
My struggle: Now that we need to explicitly call out the securities to retrieve price data I am having a hard time extracting the info I need from context.portfolio.positions to feed into the data.history() function. Seems like context.portfolio.positions deals in SID while data.history() is looking for the symbol string. Is there a clean way to get a list of security symbols of the positions I am currently holding?
Any help is appreciated!
Thanks