Skip to main content
Version: v27

Drawing methods

info

These endpoints are only required when the saveload_separate_drawings_storage featureset is enabled. This allows saving drawings separately from the chart layout.

Save drawings

POST request: charts_storage_url/charts_storage_api_version/drawings?client=client_id&user=user_id&chart=chart_id&layout=layout_id

Request body

The request body contains a JSON with the state property, which holds a LineToolsAndGroupsState object.

Response content

The response is a JSON object containing the status property, which may have values of either ok or error.


Load drawings

GET request: charts_storage_url/charts_storage_api_version/drawings?client=client_id&user=user_id&chart=chart_id&layout=layout_id&symbol=symbol

Response content

The response is a JSON object containing the following properties:

ParameterDescription
statusok or error
dataAn object containing the state property, which holds a LineToolsAndGroupsState object