Skip to content

Notify:Matches

Announces the state of the persistent Scans for the authenticated user.

Controller: Notify
Topic: Matches![ID]
Action: Sub
Permissions: Zenith/Market

FormatDescriptionExample
Matches![ID]Receive matches relating to a Scan.Matches!j5Tm6X
NameDescription
IDThe identifer of a persistent Scan.

An array of Scan Match Change objects

NameTypeExpectDescription
OperationStringAlwaysThe operation being performed. One of:
Add: Adding a new Match.
Update: Updating an existing Match.
Remove: Removing a Match.
Clear: Clearing all Matches.
KeyStringSometimesThe key for the match. Will be omitted when clearing. Will always be provided in all other situations.

Send:

{"Controller":"Notify","Topic":"Matches!j5Tm6X","Action":"Sub","Confirm":true}

Receive:

{"Controller":"Notify","Topic":"Matches!j5Tm6X","Data":[
{"Operation":"Clear"},
{"Operation":"Add","Key":"BHP.ASX"}
]}
{"Controller":"Notify","Topic":"Matches!j5Tm6X","Action":"Sub","Confirm":true}

Match Removed:

{"Controller":"Notify","Topic":"Matches!j5Tm6X","Data":[
{"Operation":"Remove","Key":"BHP.ASX"}
]}