Skip to content

Watchlist:MoveInWatchlist

Moves a set of Members within a Watchlist to a different location.

Controller: Watchlist
Topic: MoveInWatchlist Action: Publish
Permissions: Zenith/Market

NameTypeExpectDescription
WatchlistIDStringAlwaysA unique identifier of the existing Watchlist to update.
OffsetNumberAlwaysAn zero-based index to move the Members from.
CountNumberAlwaysThe number of Members to move.
TargetNumberAlwaysAn zero-based index to move the Members to. This references the position after the selected Members are removed.

No Response Body.

This request moves the first Member down one.

Send:

{"Controller":"Watchlist","Topic":"MoveInWatchlist","TransactionID":1,"Data":{"WatchlistID":"123ABC","Offset":0,"Count":1,"Target":1}}

Receive:

{
"Controller":"Watchlist",
"Topic":"MoveInWatchlist",
"TransactionID":1
}

If subscribed to the modified Watchlist, you will also receive an update:

{
"Controller":"Watchlist",
"Topic":"Watchlist!123ABC",
"Data":
[
{"Operation":"Remove","At":0,"Count":1}
{"Operation":"Insert","At":1,"Members":["TLS.ASX"]}
]
}