Hi!
First of all, thanks for what you've built so far, both the platform and the lectures. Amazing stuff.
I was following the Hypotesis Testing Tutorial (great, again), and in the middle of it I tried to see what the attributes of a Equity object were. For that, I looked up in the interned for ways to list the attributes, and I found here and here that the method dict(with double underscores) of an object is one, and another one is using the built-in function getattr(object_name, attribute). Both trials caused a warning message similar to the following one to appear:
InputRejected:
Insecure built-in function 'getattr' Last warning! One more import error and your account will be suspended for security reasons until a human can talk to you.
It was this chunk of code what caused the problem
symbol_list = ["SPY", "AAPL"]
start = '2015-01-01'
end = '2016-01-01'
pricing_sample = get_pricing(symbol_list, start_date = start, end_date = end, fields='price')
elements = [element for element in dir(pricing_sample.columns[0])]
for element in elements:
getattr(pricing_sample.columns[0], element)
This is pretty annoying, as I wasn't trying to break Quantopian or anything, just trying to learn a bit more of what I was doing.
I understand that some caution has to be taken, but it would be nice to revise all those functions/ libraries that probably don't represent any security issue to Quantopian but are not allowed yet to be used, some of them already requested more than 2 years ago...
Again, thanks for everything and keep getting better!
PS: is there any safe way to do what I was trying to do, apart from doing pricing_sample.columns[0].attribute1, pricing_sample.columns[0].attribute2...? EDIT: Yes, the method to_dict().