blpapi.Topic

class blpapi.Topic

Used to identify the stream on which a message is published.

Topic objects are obtained from createTopics() on ProviderSession. They are used when adding a message to an Event for publishing using appendMessage() on EventFormatter.

destroy()

Destroy this Topic object.

isActive()
Returns

True if this topic was elected by the platform to become the primary publisher.

Return type

bool

isValid()
Returns

True if this Topic is valid and can be used to publish a message on.

Return type

bool

service()
Returns

The service for which this topic was created.

Return type

Service