Is there any way to replace code like this:
for k,stock in enumerate(context.stocks): prices[-1,k] = data[stock].price
with code that would pull in all of the data as a vector, from the object
data? Note that I'm using this code in
history is not officially supported.
The loop works, but it is kinda inelegant, and maybe inefficient if the data can be retrieved as a vector.