Skip to content
Longport Whale
Client Notification

Update Exchange Rule

Edit the FX rule for margin-borrowing alerts.

POSThttps://b-api.longbridge.xyz/v1/risk_monitoring/update_exchange_rule_v2

Authorization

AuthorizationstringheaderRequired

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

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.

is_displaybooleanrequired

Is Display. Single-select; values come from the is_display_ref dynamic enumeration and are not fixed; on submit the strings 'true'/'false' are converted to booleans; when false, the other amount fields are disabled.

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 Frontend Resource. A non-core business field carrying the is_display value at submission time.

Responses

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

No nested fields

Whale Docs