Skip to content

ChartSeriesJsonConverter

QuantConnect.ChartSeriesJsonConverter

Bases: JsonConverter

Convert a Chart Series to and from JSON

can_read

can_read: bool

This converter wont be used to read JSON. Will throw exception if manually called.

can_convert

can_convert(object_type: Type) -> bool

Indicates whether the given object type can be converted into Chart Series

read_json

read_json(
    reader: Any,
    object_type: Type,
    existing_value: Any,
    serializer: Any,
) -> Object

Converts a JSON file into a Chart Series object

write_json

write_json(
    writer: Any, value: Any, serializer: Any
) -> None

Converts a Chart Series object into a JSON file