spread_fast

Function spread_fast 

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

Calculate spread in ticks (FAST VERSION)

Simple subtraction - much faster than Decimal operations.

Example: spread_fast(6500, 6700) = Some(200) (representing $0.02 spread)