WsSecurityIdConverter
StockSharp.Ws
Reads WsSecurityId from either of the two on-the-wire forms — packed string "CODE@BOARD" or object {"code":"X","board":"Y"}. Outgoing serialization always writes the object form.
Inherits: JsonConverter<WsSecurityId>
Methods
ReadJson
public override WsSecurityId ReadJson(JsonReader reader, Type objectType, WsSecurityId existingValue, bool hasExistingValue, JsonSerializer serializer)
result = wsSecurityIdConverter.ReadJson(reader, objectType, existingValue, hasExistingValue, serializer)
ReadJson.
WriteJson
public override void WriteJson(JsonWriter writer, WsSecurityId value, JsonSerializer serializer)
wsSecurityIdConverter.WriteJson(writer, value, serializer)
WriteJson.