def __init__(self, product_id='BTC-USD', log_to=None):
    super(OrderBook, self).__init__(products=product_id)
    self._asks = SortedDict()
    self._bids = SortedDict()
    self._client = PublicClient()
    self._sequence = (- 1)
    self._log_to = log_to
    if self._log_to:
        assert hasattr(self._log_to, 'write')
    self._current_ticker = None
def __init__(self, product_id='BTC-USD', log_to=None):
    super(OrderBook, self).__init__(products=product_id)
    self._asks = SortedDict()
    self._bids = SortedDict()
    self._client = PublicClient()
    self._sequence = (- 1)
    self._log_to = log_to
    if self._log_to:
        assert hasattr(self._log_to, 'write')
    self._current_ticker = None