Skip to content
Longport Whale
Stock Index

Operate Stock Index

The inline "Edit" (operation=1, from the form counter_id/index_code) and "Delete" (operation=2, expanding the whole record) actions on the Stock Index list share this endpoint.

POSThttps://b-api.longbridge.xyz/v1/risk_monitoring/stock_index_operate

Authorization

AuthorizationstringheaderRequired

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

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 front end).

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. The currently logged-in admin account, carried on both edit and delete.

Responses

HTTP 200No confirmable field definitions are available for the response yet.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

Whale Docs