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. Uses push + sort_unstable for prediction market books (typically < 100 levels).