Lean  $LEAN_TAG$
QuantConnect.Api.Serialization.ProductJsonConverter Class Reference

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

Inheritance diagram for QuantConnect.Api.Serialization.ProductJsonConverter:
[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...
 
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...
 

Detailed Description

Provides an implementation of JsonConverter that can deserialize Product

Definition at line 26 of file ProductJsonConverter.cs.

Member Function Documentation

◆ CanConvert()

override bool QuantConnect.Api.Serialization.ProductJsonConverter.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 54 of file ProductJsonConverter.cs.

◆ WriteJson()

override void QuantConnect.Api.Serialization.ProductJsonConverter.WriteJson ( JsonWriter  writer,
object  value,
JsonSerializer  serializer 
)

Writes the JSON representation of the object.

Parameters
writerThe JsonWriter to write to.
valueThe value.
serializerThe calling serializer.

Definition at line 63 of file ProductJsonConverter.cs.

◆ ReadJson()

override object QuantConnect.Api.Serialization.ProductJsonConverter.ReadJson ( JsonReader  reader,
Type  objectType,
object  existingValue,
JsonSerializer  serializer 
)

Reads the JSON representation of the object.

Parameters
readerThe 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 75 of file ProductJsonConverter.cs.

Here is the call graph for this function:

◆ CreateProductFromJObject()

Product QuantConnect.Api.Serialization.ProductJsonConverter.CreateProductFromJObject ( JObject  jObject)

Create an order from a simple JObject

Parameters
jObject
Returns
Order Object

Definition at line 89 of file ProductJsonConverter.cs.

Here is the caller graph for this function:

Member Data Documentation

◆ CanWrite

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.


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