Examples

The AMPS Python Client includes a set of example programs that provide simple demonstrations of client functionality.

The sample archive, available below, includes a set of samples and a configuration file for AMPS.

The samples archive includes samples such as:

Sample Name
Demonstrates

AMPSConsoleSubscriber.py

Simple subscriber to an adhoc topic.

AMPSConsolePublisher.py

Simple publisher to an adhoc topic.

AMPSFIXBuilderPublisher.py

Subscriber that uses the provided convenience class to create FIX messages

AMPSFIXShredderSubscriber.py

Subscriber that uses the provided convenience class to parse FIX messages

AMPSNVFIXBuilderPublisher.py

Subscriber that uses the provided convenience class to create NVFIX messages

AMPSNVFIXShredderSubscriber.py

Subscriber that uses the provided convenience class to parse NVFIX messages

AMPSPublishForReplay.py

Simple publisher targeting a topic in the transaction log

AMPSQueueConsumer.py

Subscriber that consumes from a queue

AMPSQueuePublisher.py

Simple publisher targeting a queue topic (which must also be in the transaction log)

AMPSSOWConsolePublisher.py

Simple publisher targeting a topic in the State of the World

AMPSSOWQuerypy

Point in time query of a topic in the State of the World

AMPSSOWAndSubscribeConsoleSubscriber.py

Point in time query of and ongoing subscription to a topic in the State of the World

AMPSSOWandSubscribeWithOOF.py

Point in time query of and ongoing subscription to a topic in the State of the World. This subscription also requests out of focus notifications if a message is deleted or no longer matches the subscription

AMPSUpdateForOOF.py

Publisher that updates messages to generate out of focus messages in the AMPSSOWandSubscribeWithOOF.py example

AMPSSubscribeForReplay.py

Subscriber requesting a replay from the transaction log (bookmark subscribe)

CompositeMessagePublisher.py

Publisher that uses the provided convenience class to create a composite messages

CompositeMessageSubscriber.py

Publisher that uses the provided convenience class to consume a composite message

Last updated