https://b-api.lbkrs.com/v1/admin/strategy/saveAuthorization
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
Strategy Package ID. Leave empty or 0 when creating; pass an existing strategy package ID when editing.
Name (Locales). This field is required.
Subtitle (Locales).
Header Image (Locales).
Show Quick Filter.
Allowed values: 1 Shown on the filter page, 0 Not shown
1- Yes (show in quick filter)
0- No
Show On Homepage.
Allowed values: 1 Shown on the homepage, 0 Not shown
1- Yes (show on homepage)
0- No
Sort.
Status.
Allowed values: 0 Draft, 1 Online, 2 Offline
0- Draft
1- Online
2- Offline
Conditions. This field is required.
Child attributes
Dimension.
Metric.
Period.
Rule.
Values.
Display Columns. This field is required.
Child attributes
Column Index.
Original Metric.
Is Default Sort.
Allowed values: 1 Yes (default sort column), 0 No
1- Yes (default sort column)
0- No
Hit Funds. This field is required.
Child attributes
Counter ID. Format is {type}/{market}/{code}, for example, stock ST/HK/700 or ST/US/AAPL, and option OP/US/AAPL270319C320000.
Status.
01
Responses
HTTP 200The request was processed successfully. data.id is the ID of the saved strategy package.codemessagedatadataobjectdata structureStrategy Package ID. ID of the saved strategy package.
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