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.longbridge.xyz/v1/admin/strategy/save

Authorization

Authorizationstringheaderfund.strategy_updateRequired

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

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). Specifies Name (Locales). This field is required.

subtitle_localesstring

Subtitle (Locales). Specifies Subtitle (Locales).

header_image_localesstring

Header Image (Locales). Specifies Header Image (Locales).

show_quick_filterinteger

Show Quick Filter. Specifies Show Quick Filter.

show_homepageinteger

Show On Homepage. Specifies Show On Homepage.

sortinteger

Sort. Specifies Sort.

statusinteger

Status. Specifies Status.

conditionsarray<object>required

Conditions. Specifies Conditions. This field is required.

Child attributes
dimensionstring

Dimension. Specifies Dimension.

metricstring

Metric. Specifies Metric.

periodstring

Period. Specifies Period.

rulestring

Rule. Specifies Rule.

valuesstring

Values. Specifies Values.

display_colsarray<object>required

Display Columns. Specifies Display Columns. This field is required.

Child attributes
col_indexinteger

Column Index. Specifies Column Index.

original_metricstring

Original Metric. Specifies Original Metric.

is_default_sortinteger

Is Default Sort. Specifies Is Default Sort.

hit_fundsarray<object>required

Hit Funds. Specifies Hit Funds. This field is required.

Child attributes
counter_idstring

Counter ID. Specifies Counter ID.

statusinteger

Status. Specifies 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