https://b-api.longbridge.xyz/v1/risk/stock-group/add-stocksAuthorization
Send the Broker ACCESS_TOKEN as Authorization: Bearer <token>.
Request body application/json
Target stock group id that the stocks are added to.
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.
List of stock counter ids (counter_id) to add to the stock group; multiple values are allowed per call. Each element is a single stock's counter_id, consistent with the counter_id used by the stock group details dataset (stock_group_details) and the remove-stock endpoint (stock-group/remove-stock).
Caller-provided audit context for the approval workflow, such as the target stock group name (stock_group_name). It is used only for display in the approval process and does not affect processing. Omitting it does not affect the add operation.
Responses
HTTP 200The request was processed successfully. The response data does not contain additional business fields.codemessagedatadataobjectdata structureNo nested fields
HTTP 400Bad request. Check the business error code in code and the error details in message.codemessagedatadataobjectdata structureNo nested fields
HTTP 401The user is not authenticated, or the login session has expired.codemessagedatadataobjectdata structureNo nested fields
HTTP 403The current account is not authorized to use this feature. Grant the required permission to the account in User Permission.codemessagedatadataobjectdata structureNo nested fields
HTTP 408The request timed out. Check the business error code in code and the error details in message.codemessagedatadataobjectdata structureNo nested fields