#[unsafe(no_mangle)]pub extern "C" fn orderbook_midpoint(book: &mut OrderBook) -> f64
Panics if unable to calculate midpoint (requires at least one bid and one ask).