Skip to content
Longport Whale
Securities Limit

Stock Batch Apply Trade Limit

On the Securities Limit page, after selecting rows, clicking the row-level "Activate/Deactivate" button or the floating batch-action bar; only the concrete values passed by the caller differ. It changes real trading-limit activation/deactivation and is fairly high-risk.

POSThttps://b-api.longbridge.xyz/risk_limit/v1/stock/batch_apply

Authorization

AuthorizationstringheaderRequired

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

Request body application/json

listarray<string>required

Batch target limit config list. Meaning of each field: counter_id is the counter number, aaid is the client account ID (usually empty), code is the security code (the key field for this security dimension), trader/trader_name are the trader ID/name, client_group/client_group_name are the client category (group) ID/name, and stock_group is the stock group ID.

is_applybooleanrequired

Apply flag. true = batch activate, false = batch deactivate; determined by the negated value passed when the "Activate/Deactivate" button is clicked (!(is_apply_val === 'true')).

audit_frontend_resourceobject

Frontend audit log metadata. Not a business parameter; used only for backend audit logging. $action: 'add' (activate) | 'delete' (deactivate); $behavior: the audit-action description text (i18n keys audit_limit_effective/audit_limit_invalid).

Responses

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

No nested fields

Whale Docs