is it possible to ignore a SecurityError?
i am passing a long list of securities to a dm.BbgDataManager()."some field"
some of the securities are not valid securities and a get an error such as:
Exception: SecurityError: ("string i passed as security", BAD_SEC, Unknown/Invalid security [nid:960] )
is there a way populate to return a NaN instead of breaking the code?
here is an example:
if i have:
sids = mgr[valid_security_name, not_valid_security_name]
then sids.PX_LAST will return the above error message
while i wish to have
PX_LAST
valid_security_name price
not_valid_security_name NaN
is it possible to ignore a SecurityError? i am passing a long list of securities to a dm.BbgDataManager()."some field" some of the securities are not valid securities and a get an error such as: Exception: SecurityError: ("string i passed as security", BAD_SEC, Unknown/Invalid security [nid:960] )
is there a way populate to return a NaN instead of breaking the code?
here is an example: if i have: sids = mgr[valid_security_name, not_valid_security_name] then sids.PX_LAST will return the above error message while i wish to have PX_LAST valid_security_name price not_valid_security_name NaN