Skip to content
Exchange Service Control

Update Service Strategy

Updates an existing record and includes its id.

Request parameters

  • Required: id (Strategy ID)
  • See each field for its format, allowed values, default behavior, and business meaning.

Result

On success, the endpoint completes the described business operation. See the 200 response schema for returned data.

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

Authorization

AuthorizationstringheaderRequired

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

Request body application/json

idstringrequired

Strategy ID associated with this request.

is_defaultboolean

Boolean flag for is default.

Boolean values:

  • true - The condition applies
  • false - The condition does not apply
change_typestring

Specifies Change Type.

service_strategystring

Specifies Service Strategy.

channel_namestring

Required when it is not the default strategy and channels must be distinguished.

support_currencyarray<string>

An array of supported currency pairs, each a USD/HKD-style string (assembled from each item's currency_prefix/currency_suffix in support_currencies).

The candidate currency pairs come from the supported currency-pair list returned by POST /forex/query_support_currency.

support_currenciesarray<string>

The request field support_currency raw array, which is moved entirely under the support_currencies key before submission.

service_timestring

A JSON string assembled from the segmented request fields service_time.time_zones/time_rule/time_rule_0, etc. The structure is fairly complex (covering time zones and time-slot rules); the inner fields are not exhaustively enumerated here.

is_combineboolean

Boolean flag for is combine.

Boolean values:

  • true - The condition applies
  • false - The condition does not apply
forex_modestring

Specifies Forex Mode.

bear_wavestring

Specifies Bear Wave.

currency_prefixstring

Specifies Currency Prefix.

currency_suffixstring

Specifies Currency Suffix.

Responses

HTTP 200The request was processed successfully. The response data does not contain additional business fields.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

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