Lean  $LEAN_TAG$
QuantConnect.Orders.OrderJsonConverter Class Reference

Provides an implementation of JsonConverter that can deserialize Orders More...

Inheritance diagram for QuantConnect.Orders.OrderJsonConverter:
[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...
 

Static Public Member Functions

static Order CreateOrderFromJObject (JObject jObject)
 Create an order from a simple JObject More...
 

Properties

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

Detailed Description

Provides an implementation of JsonConverter that can deserialize Orders

Definition at line 28 of file OrderJsonConverter.cs.

Member Function Documentation

◆ CanConvert()

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

◆ WriteJson()

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

◆ ReadJson()

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

Here is the call graph for this function:

◆ CreateOrderFromJObject()

static Order QuantConnect.Orders.OrderJsonConverter.CreateOrderFromJObject ( JObject  jObject)
static

Create an order from a simple JObject

Parameters
jObject
Returns
Order Object

Definition at line 83 of file OrderJsonConverter.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

Property Documentation

◆ CanWrite

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


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