Skip to content
Client Notification

Update Exchange Rule

Update Exchange Rule.

Request parameters

  • Required: main (Main Currency Rule), other (Other Currency Rules), is_display (Is Display)
  • Optional: front_payload (Front Payload), audit_frontend_resource (Audit Context)
  • See each field for its format, allowed values, and business meaning.

Result

On success, the endpoint completes the operation. See the 200 response schema for returned data and subsequent state information.

POSThttps://b-api.lbkrs.com/v1/risk_monitoring/update_exchange_rule_v2

Production: https://b-api.lbkrs.com · Test: https://b-api.longbridge.xyz

Authorization

AuthorizationstringheaderRequired

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

Permission

No dedicated permission key. Any authenticated Broker ACCESS_TOKEN with access to this scope can call it.

Request body application/json

mainobjectrequired

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

otherarray<string>required

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_displaybooleanrequired

Is Display. - Single-select

  • on submit the strings 'true'/'false' are converted to booleans
  • when false, the other amount fields are disabled

truefalse

front_payloadobject

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_frontend_resourceobject

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.
Standard response envelopecodemessagedata
dataobjectdata structure
idinteger
ticket_idstring
HTTP 400Bad request. Check the business error code in code and the error details in message.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 401The user is not authenticated, or the login session has expired.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 403The current account is not authorized to use this feature. Grant the required permission to the account in User Permission.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 408The request timed out. Check the business error code in code and the error details in message.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

Whale Docs