Hello!
I am trying to fetch a large amount of historical data using the function data.history.
I have the symbols I would like to fetch data for:
context.security = symbols('CASH,EUR,USD','CASH,GBP,USD')
Now I would like to fetch the past 10 years of 'Close' values for these symbols:
data.history(context.security,'close','10 Y','1d')
Note that I have 10 Y in there instead of 3600 since anything above 365 does not appear to work. However the syntax above also does not work and I have not been able to find a straightforward answer to this issue. Does anybody know what the syntax for the above line is? Thank you very much.