Skip to content
Fund Strategy

Save Strategy Filter

Save Strategy Package.

Request parameters

  • Required: name_locales (Name (Locales)), conditions (Conditions), display_cols (Display Columns), hit_funds (Hit Funds)
  • Optional: id (Strategy Package ID), subtitle_locales (Subtitle (Locales)), header_image_locales (Header Image (Locales)), show_quick_filter (Show Quick Filter), show_homepage (Show On Homepage), sort (Sort), status (Status)
  • See each field for its format, allowed values, and business meaning.

Result

Returns the ID of the saved strategy package.

POSThttps://b-api.lbkrs.com/v1/admin/strategy/save

Production: https://b-api.lbkrs.com · Test: https://b-api.longbridge.xyz

Authorization

AuthorizationstringheaderRequired

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

Permission

fund.strategy_update

The Broker ACCESS_TOKEN must be granted the permission below, or the call will be rejected.

Request body application/json

idinteger

Strategy Package ID. Leave empty or 0 when creating; pass an existing strategy package ID when editing.

name_localesstringrequired

Name (Locales). This field is required.

subtitle_localesstring

Subtitle (Locales).

header_image_localesstring

Header Image (Locales).

show_quick_filterinteger

Show Quick Filter.

show_homepageinteger

Show On Homepage.

sortinteger

Sort.

statusinteger

Status.

conditionsarray<object>required

Conditions. This field is required.

Child attributes
dimensionstring

Dimension.

metricstring

Metric.

periodstring

Period.

rulestring

Rule.

valuesstring

Values.

display_colsarray<object>required

Display Columns. This field is required.

Child attributes
col_indexinteger

Column Index.

original_metricstring

Original Metric.

is_default_sortinteger

Is Default Sort.

hit_fundsarray<object>required

Hit Funds. This field is required.

Child attributes
counter_idstring

Counter ID.

statusinteger

Status.

01

Responses

HTTP 200The request was processed successfully. data.id is the ID of the saved strategy package.
Standard response envelopecodemessagedata
dataobjectdata structure
idinteger

Strategy Package ID. ID of the saved strategy package.

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