Skip to content
Stock Index

Operate Stock Index

Updates Stock Index.

Request parameters

  • Required: operation (Operation), id (ID)
  • Optional: stock_code (Stock Code), index_code (Index Code), operator (Operator)
  • See each field for its format, allowed values, and business meaning.

Result

On success, the endpoint completes the operation. See the 200 response schema for returned data and subsequent state information.

POSThttps://b-api.lbkrs.com/v1/risk_monitoring/stock_index_operate

Production: https://b-api.lbkrs.com · Test: https://b-api.longbridge.xyz

Authorization

AuthorizationstringheaderRequired

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

Permission

No dedicated permission key. Any authenticated Broker ACCESS_TOKEN with access to this scope can call it.

Request body application/json

operationintegerrequired

Operation. enum Operation { 0=Create 1=Edit 2=Delete 3=New }; Edit always sends 1 and Delete always sends 2 (no Create=0 / New=3 call site was seen on the client).

0 · Create1 · Edit2 · Delete3 · New

stock_codestring

Stock Code. The counter_id input in the edit form (disabled, for display).

index_codestring

Index Code. The index_code input box on the edit form.

idintegerrequired

ID. The primary-key ID of the selected stock-index record, populated programmatically.

operatorstring

Operator. Current logged-in operator account; included on edit/delete

Responses

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

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