Skip to content

SeriesJsonConverter

QuantConnect.Util.SeriesJsonConverter

Bases: JsonConverter

Json Converter for Series which handles special Pie Series serialization case

can_convert

can_convert(object_type: Type) -> bool

Determine if this Converter can convert this type

Parameters:

Name Type Description Default
object_type Type

Type that we would like to convert

required

Returns:

Type Description
bool

True if Series.

read_json

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

Reads series from Json

write_json

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

Write Series to Json

Parameters:

Name Type Description Default
writer Any

The Json Writer to use

required
value Any

The value to written to Json

required
serializer Any

The Json Serializer to use

required