Skip to main content

decode_execution_report

Function decode_execution_report 

Source
pub fn decode_execution_report(
    data: &[u8],
) -> Result<BinanceSpotExecutionReport>
Expand description

Decodes an SBE ExecutionReportEvent (template 603) into a BinanceSpotExecutionReport.

The input buffer must include the 8-byte SBE message header.

ยงErrors

Returns error if the buffer is too short, the template ID is wrong, or the schema ID does not match.