Skip to content
Longport Whale
Exchange Service Control

Add Service Strategy

Submitted from the "Create" dialog on the Exchange Service Control page to add an exchange strategy.

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

Is Default

change_typestring

Change Type

service_strategystring

Service Strategy

channel_namestring

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

support_currencyarray<string>

Support Currency. Before submission, each item's currency_prefix/currency_suffix in support_currencies is combined into a 'USD/HKD'-style string array.

support_currenciesarray<string>

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

service_timestring

Service Time. A JSON string assembled from the segmented form 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

Is Combine

forex_modestring

Forex Mode

bear_wavestring

Bear Wave

currency_prefixstring

Currency Prefix

currency_suffixstring

Currency Suffix

Responses

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

No nested fields

Whale Docs