Skip to content
Longport Whale
Ratio Setup Records

Trigger All Stock Margin Ratio Tasks

The "Batch Activate" button on the Ratio Setup Records page. Involves real batch margin-ratio changes and is extremely high risk. Here ids is the list of pending task IDs (from the template_id: waitting_stock_margin_ratio_task_count query result); no pagination/date parameters are passed explicitly, meaning it triggers all pending tasks.

POSThttps://b-api.longbridge.xyz/risk/v1/stock_margin_ratio_tasks/trigger_all

Authorization

AuthorizationstringheaderRequired

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

Request body application/json

audit_frontend_resourceobject

Audit Frontend Resource. A front-end audit-tracking object: $behavior is the operation description, and ids is the list of pending-task IDs involved in this batch trigger (taken from the waitting_stock_margin_ratio_task_count query result).

audit_frontend_resource.$behaviorstring

Behavior Description. Localized text describing the batch sync action currently triggered.

audit_frontend_resource.idsarray<string>

Task ID List. The set of margin-adjustment task IDs to batch-trigger; used only for audit records, not for filtering (the interface semantics are to trigger all pending tasks).

Responses

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

No nested fields

Whale Docs