sow-and-subscribe-history-filter
Import the AMPS library:
import AMPS
Construct the command:
cmd = AMPS.Command(AMPS.Message.Command.SOWAndSubscribe)
# set options
opts = AMPS.Message.Options()
# set the topic, options, and ordering on the command
cmd.set_topic(topic).set_bookmark("20251231T010101").set_filter("/id > 1")
The command can now be used in execute or execute_async.