Metadata#

tradeexecutor.state.metadata.Metadata class.

class Metadata[source]#

Bases: object

Strategy metadata.

__init__(name, short_description, long_description, icon_url, started_at)#
Parameters
Return type

None

Methods

__init__(name, short_description, ...)

create_dummy()

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

name

short_description

1 sentence

long_description

Multiple paragraphs.

icon_url

For <img src>

started_at

When the instance was started last time, UTC

short_description: Optional[str]#

1 sentence

long_description: Optional[str]#

Multiple paragraphs.

icon_url: Optional[str]#

For <img src>

started_at: datetime#

When the instance was started last time, UTC

__init__(name, short_description, long_description, icon_url, started_at)#
Parameters
Return type

None