Skip to content
Fund Theme

Add/Update Fund Category

Create or edit a fund theme.

Request parameters

  • Required: items (funds in the theme).
  • Optional: id (theme ID, provided when editing), name/name_locales (theme name and localizations), description/description_locales (theme description and localizations), order_weight (sort weight), state (enabled or not), option (fund list option), sort_type (sort type), time_interval (time interval).
  • See the field definitions for each field's format, allowed values, and business meaning.

Business notes

Providing id edits an existing theme; omitting it creates a new one. items lists the theme's funds, and option/sort_type control fund selection and ordering.

Returns

On success the fund theme is saved; see the 200 response for the exact payload.

POSThttps://b-api.lbkrs.com/funds/admin/update-fund-cate

Authorization

AuthorizationstringheaderRequired

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

Permission

fund.fund_category

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

Request body application/json

idstring

Fund theme ID

namestringrequired

Fund theme name

name_localesstringrequired

Fund theme name (multi-language)

descriptionstringrequired

Theme description

description_localesstring

description_locales

order_weightnumber

Sort weight

stateboolean

Whether it is shown

optionnumberrequired

Fund list option

sort_typenumberrequired

Sort type

time_intervalstring

Return period

itemsarray<object>
Child attributes
time_intervalstring

items[].time_interval

counter_idstringrequired

Fund. Format is {type}/{market}/{code}, for example, stock ST/HK/700 or ST/US/AAPL, and option OP/US/AAPL270319C320000.

order_weightnumber

Sort weight

Responses

HTTP 200The request was processed successfully. The response data does not contain additional business fields.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

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