Function get_avg_px_for_quantity

Source
pub fn get_avg_px_for_quantity(
    qty: Quantity,
    levels: &BTreeMap<BookPrice, BookLevel>,
) -> f64
Expand description

Calculates the estimated average price for a specified quantity from a set of order book levels.