Skip to main content

MAX_SYMBOL_LEN

Constant MAX_SYMBOL_LEN 

Source
pub const MAX_SYMBOL_LEN: usize = 160;
Expand description

Defensive user-input cap for MARKET.CODE shorthand strings.

C++ stores market-state and trade code buffers in fixed char arrays (charArr64 / szCode[32] in the audited paths). Keep Rust’s public shorthand cap comfortably above all observed legitimate derivatives, while rejecting pathological payloads before REST/MCP/CLI normalization allocates or forwards them.