Serializer
StockSharp.SpbEx.Protocol
SpbEx协议序列器使用SpanReader / SpanWriter.
方法
DeserializeBondDataMsg
public static BondDataMsg DeserializeBondDataMsg(SpanReader reader, int totalSize, CouponPayment[] couponPayments)
result = Serializer.DeserializeBondDataMsg(reader, totalSize, couponPayments)
将 BondDataMsg (带有优惠券的动态大小消息) 解析 。
DeserializeClearingAccountMsg
public static ClearingAccountMsg DeserializeClearingAccountMsg(SpanReader reader, int totalSize, ExchangeAccount[] exchangeAccounts)
result = Serializer.DeserializeClearingAccountMsg(reader, totalSize, exchangeAccounts)
将 ClearingAccountMsg (带有交换账户的动态大小消息) 切换化 。
DeserializeClientMsg
public static ClientMsg DeserializeClientMsg(SpanReader reader, int totalSize, ExchangeClient[] exchangeClients)
result = Serializer.DeserializeClientMsg(reader, totalSize, exchangeClients)
将 ClientMsg (动态大小消息,带有交换客户端和标签)去序列化.
DeserializeCommonDataMsg
public static CommonDataMsg DeserializeCommonDataMsg(SpanReader reader, int totalSize, CommonEntry[] entries)
result = Serializer.DeserializeCommonDataMsg(reader, totalSize, entries)
将 CommonDataMsg (带有常见条目的动态大小消息) 切换为序列 。
DeserializeExecutionMsg
public static ExecutionMsg DeserializeExecutionMsg(SpanReader reader, int totalSize, Deal[] deals)
result = Serializer.DeserializeExecutionMsg(reader, totalSize, deals)
取消ExecutionMsg(动态大小消息与交易)的序列化.
DeserializeFrame
public static Frame DeserializeFrame(SpanReader reader)
result = Serializer.DeserializeFrame(reader)
取消框架头 。
DeserializeInstrumentDataMsg
public static InstrumentDataMsg DeserializeInstrumentDataMsg(SpanReader reader, int totalSize, Period[] periods, ExchangeInstrument[] exchangeInstruments)
result = Serializer.DeserializeInstrumentDataMsg(reader, totalSize, periods, exchangeInstruments)
将 InstrumentDataMsg (带有周期和交换仪器的动态大小消息) 切换化 。
DeserializeOrderBookDataMsg
public static OrderBookDataMsg DeserializeOrderBookDataMsg(SpanReader reader, int totalSize, PriceLevel[] levels)
result = Serializer.DeserializeOrderBookDataMsg(reader, totalSize, levels)
将OrderBookDataMsg(具有价格水平的动态大小信息)去序列化.
DeserializePositionUpdateMsg
public static PositionUpdateMsg DeserializePositionUpdateMsg(SpanReader reader, int totalSize, ExtraData[] extraData)
result = Serializer.DeserializePositionUpdateMsg(reader, totalSize, extraData)
将 PositionUpdateMsg (带有额外数据的动态大小消息) 解编.
DeserializePriceLevelsDataMsg
public static PriceLevelsDataMsg DeserializePriceLevelsDataMsg(SpanReader reader, int totalSize, PriceLevel[] levels)
result = Serializer.DeserializePriceLevelsDataMsg(reader, totalSize, levels)
将PriceLevelsDataMsg(具有价格水平的动态大小信息)去序列化.
SerializeFrame
public static void SerializeFrame(SpanWriter writer, MsgTypes msgId, short size)
Serializer.SerializeFrame(writer, msgId, size)
串行框架头 。