Skip to main content

to_human_readable

Function to_human_readable 

pub fn to_human_readable(_symbol: &str, size: u64) -> f64
Expand description

Convert contract units to human-readable size.

§Arguments

  • symbol - The trading symbol (e.g., “BTC-PERP”, “ETH-PERP”)
  • size - Size in contract units

§Returns

Human-readable size (e.g., 1_000_000 -> 1.0 BTC)