MCPcopy
hub / github.com/quantopian/zipline / SidsNotFound

Class SidsNotFound

zipline/errors.py:413–430  ·  view source on GitHub ↗

Raised when a retrieve_asset() or retrieve_all() call contains a non-existent sid.

Source from the content-addressed store, hash-verified

411
412
413class SidsNotFound(ZiplineError):
414 """
415 Raised when a retrieve_asset() or retrieve_all() call contains a
416 non-existent sid.
417 """
418 @lazyval
419 def plural(self):
420 return len(self.sids) > 1
421
422 @lazyval
423 def sids(self):
424 return self.kwargs['sids']
425
426 @lazyval
427 def msg(self):
428 if self.plural:
429 return "No assets found for sids: {sids}."
430 return "No asset found for sid: {sids[0]}."
431
432
433class EquitiesNotFound(SidsNotFound):

Callers 3

retrieve_assetMethod · 0.90
retrieve_allMethod · 0.90
lookup_genericMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected