blpapi.SubscriptionPreprocessMode

class blpapi.SubscriptionPreprocessMode

The modes that can be used for the Session.subscribe() and Session.resubscribe() operations.

FAIL_ON_FIRST_ERROR = 1

In this mode, an exception is raised on the first invalid entry in the SubscriptionList, and the entire batch will be considered failed. Otherwise, all the subscriptions will move forward and the method returns None.

RETURN_INDIVIDUAL_ERRORS = 2

In this mode, instead of raising exceptions, a list of SubscriptionPreprocessError is returned, each representing an error due to an invalid subscription in the SubscriptionList. The valid subscriptions will move forward.