blpapi.Topic#

class blpapi.Topic(handle=None, parentSession=None)#

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 the handle using stored dtor

Return type:

None

isActive()#
Return type:

bool

Returns:

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

isValid()#
Return type:

bool

Returns:

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

service()#
Returns:

The service for which this topic was created.

Return type:

Service