LatestStateVisualisation#

API documentation for tradeexecutor.strategy.run_state.LatestStateVisualisation Python class in Trading Strategy framework.

class LatestStateVisualisation[source]#

Bases: object

The last visualisation of the strategy state.

__init__(last_refreshed_at=<factory>, small_image=None, small_image_dark=None, large_image=None, large_image_dark=None, small_image_png=None, large_image_png=None)#
Parameters:
Return type:

None

Methods

__init__([last_refreshed_at, small_image, ...])

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, ...])

update_image_data(small_image, large_image, ...)

Attributes

large_image

1024 x 1024 image SVG

large_image_dark

Dark theme version

large_image_png

1024 x 1024 image PNG for Discord

small_image

512 x 512 image SVG

small_image_dark

Dark theme version

small_image_png

512 x 512 image PNG for Discord

last_refreshed_at

When the execution state was updated last time

last_refreshed_at: datetime#

When the execution state was updated last time

small_image: Optional[str] = None#

512 x 512 image SVG

small_image_dark: Optional[str] = None#

Dark theme version

large_image: Optional[str] = None#

1024 x 1024 image SVG

large_image_dark: Optional[str] = None#

Dark theme version

small_image_png: Optional[bytes] = None#

512 x 512 image PNG for Discord

large_image_png: Optional[bytes] = None#

1024 x 1024 image PNG for Discord

__init__(last_refreshed_at=<factory>, small_image=None, small_image_dark=None, large_image=None, large_image_dark=None, small_image_png=None, large_image_png=None)#
Parameters:
Return type:

None