Skip to content
Technical Indicators

Save User Indicator Settings

Saves the current user's settings for one indicator or one chart position, overwriting what was previously saved for that ID. There are two uses: after the user changes parameters and lines on the indicator settings page, save the parameter and line configuration under the indicator ID; after the user selects or reorders indicators in the indicator panel, save the list of selected indicator IDs under the chart-position configuration key. After a successful save, other devices read the new settings through POST /v1/indicator/get_config. The Broker App updates its local settings before calling this endpoint; if the call fails, tell the user and keep the local settings so the save can be retried.

POSThttps://api.lbkrs.com/v1/indicator/update_config

Request body application/json

indicatorIdstringrequired

Indicator ID or chart-position configuration key

paramsstringrequired

The settings serialized as a JSON string. When saving under an indicator ID, the structure is {"params": {<parameter key>: {"value": <number>}}, "charts": {<line key>: {"is_selected": <boolean>, "color": <hex color>}}}. When saving under a chart-position configuration key, the structure is {"configs": [<indicator ID>, ...]}, and the array order is the display order.

Responses

HTTP 200The request succeeded. A code of 0 means the settings were saved.
codeintegerrequired

Business status code, 0 indicates success

messagestringrequired

Human-readable result or error message.

Whale Docs