Skip to content
Index Level

Operate Index Level

Index Level uses one endpoint for four operations: create (operation = 0), edit (1, with id ), delete (2, using the legacy field name stock_level ), and initialize (3, with only operation ).

Request parameters

  • Required: index_code (Index Code), index_name (Index Name), index_type (Index Type), operator (Operator), operation (Operation)
  • Optional: remark (Remark), id (ID)
  • See each field for its format, allowed values, default behavior, and business meaning.

Result

On success, the endpoint completes the described business operation. See the 200 response schema for returned data.

POSThttps://b-api.lbkrs.com/v1/risk_monitoring/index_level_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

index_codestringrequired

Index Code. This field is required.

index_namestringrequired

Index Name. This field is required.

index_typeintegerrequired

Index Type. Index level, single-select: 0 = Tier1, 1 = Tier2, 2 = Other. The delete operation reuses the field name stock_level (using the record's stock_level_val), a legacy naming artifact.

012

remarkstring

Remark.

operatorstringrequired

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

operationintegerrequired

Operation. Operation type: 0 = add, 1 = edit, 2 = delete, 3 = initialize data (sending only operation=3, with no other fields).

0 · Add1 · Edit2 · Delete3 · Initialize Data

idinteger

ID. Sent only for edit (operation=1) and delete (operation=2); not sent for create (operation=0) or initialize (operation=3).

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