Lean  $LEAN_TAG$
QuantConnect.Api.LiveAlgorithmResultsJsonConverter Class Reference

Custom JsonConverter for LiveResults data for live algorithms More...

Inheritance diagram for QuantConnect.Api.LiveAlgorithmResultsJsonConverter:
[legend]

Public Member Functions

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

Properties

override bool CanWrite [get]
 Gets a value indicating whether this T:Newtonsoft.Json.JsonConverter can write JSON. More...
 

Detailed Description

Custom JsonConverter for LiveResults data for live algorithms

Definition at line 31 of file LiveAlgorithmResultsJsonConverter.cs.

Member Function Documentation

◆ WriteJson()

override void QuantConnect.Api.LiveAlgorithmResultsJsonConverter.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 48 of file LiveAlgorithmResultsJsonConverter.cs.

◆ CanConvert()

override bool QuantConnect.Api.LiveAlgorithmResultsJsonConverter.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 60 of file LiveAlgorithmResultsJsonConverter.cs.

◆ ReadJson()

override object QuantConnect.Api.LiveAlgorithmResultsJsonConverter.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 73 of file LiveAlgorithmResultsJsonConverter.cs.

Property Documentation

◆ CanWrite

override bool QuantConnect.Api.LiveAlgorithmResultsJsonConverter.CanWrite
get

Gets a value indicating whether this T:Newtonsoft.Json.JsonConverter can write JSON.

true if this T:Newtonsoft.Json.JsonConverter can write JSON; otherwise, false.

Definition at line 40 of file LiveAlgorithmResultsJsonConverter.cs.


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