Announces the state of the persistent Scans for the authenticated user.
Controller: Notify
Topic: Matches![ID]
Action: Sub
Permissions: Zenith/Market
Format | Description | Example |
---|---|---|
Matches![ID] |
Receive matches relating to a Scan. | Matches!j5Tm6X |
Name | Description |
---|---|
ID | The identifer of a persistent Scan. |
An array of Scan Match Change objects
Name | Type | Expect | Description |
---|---|---|---|
Operation | String | Always | The operation being performed. One of: Add: Adding a new Match. Update: Updating an existing Match. Remove: Removing a Match. Clear: Clearing all Matches. |
Key | String | Sometimes | The 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"}
]}