pub fn quantity_to_u32(quantity: &Quantity) -> u32
Safely converts a Quantity to u32 for BitMEX API.
Logs a warning if truncation occurs.