(self)
This function checks whether the order book is empty
This function checks whether the order book is empty
This function checks whether the order book is empty
def check_if_orderbook_empty(self):
        """This function checks whether the order book is empty"""
        instrument = self.get_instrument()
        if instrument['midPrice'] is None:
            raise errors.MarketEmptyError("Orderbook is empty, cannot quote")
            sys.exit()
def check_if_orderbook_empty ( self ) : instrument = self . get_instrument ( ) if instrument [ 'midPrice' ] is None : raise errors . MarketEmptyError ( "Orderbook is empty, cannot quote" ) sys . exit ( )