Skip to content

TradingEconomicsDateTimeConverter

QuantConnect.DataSource.TradingEconomicsDateTimeConverter

Bases: JsonConverter

DateTime JSON Converter that handles null value

can_convert

can_convert(object_type: Type) -> bool

Indicate if we can convert this object.

read_json

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

Parse Trading Economics DateTime to C# DateTime

write_json

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

Write DateTime objects to JSON