def _get_orderbook(self, market: str) -> Dict[(str, List[Tuple[(float, float)]])]:
    return {side: sorted([(price, quantity) for (price, quantity) in list(self._orderbooks[market][side].items()) if quantity], key=(lambda order: (order[0] * ((- 1) if (side == 'bids') else 1)))) for side in {'bids', 'asks'}}
def _get_orderbook(self, market: str) -> Dict[(str, List[Tuple[(float, float)]])]:
    return {side: sorted([(price, quantity) for (price, quantity) in list(self._orderbooks[market][side].items()) if quantity], key=(lambda order: (order[0] * ((- 1) if (side == 'bids') else 1)))) for side in {'bids', 'asks'}}