Jan-03-2018, 07:31 AM
Sorry for the lack of information:
context.securities looks like this:
Thank you so much!
context.securities looks like this:
PRINT [Equity(24 [AAPL]), Equity(16841 [AMZN])]
returns = [] for s in context.securities: returns.append([]) print(returns)Seems to be fine for creating the array for each element in the context.securities, but I wonder how can I create the index of
s
in the returns list so that I can call print(returns[s]) when I iterate through each?Thank you so much!