(self, msg)
on_md_full_refresh.
on_md_full_refresh.
on_md_full_refresh .
def on_md_full_refresh(self, msg):
        """" on_md_full_refresh. """
        # TODO: Check if our current order book is sync with the full refresh
        if msg.get('MarketDepth') != 1:  # Has Market Depth
            self.on_book_clear()
            self.on_trade_clear()

            group = msg.get('MDFullGrp')
            for entry in group:
                entry_type = entry.get('MDEntryType')

                if entry_type == '0' or entry_type == '1':
                    self.on_book_new_order(entry)
                elif entry_type == '2':
                    self.on_trade(entry)
def on_md_full_refresh ( self , msg ) : # TODO: Check if our current order book is sync with the full refresh if msg . get ( 'MarketDepth' ) != 1 : # Has Market Depth self . on_book_clear ( ) self . on_trade_clear ( ) group = msg . get ( 'MDFullGrp' ) for entry in group : entry_type = entry . get ( 'MDEntryType' ) if entry_type == '0' or entry_type == '1' : self . on_book_new_order ( entry ) elif entry_type == '2' : self . on_trade ( entry )