spread_pct_fast

Function spread_pct_fast 

Source
pub fn spread_pct_fast(bid_ticks: Price, ask_ticks: Price) -> Option<u32>
Expand description

Calculate spread as percentage (FAST VERSION)

Returns the spread as a percentage in basis points (1/100th of a percent). This avoids floating-point arithmetic entirely.

Example: spread_pct_fast(6500, 6700) = Some(307) (representing 3.07%)