Lean
$LEAN_TAG$
|
Provides an implementation of JsonConverter that can deserialize Orders More...
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... | |
Provides an implementation of JsonConverter that can deserialize Orders
Definition at line 28 of file OrderJsonConverter.cs.
override bool QuantConnect.Orders.OrderJsonConverter.CanConvert | ( | Type | objectType | ) |
Determines whether this instance can convert the specified object type.
objectType | Type of the object. |
true
if this instance can convert the specified object type; otherwise, false
. Definition at line 48 of file OrderJsonConverter.cs.
override void QuantConnect.Orders.OrderJsonConverter.WriteJson | ( | JsonWriter | writer, |
object | value, | ||
JsonSerializer | serializer | ||
) |
Writes the JSON representation of the object.
writer | The T:Newtonsoft.Json.JsonWriter to write to. |
value | The value. |
serializer | The calling serializer. |
Definition at line 57 of file OrderJsonConverter.cs.
override object QuantConnect.Orders.OrderJsonConverter.ReadJson | ( | JsonReader | reader, |
Type | objectType, | ||
object | existingValue, | ||
JsonSerializer | serializer | ||
) |
Reads the JSON representation of the object.
reader | The T:Newtonsoft.Json.JsonReader to read from. |
objectType | Type of the object. |
existingValue | The existing value of object being read. |
serializer | The calling serializer. |
Definition at line 69 of file OrderJsonConverter.cs.
|
static |
Create an order from a simple JObject
jObject |
Definition at line 83 of file OrderJsonConverter.cs.
|
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.