Lean  $LEAN_TAG$
QuantConnect.Orders.TimeInForceJsonConverter Class Reference

Provides an implementation of JsonConverter that can deserialize TimeInForce objects More...

Inheritance diagram for QuantConnect.Orders.TimeInForceJsonConverter:
[legend]

Public Member Functions

override bool CanConvert (Type objectType)
 Determines whether this instance can convert the specified object type. More...
 
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...
 

Public Attributes

override bool CanWrite => true
 Gets a value indicating whether this T:Newtonsoft.Json.JsonConverter can write JSON. More...
 

Detailed Description

Provides an implementation of JsonConverter that can deserialize TimeInForce objects

Definition at line 27 of file TimeInForceJsonConverter.cs.

Member Function Documentation

◆ CanConvert()

override bool QuantConnect.Orders.TimeInForceJsonConverter.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 44 of file TimeInForceJsonConverter.cs.

◆ WriteJson()

override void QuantConnect.Orders.TimeInForceJsonConverter.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 53 of file TimeInForceJsonConverter.cs.

◆ ReadJson()

override object QuantConnect.Orders.TimeInForceJsonConverter.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 89 of file TimeInForceJsonConverter.cs.

Member Data Documentation

◆ CanWrite

override bool QuantConnect.Orders.TimeInForceJsonConverter.CanWrite => true

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 35 of file TimeInForceJsonConverter.cs.


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