ChartRenderingResult#

API documentation for tradeexecutor.strategy.chart.definition.ChartRenderingResult Python class in Trading Strategy framework.

class ChartRenderingResult[source]#

Bases: object

Server-side rendered result, ready to send over a wire.

__init__(data, content_type='image/png', error=None)#
Parameters:
  • data (bytes) –

  • content_type (Literal['image/png', 'image/svg', 'text/html']) –

  • error (str | None) –

Return type:

None

Methods

__init__(data[, content_type, error])

error_out(msg)

Create an error output.

Attributes

data

content_type

error

static error_out(msg)[source]#

Create an error output.

Parameters:

msg (str) –

Return type:

ChartRenderingResult

__init__(data, content_type='image/png', error=None)#
Parameters:
  • data (bytes) –

  • content_type (Literal['image/png', 'image/svg', 'text/html']) –

  • error (str | None) –

Return type:

None