WebChart#

API documentation for tradeexecutor.visual.web_chart.WebChart Python class in Trading Strategy framework.

class WebChart[source]#

Bases: object

JSONnable chart reply.

Contain data and metadata for the frontend chart rendering:

__init__(data, title, help_link, source=WebChartSource.live_trading)#
Parameters:
Return type:

None

Methods

__init__(data, title, help_link[, source])

from_dict(kvs, *[, infer_missing])

from_json(s, *[, parse_float, parse_int, ...])

schema(*[, infer_missing, only, exclude, ...])

to_dict([encode_json])

to_json(*[, skipkeys, ensure_ascii, ...])

Attributes

source

time_window

Time window for this was generated

data

UNIX timestamp, value tuples

title

Chart description

help_link

Help link "Learn more"

data: List[Tuple[float, float]]#

UNIX timestamp, value tuples

title: str#

Chart description

Help link “Learn more”

time_window = 'all'#

Time window for this was generated

__init__(data, title, help_link, source=WebChartSource.live_trading)#
Parameters:
Return type:

None