返回题库

Quant Interview Practice Questions

专题
architecture & logic
难度
L2
来源
MyntBit

题目详情

In high-frequency trading and market making, the bid-ask spread is a crucial metric for evaluating market liquidity and transaction costs. The absolute spread provides the raw price difference, while the relative spread normalizes this cost against the asset's mid-price to facilitate comparison across different instruments. Maintaining an accurate limit order book is essential for calculating these top-of-book metrics in real-time. Task Implement a SpreadCalculator class that maintains a Level