def initialize(self): self.register_trading_control(AssetDateBounds())
def initialize(self): self.register_trading_control(AssetDateBounds(on_error='fail'))