Quant Interview Practice Questions
题目详情
In low-latency trading systems, financial messages are often transmitted using custom binary protocols rather than text-based formats to minimize bandwidth and parsing overhead. Implementing a binary codec requires packing and unpacking fields into fixed-width byte sequences while strictly adhering to network byte order (Big-Endian) conventions. Task Implement a BinaryCodec class to encode and decode a custom order message protocol. The protocol uses Big-Endian (Network Byte Order) for all mult