Skip to main content

insert_ask

Function insert_ask 

Source
pub fn insert_ask(levels: &mut Vec<PriceLevel>, level: PriceLevel)
Expand description

Insert a price level into an ask-sorted (ascending) list. Binary-search + Vec::insert; same complexity profile as insert_bid.