Skip to content
Stock Group

Remove Stock from Group

Removes a single security from a specified stock group.

Request parameters

  • Required: group_id (target stock group id) and counter_id (the security to remove).
  • The request body is passed as JSON in the DELETE request.
  • See the field descriptions for each field's format, source, and business meaning.

Risk warning

This operation changes stock group membership and may affect risk strategies that reference the group. Confirm the target group and security before calling.

Result

On success the security identified by counter_id is removed from the specified group; subsequent state and returned data follow the 200 response definition.

DELETEhttps://b-api.lbkrs.com/v1/risk/stock-group/remove-stock

Authorization

AuthorizationstringheaderRequired

Send the Broker ACCESS_TOKEN as Authorization: Bearer <token>.

Request body application/json

group_idstringrequired

Target stock group id that the stock is removed from.

Values are dynamic. Call GET /v1/datasets/refs/stock_groups to retrieve the current data dictionary, and use the returned entry's key as this parameter's value.

counter_idstringrequired

Stock counter id (counter_id) to remove from the group. It matches the counter_id in the records returned by the stock group details dataset (stock_group_details), and is usually taken from the detail record being removed.

Responses

HTTP 200The request was processed successfully. The response data does not contain additional business fields.
Standard response envelopecodemessagedata
dataobjectdata structure

On success data is an empty object.

No nested fields

HTTP 400Bad request. Check the business error code in code and the error details in message.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 401The user is not authenticated, or the login session has expired.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 403The current account is not authorized to use this feature. Grant the required permission to the account in User Permission.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 408The request timed out. Check the business error code in code and the error details in message.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

Whale Docs