https://b-api.lbkrs.com/forex/service_strategy_addAuthorization
Send the Broker ACCESS_TOKEN as Authorization: Bearer <token>.
Permission
The Broker ACCESS_TOKEN must be granted the permission above, or the call will be rejected.
Request body application/json
Whether this is the default strategy. Pass a key from the forex_is_default data dictionary (GET /v1/datasets/refs/forex_is_default), not a boolean.
DEFAULT marks the default strategy; in that case the Admin console fixes change_type to 0.
change_type.
Allowed values: 0 All, 1 Large-amount exchange, 2 Small-amount exchange (within the pool), 3 Small-amount exchange (beyond the pool)
0- All
1- Large-amount exchange
2- Small-amount exchange (within the pool)
3- Small-amount exchange (beyond the pool)
Service strategy. Pass a key from the forex_service_strategy data dictionary (GET /v1/datasets/refs/forex_service_strategy).
When the value is BATCH, the Admin console does not send channel_name.
Exchange channel. Pass a key from the can_exchange_channel_configs data dictionary (GET /v1/datasets/refs/can_exchange_channel_configs). Required unless service_strategy is BATCH.
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.
The same currency pairs as support_currency, in the same order, as objects. Currency codes come from the global_currency_for_exchange data dictionary.
Child attributes
Source currency of the pair, such as USD.
Target currency of the pair, such as HKD.
Zero-based index of each entry in support_currencies. For two currency pairs, pass [0, 1].
Service time, as a JSON string with time_zones and time_rule:
time_zones:hk_trade_day(Hong Kong trading days),calendar_day(calendar days), orweek(by weekday).- For
hk_trade_dayandcalendar_day,time_ruleis a string of one or moreHH:mm:ss-HH:mm:ssranges joined by&, for example"09:00:00-12:00:00&13:00:00-16:00:00". - For
week,time_ruleis an array of{week_interval, time_interval}objects.week_intervalisstart-endwith1(Monday) to7(Sunday), for example"1-5";time_intervaluses the same range format as above.
Boolean flag for is combine.
Boolean values:
true- The condition appliesfalse- The condition does not apply
forex_mode. The set of accepted values could not be confirmed from the frontend; refer to the backend definition.
bear_wave. The set of accepted values could not be confirmed from the frontend; refer to the backend definition.
Responses
HTTP 200The request was processed successfully. The response data does not contain additional business fields.codemessagedatadataobjectdata structureNo nested fields
HTTP 400Bad request. Check the business error code in code and the error details in message.codemessagedatadataobjectdata structureNo nested fields
HTTP 401The user is not authenticated, or the login session has expired.codemessagedatadataobjectdata structureNo nested fields
HTTP 403The current account is not authorized to use this feature. Grant the required permission to the account in User Permission.codemessagedatadataobjectdata structureNo nested fields
HTTP 408The request timed out. Check the business error code in code and the error details in message.codemessagedatadataobjectdata structureNo nested fields