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)

Сериализовать заголовок кадра.