https://b-api.lbkrs.com/v1/admin/strategy/saveProduction: https://b-api.lbkrs.com · Test: https://b-api.longbridge.xyz
Authorization
Send the Broker ACCESS_TOKEN as Authorization: Bearer <token>.
Permission
The Broker ACCESS_TOKEN must be granted the permission below, 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.
Show On Homepage.
Sort.
Status.
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.
Hit Funds. This field is required.
Child attributes
Counter ID.
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