https://b-api.lbkrs.com/v1/risk_monitoring/update_exchange_rule_v2Production: https://b-api.lbkrs.com · Test: https://b-api.longbridge.xyz
Authorization
Send the Broker ACCESS_TOKEN as Authorization: Bearer <token>.
Permission
Request body application/json
Main Currency Rule. Contains three fields, all numeric strings: debt (debt-amount threshold), avail_with_draw (withdrawable-amount threshold), and currency (the account's base currency, read-only).
Other Currency Rules. An array; each item is {currency: currency code (values from the global_currency_which_support_exchange dynamic enumeration, not fixed), debt: debt-amount threshold, avail_with_draw: withdrawable-amount threshold}; multiple can be added/removed.
Call GET /v1/datasets/refs/tenant_exchange_currencies to retrieve the current data dictionary, and use the returned entry's key as this field's value.
Is Display. - Single-select
- on submit the strings 'true'/'false' are converted to booleans
- when false, the other amount fields are disabled
truefalse
Front Payload. A non-core business field; type is fixed to data_diff, recording the before/after values of is_display/debt/avail_with_draw/other for approval-ticket display.
Audit Context. A non-core business field carrying the is_display value at submission time.
Responses
HTTP 200The request was processed successfully. The response data does not contain additional business fields.codemessagedatadataobjectdata structureHTTP 400Bad request. Check the business error code in code and the error details in message.codemessagedatadataobjectdata structureNo nested fields
HTTP 401The user is not authenticated, or the login session has expired.codemessagedatadataobjectdata structureNo nested fields
HTTP 403The current account is not authorized to use this feature. Grant the required permission to the account in User Permission.codemessagedatadataobjectdata structureNo nested fields
HTTP 408The request timed out. Check the business error code in code and the error details in message.codemessagedatadataobjectdata structureNo nested fields