class_docstr: A Bitstamp live broker.
  
  :param clientId: Client id.
  :type clientId: string.
  :param key: API key.
  :type key: string.
  :param secret: API secret.
  :type secret: string.
  
  
  .. note::
      * Only limit orders are supported.
      * Orders are automatically set as **goodTillCanceled=True** and  **allOrNone=False**.
      * BUY_TO_COVER orders are mapped to BUY orders.
      * SELL_SHORT orders are mapped to SELL orders.
      * API access permissions should include:
  
        * Account balance
        * Open orders
        * Buy limit order
        * User transactions
        * Cancel order
        * Sell limit order
code: def dispatch(self):
      # Switch orders from SUBMITTED to ACCEPTED.
      ordersToProcess = list(self.__activeOrders.values())
      for order in ordersToProcess:
          if order.isSubmitted():
              order.switchState(broker.Order.State.ACCEPTED)
              self.notifyOrderEvent(
                  broker.OrderEvent(
                      order, broker.OrderEvent.Type.ACCEPTED, None
                  )
              )
  
      # Dispatch events from the trade monitor.
      try:
          eventType, eventData = self.__tradeMonitor.getQueue().get(
              True, LiveBroker.QUEUE_TIMEOUT
          )
  
          if eventType == TradeMonitor.ON_USER_TRADE:
              self._onUserTrades(eventData)
          else:
              common.logger.error(
                  "Invalid event received to dispatch: %s - %s"
                  % (eventType, eventData)
              )
      except queue.Empty:
          pass
  
imports: import threading
  import time
  from six.moves import queue
  from pyalgotrade import broker
  from pyalgotrade.bitstamp import httpclient
  from pyalgotrade.bitstamp import common
label_desc: Use image node_id 13 for calling the LiveBroker obj's underlying member method code with example usage: obj.dispatch() without return types