Skip to content
Longport Whale
Reference Exchange Rate

Update Reference Exchange Rate

Submission of the row-level "Edit" form on the Reference Exchange Rate page, using the form component shared by rateCreate/rateUpdate. In edit mode, source/channel_name/base_currency/other_currency/record_date are shown read-only (disabled) and submitted along with the form; the only actually editable fields are bid_rate/offer_rate/average_rate. Involves real exchange-rate data changes.

POSThttps://b-api.longbridge.xyz/forex/rate/update

Authorization

AuthorizationstringheaderRequired

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

Request body application/json

idstringrequired

Rate Record ID. The primary key of the reference-exchange-rate record to edit, from the list row's record.id.

sourcestring

Rate Source. A read-only field taken from the record itself; the dropdown enum comes from ref rate_source.

channel_namestringrequired

Channel / Change Type. A read-only field (disabled in edit mode); if multi-select, it is joined into a comma-separated string on submission. The dropdown enum comes from ref manual_forex_change_type, e.g. MANUAL_CURRENT/MANUAL_ACCOUNT/CCASS.

base_currencystringrequired

Base Currency. A read-only field (disabled when editing); defaults to the standard_money currency from atm_currency_config.

other_currencystringrequired

Other Currency. Read-only field (disabled in edit mode).

record_datestringrequired

Record Date. A read-only field (disabled in edit mode); converted by the front end to a YYYYMMDD-format string before submission.

bid_ratenumberrequired

Bid Rate. Must be > 0, with precision determined by the rate_precision returned by the getCurrencyRateAccuracy endpoint.

offer_ratenumberrequired

Offer Rate. Must be > 0, with precision determined by the rate_precision returned by the getCurrencyRateAccuracy endpoint.

average_ratenumberrequired

Average Rate. Must be > 0, with precision determined by the rate_precision returned by the getCurrencyRateAccuracy endpoint.

audit_frontend_resourceobject

Audit Frontend Resource. Audit information attached automatically by the front end; in the edit scenario it contains $behavior / $action='edit' / bid_rate / offer_rate / average_rate (the pre-edit old values).

Responses

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

No nested fields

Whale Docs