Skip to content
Longport Whale
Risk Control Rules Management

Save Risk Rule

Submitted by the "Add/Edit" form on the risk-control parameter page, saving a risk-control rule. It configures the real risk-control rule engine — proceed with caution.

POSThttps://b-api.longbridge.xyz/v1/risk_monitoring/rule_engine/save_risk_rule

Authorization

AuthorizationstringheaderRequired

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

Request body application/json

risk_rule_idstring

Risk Rule ID. Passed when editing an existing rule; not passed when creating.

rule_namestringrequired

Rule Name

group_namestringrequired

Rule Group Name. Values come from the risk_groups dynamic enumeration and are not fixed.

statusnumberrequired

Status. Single-select: 1 = enable, 2 = disable.

aaidstring

Account AAID. Submitted only when the rule type is "Customized - single account"; it is the selected client's AAID.

group_idstring

Client Group ID. Submitted only when the rule type is "Customized - client group"; values come from the ref_client_group_query_risk dynamic enumeration and are not fixed.

rule_detailarray<string>required

Rule Detail List. Each item contains parameter (the rule parameter name, from the risk_rule_parameter_cfg_query dynamic query, not fixed), operator (comparison operator = / >, fixed to = for boolean parameters), and target_value (for boolean type, 1/0 = TRUE/FALSE; for float type, a numeric string).

audit_frontend_resourceobject

Audit Frontend Resource. Audit information shown in the approval ticket: operation type (add/edit), rule type (global/customized), and a human-readable text comparison of the rule details before and after the change.

Responses

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

No nested fields

Whale Docs