Skip to Content

Update Watchlist Group

Update watched group

CLIInstall CLI

bash
# add symbols to a group
longbridge watchlist update <id> --add TSLA.US AAPL.US
# remove a symbol from a group
longbridge watchlist update <id> --remove NVDA.US
# add and remove at the same time
longbridge watchlist update <id> --add TSLA.US --remove AAPL.US

Request

HTTP MethodPUT
HTTP URL/v1/watchlist/groups

Parameters

Content-Type: application/json; charset=utf-8

NameTypeRequiredDescription
idintegerYESGroup ID, for example 10086.
namestringNOGroup name, for example Information Technology Group.
If this parameter is not passed, the group name will not be updated.
securitiesstring[]NOSecurity list, for example ["BABA.US", "AAPL.US"].
Combined with the mode parameter below, it can be used to add securities, remove securities, and sort the watchlist.
modestringNOOperation method
optional values:
add - Add securities
remove - Remove securities
replace - Update securities

When selecting add, the securities in the above list will be added to this group in order.

When selecting remove, the securities in the above list will be removed from this group.

When selecting update, the securities in the above list will completely replace the securities in this group.
For example, if the original group contains APPL.US, BABA.US, TSLA.US, and it is updated with ["BABA.US", "AAPL.US", "MSFT.US"], it will become BABA.US, AAPL.US, MSFT.US, removing TSLA.US and adding MSFT.US, while adjusting the order of BABA.US and AAPL.US.

Request Example

Response

Response Headers

  • Content-Type: application/json

Response Example

json
{
  "code": 0
}

Response Status

StatusDescriptionSchema
200SuccessNone
500Internal errorNone