Lean
$LEAN_TAG$
|
Provides an implementation of JsonConverter that can deserialize Product 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... | |
Product | CreateProductFromJObject (JObject jObject) |
Create an order from a simple JObject More... | |
Public Attributes | |
override bool | CanWrite => false |
Gets a value indicating whether this JsonConverter can write JSON. More... | |
Provides an implementation of JsonConverter that can deserialize Product
Definition at line 26 of file ProductJsonConverter.cs.
override bool QuantConnect.Api.Serialization.ProductJsonConverter.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 54 of file ProductJsonConverter.cs.
override void QuantConnect.Api.Serialization.ProductJsonConverter.WriteJson | ( | JsonWriter | writer, |
object | value, | ||
JsonSerializer | serializer | ||
) |
Writes the JSON representation of the object.
writer | The JsonWriter to write to. |
value | The value. |
serializer | The calling serializer. |
Definition at line 63 of file ProductJsonConverter.cs.
override object QuantConnect.Api.Serialization.ProductJsonConverter.ReadJson | ( | JsonReader | reader, |
Type | objectType, | ||
object | existingValue, | ||
JsonSerializer | serializer | ||
) |
Reads the JSON representation of the object.
reader | The JsonReader to read from. |
objectType | Type of the object. |
existingValue | The existing value of object being read. |
serializer | The calling serializer. |
Definition at line 75 of file ProductJsonConverter.cs.
Product QuantConnect.Api.Serialization.ProductJsonConverter.CreateProductFromJObject | ( | JObject | jObject | ) |
Create an order from a simple JObject
jObject |
Definition at line 89 of file ProductJsonConverter.cs.
override bool QuantConnect.Api.Serialization.ProductJsonConverter.CanWrite => false |
Gets a value indicating whether this JsonConverter can write JSON.
true
if this JsonConverter can write JSON; otherwise, false
.
Definition at line 45 of file ProductJsonConverter.cs.