Function to_contract_units
pub fn to_contract_units(_symbol: &str, size: f64) -> u64
Expand description
Convert human-readable size to contract units.
§Arguments
symbol - The trading symbol (e.g., “BTC-PERP”, “ETH-PERP”)
size - Human-readable size (e.g., 1.0 BTC)
§Returns
Size in contract units (e.g., 1.0 -> 1_000_000)