Skip to content
Deep Data

Get the key driver tree

Return the key driver tree of the specified stock's performance: each node includes a name, description, importance, child nodes, and linked deep data charts, plus whether drivers exist and the total number of charts. Used by the Key drivers tree on the stock Analysis page and the stock in-depth page.

GEThttps://api.lbkrs.com/stock/custom_module/key_drivers_tree

Parameters

counter_idstringqueryRequired

Stock counter_id, such as ST/US/AAPL

Responses

HTTP 200The request succeeded. The response body contains the result of the “Get the key driver tree” operation.
Standard response envelopecodemessagedata
dataobjectdata structure
existboolean

Whether key drivers exist

chart_countinteger

Total number of charts linked to drivers

nodeobject

Key driver tree node

Child attributes
titlestring

Driver name

descstring

Driver description

keywordstring

Keyword

levelinteger

Importance: 1 important, 2 secondary, 3 general

Values
1
2
3
chartobject

Deep data chart

Child attributes
idstring

Chart ID, usable with "Get a deep data chart"

titlestring

Chart title

descriptionstring

Chart description

unitstring

Value unit

keysobject

Indicator definitions referenced by the chart, keyed by indicator key

itemsarray<object>

Data series

Child attributes
keystring

Indicator key, matching a definition in the chart keys

counter_idstring

counter_id of the underlying the data belongs to

titlestring

Series name

descriptionstring

Series description

typeinteger

Chart type: 1 bar, 2 line

Values
1
2
use_left_y_axisinteger

Y axis used: 1 left, 2 right

Values
1
2
stackstring

Stack group; only for bar charts, series with the same stack are stacked

styleobject

Series drawing style

Child attributes
colorstring

Series color, hex color value

smoothboolean

Whether the line is smoothed

line_typestring

Line type: solid, dashed, dotted, or none

Values
solid
dashed
dotted
none
line_widthnumber

Line width

point_symbolstring

Data point shape: circle, emptyCircle, rect, or triangle

point_symbol_sizenumber

Data point size

point_colorstring

Data point color

point_border_colorstring

Data point border color

point_border_widthnumber

Data point border width

label_hideboolean

Whether to hide value labels on the chart

valuesarray<object>

Data points

Child attributes
dateinteger

Data date, Unix timestamp in seconds

valuestring

Value; the lower bound for range indicators

value_ceilingstring

Upper bound, returned only for range indicators

year_on_yearstring

Year-over-year change, such as 1.1

month_on_monthstring

Period-over-period change, such as 0.5

left_y_axis_value_styleinteger

Left axis value style: 1 hidden, 2 raw value, 3 percentage

Values
1
2
3
left_y_axis_value_minstring

Left axis minimum

left_y_axis_value_maxstring

Left axis maximum

right_y_axis_value_styleinteger

Right axis value style: 1 hidden, 2 raw value, 3 percentage

Values
1
2
3
right_y_axis_value_minstring

Right axis minimum

right_y_axis_value_maxstring

Right axis maximum

chartsarray<object>

Charts linked to the node

Child attributes
idstring

Chart ID, usable with "Get a deep data chart"

titlestring

Chart title

descriptionstring

Chart description

unitstring

Value unit

keysobject

Indicator definitions referenced by the chart, keyed by indicator key

itemsarray<object>

Data series

Child attributes
keystring

Indicator key, matching a definition in the chart keys

counter_idstring

counter_id of the underlying the data belongs to

titlestring

Series name

descriptionstring

Series description

typeinteger

Chart type: 1 bar, 2 line

Values
1
2
use_left_y_axisinteger

Y axis used: 1 left, 2 right

Values
1
2
stackstring

Stack group; only for bar charts, series with the same stack are stacked

styleobject

Series drawing style

Child attributes
colorstring

Series color, hex color value

smoothboolean

Whether the line is smoothed

line_typestring

Line type: solid, dashed, dotted, or none

Values
solid
dashed
dotted
none
line_widthnumber

Line width

point_symbolstring

Data point shape: circle, emptyCircle, rect, or triangle

point_symbol_sizenumber

Data point size

point_colorstring

Data point color

point_border_colorstring

Data point border color

point_border_widthnumber

Data point border width

label_hideboolean

Whether to hide value labels on the chart

valuesarray<object>

Data points

Child attributes
dateinteger

Data date, Unix timestamp in seconds

valuestring

Value; the lower bound for range indicators

value_ceilingstring

Upper bound, returned only for range indicators

year_on_yearstring

Year-over-year change, such as 1.1

month_on_monthstring

Period-over-period change, such as 0.5

left_y_axis_value_styleinteger

Left axis value style: 1 hidden, 2 raw value, 3 percentage

Values
1
2
3
left_y_axis_value_minstring

Left axis minimum

left_y_axis_value_maxstring

Left axis maximum

right_y_axis_value_styleinteger

Right axis value style: 1 hidden, 2 raw value, 3 percentage

Values
1
2
3
right_y_axis_value_minstring

Right axis minimum

right_y_axis_value_maxstring

Right axis maximum

bind_chartobject

Chart bound to the node

Child attributes
kindstring

Bound chart type; not empty when the node has a chart

chart_idstring

Bound chart ID

keystring

Bound indicator key

counter_idstring

counter_id of the underlying of the bound data

childrenarray<object>

Child drivers

Whale Docs