Lean  $LEAN_TAG$
QuantConnect.SymbolJsonConverter Class Reference

Defines a JsonConverter to be used when deserializing to the Symbol class. More...

Inheritance diagram for QuantConnect.SymbolJsonConverter:
[legend]

Public Member Functions

override void WriteJson (JsonWriter writer, object value, JsonSerializer serializer)
 Writes the JSON representation of the object. More...
 
override object ReadJson (JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
 Reads the JSON representation of the object. More...
 
override bool CanConvert (Type objectType)
 Determines whether this instance can convert the specified object type. More...
 

Detailed Description

Defines a JsonConverter to be used when deserializing to the Symbol class.

Definition at line 27 of file SymbolJsonConverter.cs.

Member Function Documentation

◆ WriteJson()

override void QuantConnect.SymbolJsonConverter.WriteJson ( JsonWriter  writer,
object  value,
JsonSerializer  serializer 
)

Writes the JSON representation of the object.

Parameters
writerThe T:Newtonsoft.Json.JsonWriter to write to.
valueThe value.
serializerThe calling serializer.

Definition at line 33 of file SymbolJsonConverter.cs.

◆ ReadJson()

override object QuantConnect.SymbolJsonConverter.ReadJson ( JsonReader  reader,
Type  objectType,
object  existingValue,
JsonSerializer  serializer 
)

Reads the JSON representation of the object.

Parameters
readerThe T:Newtonsoft.Json.JsonReader to read from.
objectTypeType of the object.
existingValueThe existing value of object being read.
serializerThe calling serializer.
Returns
The object value.

Definition at line 60 of file SymbolJsonConverter.cs.

◆ CanConvert()

override bool QuantConnect.SymbolJsonConverter.CanConvert ( Type  objectType)

Determines whether this instance can convert the specified object type.

Parameters
objectTypeType of the object.
Returns
true if this instance can convert the specified object type; otherwise, false.

Definition at line 78 of file SymbolJsonConverter.cs.


The documentation for this class was generated from the following file: