Defines how OrderEvents should be serialized to json
More...
|
| OrderEventJsonConverter (string algorithmId=null) |
| Creates a new instance More...
|
|
override object | ReadJson (JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) |
| Reads the JSON representation of the object. More...
|
|
override void | WriteJson (JsonWriter writer, object value, JsonSerializer serializer) |
| Writes the JSON representation of the object. More...
|
|
override bool | CanConvert (Type objectType) |
| Determines whether this instance can convert the specified object type. More...
|
|
Defines how OrderEvents should be serialized to json
Definition at line 24 of file OrderEventJsonConverter.cs.
◆ OrderEventJsonConverter()
QuantConnect.Orders.Serialization.OrderEventJsonConverter.OrderEventJsonConverter |
( |
string |
algorithmId = null | ) |
|
Creates a new instance
- Parameters
-
algorithmId | The associated algorithm id, required when serializing |
Definition at line 37 of file OrderEventJsonConverter.cs.
◆ Convert() [1/2]
Convert the input value to a value to be serialzied
- Parameters
-
value | The input value to be converted before serialziation |
- Returns
- A new instance of TResult that is to be serialzied
Definition at line 47 of file OrderEventJsonConverter.cs.
◆ Convert() [2/2]
Converts the input value to be deserialized
- Parameters
-
value | The deserialized value that needs to be converted to OrderEvent |
- Returns
- The converted value
Definition at line 57 of file OrderEventJsonConverter.cs.
◆ PopulateProperties
override bool QuantConnect.Orders.Serialization.OrderEventJsonConverter.PopulateProperties => false |
|
protected |
The documentation for this class was generated from the following file: