Lean
$LEAN_TAG$
|
Helper JsonConverter that will round decimal and double types, to FractionalDigits fractional digits More...
Public Member Functions | |
override bool | CanConvert (Type objectType) |
Determines whether this instance can convert the specified object type. More... | |
override object | ReadJson (JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) |
Not implemented, will throw NotImplementedException More... | |
override void | WriteJson (JsonWriter writer, object value, JsonSerializer serializer) |
Writes the JSON representation of the object. More... | |
Public Attributes | |
override bool | CanRead => false |
Will always return false. Gets a value indicating whether this T:Newtonsoft.Json.JsonConverter can read JSON. More... | |
Static Public Attributes | |
const int | FractionalDigits = 4 |
The number of fractional digits to round to More... | |
Helper JsonConverter that will round decimal and double types, to FractionalDigits fractional digits
Definition at line 26 of file JsonRoundingConverter.cs.
override bool QuantConnect.Util.JsonRoundingConverter.CanConvert | ( | Type | objectType | ) |
Determines whether this instance can convert the specified object type.
objectType | Type of the object. |
Definition at line 44 of file JsonRoundingConverter.cs.
override object QuantConnect.Util.JsonRoundingConverter.ReadJson | ( | JsonReader | reader, |
Type | objectType, | ||
object | existingValue, | ||
JsonSerializer | serializer | ||
) |
Not implemented, will throw NotImplementedException
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 57 of file JsonRoundingConverter.cs.
override void QuantConnect.Util.JsonRoundingConverter.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 68 of file JsonRoundingConverter.cs.
|
static |
The number of fractional digits to round to
Definition at line 31 of file JsonRoundingConverter.cs.
override bool QuantConnect.Util.JsonRoundingConverter.CanRead => false |
Will always return false. Gets a value indicating whether this T:Newtonsoft.Json.JsonConverter can read JSON.
Definition at line 37 of file JsonRoundingConverter.cs.