Skip to content
Exchange Service Control

Add Service Strategy

Add Service Strategy.

Request parameters

  • Optional: is_default (Is Default), change_type (Change Type), service_strategy (Service Strategy), channel_name (Channel Name), support_currency (Support Currency), support_currencies (Support Currencies), service_time (Service Time), is_combine (Is Combine), forex_mode (Forex Mode), bear_wave (Bear Wave), currency_prefix (Currency Prefix), currency_suffix (Currency Suffix)
  • See each field for its format, allowed values, and business meaning.

Result

On success, the endpoint completes the operation. See the 200 response schema for returned data and subsequent state information.

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

Authorization

AuthorizationstringheaderRequired

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

Request body application/json

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