Skip to content
Exchange Order

Manual Exchange

Manual Convert.

Request parameters

  • Required: from (From currency), to (To currency)
  • Optional: amount (Source amount), target_amount (Target amount), account_channel (Account channel), aaid (Account aaid), origin (Origin), ref_no (Reference no)
  • See each field for its format, allowed values, and business meaning.

Result

Returns the result; see the 200 response schema for fields.

POSThttps://b-api.longbridge.xyz/forex/manual_convert

Authorization

Authorizationstringheaderb2b_withdraw.user_forex_orderlb_hk_conversion.userexchangebill_queryRequired

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

Request body application/json

fromstringrequired

From currency. Specifies From currency. This field is required.

tostringrequired

To currency. Specifies To currency. This field is required.

amountstring

Source amount. Specifies Source amount.

target_amountstring

Target amount. Specifies Target amount.

account_channelstring

Account channel. Specifies Account channel.

aaidinteger

Account aaid. Specifies Account aaid.

origininteger

Origin. Specifies Origin.

ref_nostring

Reference no. Specifies Reference no.

Responses

HTTP 200The request was processed successfully. data is the result.
Standard response envelopecodemessagedata
dataobjectdata structure
okboolean

Whether succeeded. Specifies Whether succeeded.

idinteger

Convert record id. Specifies Convert record id.

in_serviceboolean

Whether in service hours. Specifies Whether in service hours.

deal_timestring

Deal time. Specifies Deal time.

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