pub fn resolve_book_depth(raw_depth: usize) -> usizeExpand description
Clamps a requested book depth to the nearest OKX-supported value.
OKX WebSocket channels support depths of 50 and 400. Depth 0 means auto-select based on VIP level. Any other value rounds up to the nearest supported depth so the subscription succeeds and the data engine can truncate to the originally requested depth.