Skip to main content

decode_market_data

Function decode_market_data 

Source
pub fn decode_market_data(
    buf: &[u8],
) -> Result<MarketDataMessage, StreamDecodeError>
Expand description

Decode an SBE binary frame into a market data message.

Validates the message header (including schema ID) and routes to the appropriate decoder based on template ID.

ยงErrors

Returns an error if the buffer is too short, schema validation fails, or the template ID is unknown.