Skip to content
Longport Whale
Currency Pairs

Update Support Currency V2

On the Currency Pairs list, the in-row "Edit" dialog (when record exists) and the "Set as Default" button share the same interface, both delivering add/update/delete actions via an UpdateSupportCurrency array.

POSThttps://b-api.longbridge.xyz/v2/forex/support_currency_update

Authorization

AuthorizationstringheaderRequired

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

Request body application/json

UpdateSupportCurrencyarray<string>required

Support Currency Update List. Each item contains id/from_currency/to_currency/action/default_currency; newly added items use action=1, items with a changed to_currency use action=2, and removed old items use action=3; in one case a single item is always passed with action=2 and default_currency=true to set the default target currency.

UpdateSupportCurrency[].idstring

Currency Pair Item ID. The ID of an existing target-currency record; empty when creating (action=1).

UpdateSupportCurrency[].from_currencystringrequired

From Currency. Three-letter currency code.

UpdateSupportCurrency[].to_currencystringrequired

To Currency. Three-letter currency code.

UpdateSupportCurrency[].actionnumberrequired

Action Type. Enum: 1 = add, 2 = modify / set as default, 3 = delete (inferred from front-end hardcoded logic).

UpdateSupportCurrency[].default_currencyboolean

Is Default Currency. Only passed as true in the "Set as Default" scenario.

audit_frontend_resourceobject

Audit Frontend Resource (Before/After). Sent only in the edit scenario; contains before/after target-currency arrays, used for back-office audit trails.

Responses

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

No nested fields

Whale Docs